Lines Matching refs:m_pDocument

161 	m_pDocument(NULL),

195 ASSERT(m_pDocument != NULL);
197 CPDFSDK_InterForm *pInterForm = m_pDocument->GetInterForm();
210 ASSERT(m_pDocument != NULL);
214 if (m_pDocument->GetChangeMark())
226 m_pDocument->SetChangeMark();
228 m_pDocument->ClearChangeMark();
236 ASSERT(m_pDocument != NULL);
251 ASSERT(m_pDocument != NULL);
255 if (CPDFSDK_PageView* pPageView = m_pDocument->GetCurrentView())
262 int iPageCount = m_pDocument->GetPageCount();
267 CPDFDoc_Environment* pEnv = m_pDocument->GetEnv();
326 ASSERT(m_pDocument != NULL);
328 if (!m_pDocument->GetPermissions(FPDFPERM_EXTRACT_ACCESS)) return FALSE;
341 CPDFDoc_Environment* pEnv = m_pDocument->GetEnv();
351 m_pDocument->SetFocusAnnot(NULL);
353 CPDFSDK_InterForm* pInterForm= (CPDFSDK_InterForm*)m_pDocument->GetInterForm();
411 ASSERT(m_pDocument != NULL);
413 if (!m_pDocument->GetPermissions(FPDFPERM_EXTRACT_ACCESS)) return FALSE;
425 ASSERT(m_pDocument != NULL);
431 CPDFSDK_InterForm* pInterForm = m_pDocument->GetInterForm();
468 ASSERT(m_pDocument != NULL);
473 CPDFSDK_InterForm* pInterForm = m_pDocument->GetInterForm();
495 ASSERT(m_pDocument != NULL);
497 if (!(m_pDocument->GetPermissions(FPDFPERM_MODIFY) ||
498 m_pDocument->GetPermissions(FPDFPERM_ANNOT_FORM) ||
499 m_pDocument->GetPermissions(FPDFPERM_FILL_FORM))) return FALSE;
509 CPDFDoc_Environment* pEnv = m_pDocument->GetEnv();
519 m_pDocument->SetFocusAnnot(NULL);
521 CPDFSDK_InterForm* pInterForm = (CPDFSDK_InterForm*)m_pDocument->GetInterForm();
527 m_pDocument->SetChangeMark();
528 // CPDFDoc_Environment* pEnv = m_pDocument->GetEnv();
532 // pUndo->Reset(m_pDocument);
545 ASSERT(m_pDocument != NULL);
547 if (!(m_pDocument->GetPermissions(FPDFPERM_MODIFY) ||
548 m_pDocument->GetPermissions(FPDFPERM_ANNOT_FORM) ||
549 m_pDocument->GetPermissions(FPDFPERM_FILL_FORM))) return FALSE;
562 ASSERT(m_pDocument != NULL);
564 if (!(m_pDocument->GetPermissions(FPDFPERM_MODIFY) ||
565 m_pDocument->GetPermissions(FPDFPERM_ANNOT_FORM) ||
566 m_pDocument->GetPermissions(FPDFPERM_FILL_FORM))) return FALSE;
578 ASSERT(m_pDocument != NULL);
580 if (!m_pDocument->GetPermissions(FPDFPERM_EXTRACT_ACCESS)) return FALSE;
591 CPDFSDK_InterForm* pInterForm = (CPDFSDK_InterForm*)m_pDocument->GetInterForm();
674 ASSERT(m_pDocument != NULL);
676 if (CPDFDoc_Environment* pEnv = m_pDocument->GetEnv())
690 ASSERT(m_pDocument != NULL);
692 if (!(m_pDocument->GetPermissions(FPDFPERM_MODIFY) ||
693 m_pDocument->GetPermissions(FPDFPERM_ANNOT_FORM))) return FALSE;
700 CPDFSDK_InterForm* pInterForm = (CPDFSDK_InterForm*)m_pDocument->GetInterForm();
727 CPDFSDK_PageView* pPageView = m_pDocument->GetPageView(pPage);
732 m_pDocument->SetChangeMark();
744 ASSERT(m_pDocument != NULL);
746 if (!(m_pDocument->GetPermissions(FPDFPERM_MODIFY) ||
747 m_pDocument->GetPermissions(FPDFPERM_ANNOT_FORM) ||
748 m_pDocument->GetPermissions(FPDFPERM_FILL_FORM))) return FALSE;
750 CPDFSDK_InterForm* pInterForm = (CPDFSDK_InterForm*)m_pDocument->GetInterForm();
788 m_pDocument->SetChangeMark();
795 m_pDocument->SetChangeMark();
808 ASSERT(m_pDocument != NULL);
810 // m_pDocument->DoSaveAs();
818 ASSERT(m_pDocument != NULL);
820 // if (!m_pDocument->GetPermissions(FPDFPERM_EXTRACT_ACCESS)) return FALSE;
856 CPDFSDK_InterForm* pInterForm = (CPDFSDK_InterForm*)m_pDocument->GetInterForm();
925 m_pDocument = pDoc;
930 return m_pDocument;
950 ASSERT(m_pDocument != NULL);
1008 ASSERT(m_pDocument != NULL);
1010 CPDF_Dictionary* pDictionary = m_pDocument->GetDocument()->GetInfo();
1020 if (!m_pDocument->GetPermissions(FPDFPERM_MODIFY)) return FALSE;
1025 m_pDocument->SetChangeMark();
1032 ASSERT(m_pDocument != NULL);
1034 CPDF_Dictionary* pDictionary = m_pDocument->GetDocument()->GetInfo();
1091 ASSERT(m_pDocument != NULL);
1093 CPDF_Dictionary* pDictionary = m_pDocument->GetDocument()->GetInfo();
1103 if (!m_pDocument->GetPermissions(FPDFPERM_MODIFY)) return FALSE;
1108 m_pDocument->SetChangeMark();
1116 ASSERT(m_pDocument != NULL);
1118 CPDF_Dictionary* pDictionary = m_pDocument->GetDocument()->GetInfo();
1128 if (!m_pDocument->GetPermissions(FPDFPERM_MODIFY)) return FALSE;
1133 m_pDocument->SetChangeMark();
1147 ASSERT(m_pDocument != NULL);
1149 if (!m_pDocument->GetPermissions(FPDFPERM_MODIFY)) return FALSE;
1169 Field::DoDelay(m_pDocument, pData);
1182 ASSERT(m_pDocument != NULL);
1184 CPDF_Dictionary* pDictionary = m_pDocument->GetDocument()->GetInfo();
1194 if (!m_pDocument->GetPermissions(FPDFPERM_MODIFY)) return FALSE;
1199 m_pDocument->SetChangeMark();
1206 ASSERT(m_pDocument != NULL);
1208 CPDF_Dictionary* pDictionary = m_pDocument->GetDocument()->GetInfo();
1218 if (!m_pDocument->GetPermissions(FPDFPERM_MODIFY)) return FALSE;
1223 m_pDocument->SetChangeMark();
1230 ASSERT(m_pDocument != NULL);
1232 CPDF_Dictionary* pDictionary = m_pDocument->GetDocument()->GetInfo();
1242 if (!m_pDocument->GetPermissions(FPDFPERM_MODIFY)) return FALSE;
1247 m_pDocument->SetChangeMark();
1254 ASSERT(m_pDocument != NULL);
1256 CPDF_Dictionary* pDictionary = m_pDocument->GetDocument()->GetInfo();
1266 if (!m_pDocument->GetPermissions(FPDFPERM_MODIFY)) return FALSE;
1271 m_pDocument->SetChangeMark();
1278 ASSERT(m_pDocument != NULL);
1280 if (m_pDocument == NULL || m_pDocument->GetDocument() == NULL)
1283 CPDF_Dictionary* pDictionary = m_pDocument->GetDocument()->GetInfo();
1293 if (!m_pDocument->GetPermissions(FPDFPERM_MODIFY)) return FALSE;
1298 m_pDocument->SetChangeMark();
1307 ASSERT(m_pDocument != NULL);
1308 vp << m_pDocument->GetPageCount();
1328 ASSERT(m_pDocument != NULL);
1330 // CFile file(m_pDocument->GetPath(), CFile::modeRead | CFile::typeBinary | CFile::shareDenyNone);
1334 if ( m_pDocument->GetPath().IsEmpty() == FALSE)
1336 CFX_ByteString bsStr = CFX_ByteString::FromUnicode( m_pDocument->GetPath() );
1381 ASSERT(m_pDocument != NULL);
1383 CPDFSDK_InterForm* pInterForm = (CPDFSDK_InterForm*)m_pDocument->GetInterForm();
1409 CFX_WideString wsFilePath = m_pDocument->GetPath();
1472 vp << app::SysPathToPDFPath(m_pDocument->GetPath());
1494 ASSERT(m_pDocument != NULL);
1768 ASSERT(m_pDocument != NULL);
1841 ASSERT(m_pDocument != NULL);
1843 if (!(m_pDocument->GetPermissions(FPDFPERM_MODIFY) ||
1844 m_pDocument->GetPermissions(FPDFPERM_ANNOT_FORM) ||
1845 m_pDocument->GetPermissions(FPDFPERM_FILL_FORM))) return FALSE;
1847 CPDFSDK_InterForm* pInterForm = (CPDFSDK_InterForm*)m_pDocument->GetInterForm();
1862 ASSERT(m_pDocument != NULL);
1864 if (!m_pDocument->GetPermissions(FPDFPERM_EXTRACT_ACCESS)) return FALSE;
1870 CPDF_Document* pDocument = m_pDocument->GetDocument();
1926 ASSERT(m_pDocument != NULL);
1928 if (!m_pDocument->GetPermissions(FPDFPERM_EXTRACT_ACCESS)) return FALSE;
1935 ASSERT(m_pDocument != NULL);
1937 if (!m_pDocument->GetPermissions(FPDFPERM_EXTRACT_ACCESS)) return FALSE;
1941 CPDF_Document* pDocument = m_pDocument->GetDocument();
2104 ASSERT(m_pDocument != NULL);
2106 if (!(m_pDocument->GetPermissions(FPDFPERM_MODIFY) ||
2107 m_pDocument->GetPermissions(FPDFPERM_ASSEMBLE))) return FALSE;
2139 int nTotal = m_pDocument->GetPageCount();
2152 return m_pDocument->DeletePages(nStart, nEnd - nStart + 1);
2170 ASSERT(m_pDocument != NULL);
2172 if (!m_pDocument->GetPermissions(FPDFPERM_EXTRACT)) return FALSE;
2176 int nTotal = m_pDocument->GetPageCount();
2226 // m_pDocument->ExtractPages(array, pNewDoc);
2257 ASSERT(m_pDocument != NULL);
2259 if (!(m_pDocument->GetPermissions(FPDFPERM_MODIFY) ||
2260 m_pDocument->GetPermissions(FPDFPERM_ASSEMBLE))) return FALSE;
2315 if (nPage > m_pDocument->GetPageCount())
2316 nPage = m_pDocument->GetPageCount();
2346 // m_pDocument->InsertPages(nPage, pSrcDoc, array);
2365 ASSERT(m_pDocument != NULL);
2367 if (!(m_pDocument->GetPermissions(FPDFPERM_MODIFY) ||
2368 m_pDocument->GetPermissions(FPDFPERM_ASSEMBLE))) return FALSE;
2421 if (nPage >= m_pDocument->GetPageCount())
2422 nPage = m_pDocument->GetPageCount() - 1;
2471 // m_pDocument->ReplacePages(nPage, pSrcDoc, array);
2500 Field::DoDelay(m_pDocument, pData);