本文整理汇总了C++中CPDF_Dictionary::GetBoolean方法的典型用法代码示例。如果您正苦于以下问题:C++ CPDF_Dictionary::GetBoolean方法的具体用法?C++ CPDF_Dictionary::GetBoolean怎么用?C++ CPDF_Dictionary::GetBoolean使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CPDF_Dictionary
的用法示例。
在下文中一共展示了CPDF_Dictionary::GetBoolean方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ASSERT
CPDF_AnnotList::CPDF_AnnotList(CPDF_Page* pPage)
{
ASSERT(pPage != NULL);
m_pPageDict = pPage->m_pFormDict;
if (m_pPageDict == NULL) {
return;
}
m_pDocument = pPage->m_pDocument;
CPDF_Array* pAnnots = m_pPageDict->GetArray("Annots");
if (pAnnots == NULL) {
return;
}
CPDF_Dictionary* pRoot = m_pDocument->GetRoot();
CPDF_Dictionary* pAcroForm = pRoot->GetDict("AcroForm");
FX_BOOL bRegenerateAP = pAcroForm && pAcroForm->GetBoolean("NeedAppearances");
for (FX_DWORD i = 0; i < pAnnots->GetCount(); i ++) {
CPDF_Dictionary* pDict = (CPDF_Dictionary*)pAnnots->GetElementValue(i);
if (pDict == NULL || pDict->GetType() != PDFOBJ_DICTIONARY) {
continue;
}
FX_DWORD dwObjNum = pDict->GetObjNum();
if (dwObjNum == 0) {
dwObjNum = m_pDocument->AddIndirectObject(pDict);
CPDF_Reference* pAction = CPDF_Reference::Create(m_pDocument, dwObjNum);
if (pAction == NULL) {
break;
}
pAnnots->InsertAt(i, pAction);
pAnnots->RemoveAt(i + 1);
pDict = pAnnots->GetDict(i);
}
CPDF_Annot* pAnnot = FX_NEW CPDF_Annot(pDict);
if (pAnnot == NULL) {
break;
}
pAnnot->m_pList = this;
m_AnnotList.Add(pAnnot);
if (bRegenerateAP && pDict->GetConstString(FX_BSTRC("Subtype")) == FX_BSTRC("Widget"))
if (CPDF_InterForm::UpdatingAPEnabled()) {
FPDF_GenerateAP(m_pDocument, pDict);
}
}
}