diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-03-02 14:20:10 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-03-02 14:20:10 -0800 |
commit | e1671bd3158f5d78f66647ec5489e9538bd4bc36 (patch) | |
tree | 8103762d77f6ab733cc759b8f8653c0d9fb5d5ea /fpdfsdk/include/fsdk_mgr.h | |
parent | b720d0a14601f1496ef15297bc46d401f5a2a890 (diff) | |
download | pdfium-e1671bd3158f5d78f66647ec5489e9538bd4bc36.tar.xz |
Kill off JS_ErrorString type.
This provides no benefit, and reduces transparency.
Along the way:
Kill off some unused/commented-out code.
Return void where a bool return doesn't make sense.
Remove a pointless template type.
Remove now unused constants and types.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/971033002
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 5687f5628b..a25eb94a42 100644 --- a/fpdfsdk/include/fsdk_mgr.h +++ b/fpdfsdk/include/fsdk_mgr.h @@ -37,7 +37,7 @@ public: CPDFDoc_Environment(CPDF_Document * pDoc); ~CPDFDoc_Environment(); - int RegAppHandle(FPDF_FORMFILLINFO* pFFinfo);//{ m_pInfo = pFFinfo; return TRUE;} + int RegAppHandle(FPDF_FORMFILLINFO* pFFinfo); void FFI_Invalidate(FPDF_PAGE page, double left, double top, double right, double bottom) { @@ -332,38 +332,27 @@ public: } } -public: FX_BOOL IsJSInitiated(); -public: void SetCurrentDoc(CPDFSDK_Document* pFXDoc) {m_pSDKDoc = pFXDoc;} CPDFSDK_Document* GetCurrentDoc(); CPDF_Document* GetPDFDocument() {return m_pPDFDoc;} -// 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; CPDF_Document* m_pPDFDoc; @@ -376,30 +365,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(CPDF_Document* pDoc, CPDFDoc_Environment* pEnv); ~CPDFSDK_Document(); -public: + CPDFSDK_InterForm* GetInterForm() ; CPDF_Document* GetDocument() {return m_pDoc;} -public: void InitPageView(); void AddPageView(CPDF_Page* pPDFPage, CPDFSDK_PageView* pPageView); CPDFSDK_PageView* GetPageView(CPDF_Page* pPDFPage, FX_BOOL ReNew = TRUE); @@ -408,11 +383,11 @@ public: void ReMovePageView(CPDF_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); @@ -427,8 +402,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() ; CPDF_Page* GetPage(int nIndex); CPDFDoc_Environment * GetEnv() {return m_pEnv; } @@ -436,10 +409,8 @@ public: FX_BOOL ProcOpenAction(); CPDF_OCContext* GetOCContext(); private: - //CFX_ArrayTemplate<CPDFSDK_PageView*> m_pageArray; CFX_MapPtrTemplate<CPDF_Page*, CPDFSDK_PageView*> m_pageMap; CPDF_Document* m_pDoc; - CPDFSDK_InterForm* m_pInterForm; CPDFSDK_Annot* m_pFocusAnnot; CPDFDoc_Environment * m_pEnv; |