diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-03-02 15:35:26 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-03-02 15:35:26 -0800 |
commit | 2f3dfefd2b34fc560c725c255495cc82a2b4044f (patch) | |
tree | f808beb51dded7618b0706e87e6290b87cd21a73 /fpdfsdk/include/fsdk_mgr.h | |
parent | 3a83266acee37e99832adaf1337c6b3ab7559f50 (diff) | |
download | pdfium-2f3dfefd2b34fc560c725c255495cc82a2b4044f.tar.xz |
Merge to XFA: Kill off JS_ErrorString type.
Orignal Review URL: https://codereview.chromium.org/971033002
TBR=thestig@chromium.org
Review URL: https://codereview.chromium.org/969203002
Diffstat (limited to 'fpdfsdk/include/fsdk_mgr.h')
-rw-r--r-- | fpdfsdk/include/fsdk_mgr.h | 41 |
1 files changed, 6 insertions, 35 deletions
diff --git a/fpdfsdk/include/fsdk_mgr.h b/fpdfsdk/include/fsdk_mgr.h index eb00d3445e..31c12a4e95 100644 --- a/fpdfsdk/include/fsdk_mgr.h +++ b/fpdfsdk/include/fsdk_mgr.h @@ -39,7 +39,7 @@ public: CPDFDoc_Environment(CPDFXFA_Document * pDoc); ~CPDFDoc_Environment(); - int RegAppHandle(FPDF_FORMFILLINFO* pFFinfo);//{ m_pInfo = pFFinfo; return TRUE;} + int RegAppHandle(FPDF_FORMFILLINFO* pFFinfo); virtual void Release() { @@ -680,38 +680,27 @@ public: return L""; } -public: FX_BOOL IsJSInitiated(); -public: void SetCurrentDoc(CPDFSDK_Document* pFXDoc) {m_pSDKDoc = pFXDoc;} CPDFSDK_Document* GetCurrentDoc(); CPDFXFA_Document* GetPDFXFADocument() {return m_pDoc;} -// CPDFSDK_Document* GetDocument(int nIndex); -// int CountDocuments() {return m_docMap.GetCount();} - - CPDFSDK_Document* OpenDocument(CFX_WideString &fileName){return NULL;} - CPDFSDK_Document* OpenMemPDFDoc(CPDF_Document* pNewDoc, CFX_WideString &fileName){return NULL;} - CFX_ByteString GetAppName() {return "";} CFFL_IFormFiller* GetIFormFiller(); IFX_SystemHandler* GetSysHandler() {return m_pSysHandler;} -public: CPDFSDK_AnnotHandlerMgr* GetAnnotHandlerMgr(); IFXJS_Runtime* GetJSRuntime(); CPDFSDK_ActionHandler* GetActionHander(); + FPDF_FORMFILLINFO* GetFormFillInfo() {return m_pInfo;} + private: CPDFSDK_AnnotHandlerMgr* m_pAnnotHandlerMgr; CPDFSDK_ActionHandler* m_pActionHandler; IFXJS_Runtime* m_pJSRuntime; -public: - FPDF_FORMFILLINFO* GetFormFillInfo() {return m_pInfo;} -private: FPDF_FORMFILLINFO* m_pInfo; -// CFX_MapPtrTemplate<CPDF_Document*, CPDFSDK_Document*> m_docMap; CPDFSDK_Document* m_pSDKDoc; CPDFXFA_Document* m_pDoc; @@ -724,30 +713,16 @@ public: -// class CFX_App -// { -// public: -// CFX_App():m_pCurDoc(NULL) {} -// void SetAt(CPDF_Document* pPDFDoc, CPDFSDK_Document* pFXDoc); -// CPDFSDK_Document* GetAt(CPDF_Document* pPDFDoc); -// public: -// void SetCurrentDocument(CPDFSDK_Document* pFXDoc) {m_pCurDoc = pFXDoc;} -// CPDFSDK_Document* GetCurrentDocument() {return m_pCurDoc;} -// private: -// CFX_MapPtrTemplate<CPDF_Document*, CPDFSDK_Document*> m_docArray; -// CPDFSDK_Document* m_pCurDoc; -// }; class CPDFSDK_InterForm; class CPDFSDK_Document { public: CPDFSDK_Document(CPDFXFA_Document* pDoc, CPDFDoc_Environment* pEnv); ~CPDFSDK_Document(); -public: + CPDFSDK_InterForm* GetInterForm() ; CPDFXFA_Document* GetDocument() {return m_pDoc;} -public: void InitPageView(); int GetPageViewCount(){return m_pageMap.GetCount();} void AddPageView(CPDFXFA_Page* pPDFXFAPage, CPDFSDK_PageView* pPageView); @@ -757,11 +732,11 @@ public: void ReMovePageView(CPDFXFA_Page* pPDFPage); void UpdateAllViews(CPDFSDK_PageView* pSender, CPDFSDK_Annot* pAnnot); - CPDFSDK_Annot* GetFocusAnnot();//{return NULL;} + CPDFSDK_Annot* GetFocusAnnot(); IFXJS_Runtime * GetJsRuntime(); - FX_BOOL SetFocusAnnot(CPDFSDK_Annot* pAnnot, FX_UINT nFlag = 0);//{return FALSE;} + FX_BOOL SetFocusAnnot(CPDFSDK_Annot* pAnnot, FX_UINT nFlag = 0); FX_BOOL KillFocusAnnot(FX_UINT nFlag = 0); FX_BOOL ExtractPages(const CFX_WordArray &arrExtraPages, CPDF_Document* pDstDoc); @@ -776,8 +751,6 @@ public: FX_BOOL GetChangeMark() {return m_bChangeMask;} void SetChangeMark() {m_bChangeMask = TRUE;} void ClearChangeMark() {m_bChangeMask= FALSE;} -// FX_BOOL GetChangeMark(){return FALSE;}//IsAnnotModified()||IsFormModified() || IsWidgetModified()|| m_nChangeMark>0 ;} -// void ClearChangeMark(){} CFX_WideString GetPath() ; CPDFXFA_Page* GetPage(int nIndex); CPDFDoc_Environment * GetEnv() {return m_pEnv; } @@ -785,10 +758,8 @@ public: FX_BOOL ProcOpenAction(); CPDF_OCContext* GetOCContext(); private: - //CFX_ArrayTemplate<CPDFSDK_PageView*> m_pageArray; CFX_MapPtrTemplate<CPDFXFA_Page*, CPDFSDK_PageView*> m_pageMap; CPDFXFA_Document* m_pDoc; - CPDFSDK_InterForm* m_pInterForm; CPDFSDK_Annot* m_pFocusAnnot; CPDFDoc_Environment * m_pEnv; |