您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ GetFormFiller函数代码示例

51自学网 2021-06-01 21:08:20
  C++
这篇教程C++ GetFormFiller函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中GetFormFiller函数的典型用法代码示例。如果您正苦于以下问题:C++ GetFormFiller函数的具体用法?C++ GetFormFiller怎么用?C++ GetFormFiller使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了GetFormFiller函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: ASSERT

void CFFL_IFormFiller::OnMouseExit(CPDFSDK_PageView* pPageView,                                   CPDFSDK_Annot* pAnnot,                                   FX_UINT nFlag) {  ASSERT(pAnnot->GetPDFAnnot()->GetSubType() == "Widget");  if (!m_bNotifying) {    CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot;    if (pWidget->GetAAction(CPDF_AAction::CursorExit).GetDict()) {      m_bNotifying = TRUE;      pWidget->GetAppearanceAge();      int nValueAge = pWidget->GetValueAge();      pWidget->ClearAppModified();      ASSERT(pPageView);      PDFSDK_FieldAction fa;      fa.bModifier = m_pApp->FFI_IsCTRLKeyDown(nFlag);      fa.bShift = m_pApp->FFI_IsSHIFTKeyDown(nFlag);      pWidget->OnAAction(CPDF_AAction::CursorExit, fa, pPageView);      m_bNotifying = FALSE;      if (pWidget->IsAppModified()) {        if (CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget, FALSE)) {          pFormFiller->ResetPDFWindow(pPageView,                                      nValueAge == pWidget->GetValueAge());        }      }    }  }  if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE)) {    pFormFiller->OnMouseExit(pPageView, pAnnot);  }}
开发者ID:JinAirsOs,项目名称:pdfium,代码行数:35,


示例2: ASSERT

FX_BOOL CFFL_IFormFiller::OnSetFocus(CPDFSDK_Annot* pAnnot,FX_UINT nFlag){	if(!pAnnot) return FALSE;	ASSERT(pAnnot->GetPDFAnnot()->GetSubType() == "Widget");	if (!m_bNotifying)	{		CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot; 		if (pWidget->GetAAction(CPDF_AAction::GetFocus)) 		{  			m_bNotifying = TRUE;			pWidget->GetAppearanceAge();			int nValueAge = pWidget->GetValueAge(); 			pWidget->ClearAppModified();   			CPDFSDK_PageView* pPageView = pAnnot->GetPageView(); 			ASSERT(pPageView != NULL); 			 			PDFSDK_FieldAction fa;			fa.bModifier = m_pApp->FFI_IsCTRLKeyDown(nFlag); 			fa.bShift = m_pApp->FFI_IsSHIFTKeyDown(nFlag);  			CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget, TRUE); 			if(!pFormFiller) return FALSE; 			pFormFiller->GetActionData(pPageView, CPDF_AAction::GetFocus, fa);  			pWidget->OnAAction(CPDF_AAction::GetFocus, fa, pPageView); 			m_bNotifying = FALSE; 			 //			if (!IsValidAnnot(m_pApp, pDocument, pDocView, pPageView, pAnnot)) return FALSE;  			if (pWidget->IsAppModified()) 			{ 				if (CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget, FALSE)) 				{ 					pFormFiller->ResetPDFWindow(pPageView, nValueAge == pWidget->GetValueAge()); 				} 			}		}	}		if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, TRUE))	{		if (pFormFiller->OnSetFocus(pAnnot, nFlag))		{			return TRUE;		}		else			return FALSE;	}	return TRUE;}
开发者ID:151706061,项目名称:PDFium,代码行数:55,


示例3: ASSERT

void CFFL_IFormFiller::OnDraw(CPDFSDK_PageView* pPageView,                              /*HDC hDC,*/ CPDFSDK_Annot* pAnnot,                              CFX_RenderDevice* pDevice,                              CPDF_Matrix* pUser2Device,                              /*const CRect& rcWindow,*/ FX_DWORD dwFlags) {    ASSERT(pPageView != NULL);    CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot;    if (IsVisible(pWidget)) {        if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE)) {            if (pFormFiller->IsValid()) {                pFormFiller->OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags);                pAnnot->GetPDFPage();                CPDFSDK_Document* pDocument = m_pApp->GetSDKDocument();                if (pDocument->GetFocusAnnot() == pAnnot) {                    CPDF_Rect rcFocus = pFormFiller->GetFocusBox(pPageView);                    if (!rcFocus.IsEmpty()) {                        CFX_PathData path;                        path.SetPointCount(5);                        path.SetPoint(0, rcFocus.left, rcFocus.top, FXPT_MOVETO);                        path.SetPoint(1, rcFocus.left, rcFocus.bottom, FXPT_LINETO);                        path.SetPoint(2, rcFocus.right, rcFocus.bottom, FXPT_LINETO);                        path.SetPoint(3, rcFocus.right, rcFocus.top, FXPT_LINETO);                        path.SetPoint(4, rcFocus.left, rcFocus.top, FXPT_LINETO);                        CFX_GraphStateData gsd;                        gsd.SetDashCount(1);                        gsd.m_DashArray[0] = 1.0f;                        gsd.m_DashPhase = 0;                        gsd.m_LineWidth = 1.0f;                        pDevice->DrawPath(&path, pUser2Device, &gsd, 0,                                          ArgbEncode(255, 0, 0, 0), FXFILL_ALTERNATE);                    }                }                return;            }        }        if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE))            pFormFiller->OnDrawDeactive(pPageView, pAnnot, pDevice, pUser2Device,                                        dwFlags);        else            pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, NULL);        if (!IsReadOnly(pWidget) && IsFillingAllowed(pWidget))            pWidget->DrawShadow(pDevice, pPageView);    }}
开发者ID:hoanganhx86,项目名称:pdfium,代码行数:49,


