本文整理汇总了C++中CPDFSDK_Document::GetInterForm方法的典型用法代码示例。如果您正苦于以下问题:C++ CPDFSDK_Document::GetInterForm方法的具体用法?C++ CPDFSDK_Document::GetInterForm怎么用?C++ CPDFSDK_Document::GetInterForm使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CPDFSDK_Document
的用法示例。
在下文中一共展示了CPDFSDK_Document::GetInterForm方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnFormat
void CFFL_IFormFiller::OnFormat(CPDFSDK_Widget* pWidget,
CPDFSDK_PageView* pPageView,
FX_BOOL& bExit,
FX_DWORD nFlag) {
if (!m_bNotifying) {
ASSERT(pWidget);
CPDFSDK_Document* pDocument = pPageView->GetSDKDocument();
CPDFSDK_InterForm* pInterForm =
(CPDFSDK_InterForm*)pDocument->GetInterForm();
FX_BOOL bFormated = FALSE;
CFX_WideString sValue =
pInterForm->OnFormat(pWidget->GetFormField(), bFormated);
if (bExit)
return;
if (bFormated) {
pInterForm->ResetFieldAppearance(pWidget->GetFormField(), sValue.c_str(),
TRUE);
pInterForm->UpdateField(pWidget->GetFormField());
}
m_bNotifying = FALSE;
}
}
示例2: OnFormat
void CFFL_IFormFiller::OnFormat(CPDFSDK_Widget* pWidget, CPDFSDK_PageView* pPageView, FX_BOOL& bExit, FX_DWORD nFlag)
{
if (!m_bNotifying)
{
ASSERT(pWidget != NULL);
ASSERT(pPageView != NULL);
// CReader_DocView* pDocView = pPageView->GetDocView();
// ASSERT(pDocView != NULL);
CPDFSDK_Document* pDocument = pPageView->GetSDKDocument();
ASSERT(pDocument != NULL);
CPDFSDK_InterForm* pInterForm = (CPDFSDK_InterForm*)pDocument->GetInterForm();
ASSERT(pInterForm != NULL);
FX_BOOL bFormated = FALSE;
CFX_WideString sValue = pInterForm->OnFormat(pWidget->GetFormField(), GetCommitKey(), bFormated);
// bExit = !IsValidAnnot(m_pApp, pDocument, pDocView, pPageView, pWidget);
if (bExit) return;
if (bFormated)
{
pInterForm->ResetFieldAppearance(pWidget->GetFormField(), sValue, TRUE);
pInterForm->UpdateField(pWidget->GetFormField());
}
m_bNotifying = FALSE;
}
}
示例3: NewAnnot
CPDFSDK_Annot* CPDFSDK_XFAAnnotHandler::NewAnnot(IXFA_Widget* pAnnot,
CPDFSDK_PageView* pPage) {
CPDFSDK_Document* pSDKDoc = m_pApp->GetSDKDocument();
CPDFSDK_InterForm* pInterForm = (CPDFSDK_InterForm*)pSDKDoc->GetInterForm();
CPDFSDK_XFAWidget* pWidget = new CPDFSDK_XFAWidget(pAnnot, pPage, pInterForm);
pInterForm->AddXFAMap(pAnnot, pWidget);
return pWidget;
}
示例4:
DLLEXPORT void STDCALL FPDF_RemoveFormFieldHighlight(FPDF_FORMHANDLE hHandle)
{
if (!hHandle)
return;
CPDFSDK_Document* pSDKDoc = ((CPDFDoc_Environment*)hHandle)->GetCurrentDoc();
if(pSDKDoc)
{
if(CPDFSDK_InterForm* pInterForm = pSDKDoc->GetInterForm())
pInterForm->RemoveAllHighLight();
}
}
示例5: OnCalculate
void CFFL_IFormFiller::OnCalculate(CPDFSDK_Widget* pWidget,
CPDFSDK_PageView* pPageView,
FX_BOOL& bExit,
uint32_t nFlag) {
if (!m_bNotifying) {
ASSERT(pWidget);
CPDFSDK_Document* pDocument = pPageView->GetSDKDocument();
CPDFSDK_InterForm* pInterForm = pDocument->GetInterForm();
pInterForm->OnCalculate(pWidget->GetFormField());
m_bNotifying = FALSE;
}
}
示例6: OnCalculate
void CFFL_IFormFiller::OnCalculate(CPDFSDK_Widget* pWidget, CPDFSDK_PageView* pPageView, FX_BOOL& bExit, FX_DWORD nFlag)
{
if (!m_bNotifying)
{
ASSERT(pWidget != NULL);
ASSERT(pPageView != NULL);
// CReader_DocView* pDocView = pPageView->GetDocView();
// ASSERT(pDocView != NULL);
CPDFSDK_Document* pDocument = pPageView->GetSDKDocument();
ASSERT(pDocument != NULL);
CPDFSDK_InterForm* pInterForm = (CPDFSDK_InterForm*)pDocument->GetInterForm();
ASSERT(pInterForm != NULL);
pInterForm->OnCalculate(pWidget->GetFormField());
// bExit = !IsValidAnnot(m_pApp, pDocument, pDocView, pPageView, pWidget);
m_bNotifying = FALSE;
}
}