示例4: OnPostOpen

void CFFL_IFormFiller::OnPostOpen(CPDFSDK_Widget* pWidget,                                  CPDFSDK_PageView* pPageView,                                  FX_BOOL& bReset,                                  FX_BOOL& bExit,                                  FX_UINT nFlag) {  if (!m_bNotifying) {    if (pWidget->HasXFAAAction(PDFSDK_XFA_PostOpen)) {      m_bNotifying = TRUE;      int nAge = pWidget->GetAppearanceAge();      int nValueAge = pWidget->GetValueAge();      PDFSDK_FieldAction fa;      fa.bModifier = m_pApp->FFI_IsCTRLKeyDown(nFlag);      fa.bShift = m_pApp->FFI_IsSHIFTKeyDown(nFlag);      pWidget->OnXFAAAction(PDFSDK_XFA_PostOpen, fa, pPageView);      m_bNotifying = FALSE;      if (!IsValidAnnot(pPageView, pWidget)) {        bExit = TRUE;        return;      }      if (nAge != pWidget->GetAppearanceAge()) {        if (CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget, FALSE)) {          pFormFiller->ResetPDFWindow(pPageView,                                      nValueAge == pWidget->GetValueAge());        }        bReset = TRUE;      }    }  }}
开发者ID:JinAirsOs,项目名称:pdfium,代码行数:34,


示例5: GetViewBBox

FX_RECT CFFL_IFormFiller::GetViewBBox(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot){	if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE))	{		return pFormFiller->GetViewBBox(pPageView, pAnnot);	}	else	{		ASSERT(pPageView != NULL);		ASSERT(pAnnot != NULL);		CPDF_Annot* pPDFAnnot = pAnnot->GetPDFAnnot();		ASSERT(pPDFAnnot != NULL);		CPDF_Rect rcAnnot;		pPDFAnnot->GetRect(rcAnnot);// 		CRect rcWin;// 		pPageView->DocToWindow(rcAnnot, rcWin);		CPDF_Rect rcWin = CPWL_Utils::InflateRect(rcAnnot,1);//		rcWin.InflateRect(1, 1);		return rcWin.GetOutterRect();	}}
开发者ID:151706061,项目名称:PDFium,代码行数:25,


示例6: OnDelete

void CFFL_IFormFiller::OnDelete(CPDFSDK_Annot* pAnnot) {    if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE)) {        pFormFiller->OnDelete(pAnnot);    }    UnRegisterFormFiller(pAnnot);}
开发者ID:hoanganhx86,项目名称:pdfium,代码行数:7,


示例7: OnLoad

void CFFL_IFormFiller::OnLoad(CPDFSDK_Annot* pAnnot){	if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE))	{		pFormFiller->OnLoad(pAnnot);	}}
开发者ID:151706061,项目名称:PDFium,代码行数:7,


示例8: ASSERT

FX_BOOL CFFL_IFormFiller::OnSetFocus(CPDFSDK_Annot* pAnnot, FX_UINT nFlag) {  if (!pAnnot)    return FALSE;  ASSERT(pAnnot->GetPDFAnnot()->GetSubtype() == CPDF_Annot::Subtype::WIDGET);  if (!m_bNotifying) {    CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot;    if (pWidget->GetAAction(CPDF_AAction::GetFocus).GetDict()) {      m_bNotifying = TRUE;      pWidget->GetAppearanceAge();      int nValueAge = pWidget->GetValueAge();      pWidget->ClearAppModified();      CPDFSDK_PageView* pPageView = pAnnot->GetPageView();      ASSERT(pPageView);      PDFSDK_FieldAction fa;      fa.bModifier = m_pApp->FFI_IsCTRLKeyDown(nFlag);      fa.bShift = m_pApp->FFI_IsSHIFTKeyDown(nFlag);      CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget, TRUE);      if (!pFormFiller)        return FALSE;      pFormFiller->GetActionData(pPageView, CPDF_AAction::GetFocus, fa);      pWidget->OnAAction(CPDF_AAction::GetFocus, fa, pPageView);      m_bNotifying = FALSE;      if (pWidget->IsAppModified()) {        if (CFFL_FormFiller* pFiller = GetFormFiller(pWidget, FALSE)) {          pFiller->ResetPDFWindow(pPageView,                                  nValueAge == pWidget->GetValueAge());        }      }    }  }  if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, TRUE))    pFormFiller->SetFocusForAnnot(pAnnot, nFlag);  return TRUE;}
开发者ID:gradescope,项目名称:pdfium,代码行数:43,


示例9: GetViewBBox

FX_RECT CFFL_IFormFiller::GetViewBBox(CPDFSDK_PageView* pPageView,                                      CPDFSDK_Annot* pAnnot) {  if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE))    return pFormFiller->GetViewBBox(pPageView, pAnnot);  ASSERT(pPageView);  CPDF_Annot* pPDFAnnot = pAnnot->GetPDFAnnot();  CFX_FloatRect rcWin = CPWL_Utils::InflateRect(pPDFAnnot->GetRect(), 1);  return rcWin.GetOuterRect();}
开发者ID:gradescope,项目名称:pdfium,代码行数:11,



注:本文中的GetFormFiller函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ GetFormat函数代码示例
C++ GetForgeMasterType函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。