Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: core/fpdfdoc/include/fpdf_doc.h

Issue 2060913003: Make code compile with clang_use_chrome_plugin (part II) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/fpdfdoc/include/cpvt_word.h ('k') | core/fpdfdoc/pdf_vt.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef CORE_FPDFDOC_INCLUDE_FPDF_DOC_H_ 7 #ifndef CORE_FPDFDOC_INCLUDE_FPDF_DOC_H_
8 #define CORE_FPDFDOC_INCLUDE_FPDF_DOC_H_ 8 #define CORE_FPDFDOC_INCLUDE_FPDF_DOC_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 #define TEXTPOS_OVERLAID 6 731 #define TEXTPOS_OVERLAID 6
732 732
733 class CPDF_FormControl { 733 class CPDF_FormControl {
734 public: 734 public:
735 enum HighlightingMode { None = 0, Invert, Outline, Push, Toggle }; 735 enum HighlightingMode { None = 0, Invert, Outline, Push, Toggle };
736 736
737 CPDF_FormField::Type GetType() const { return m_pField->GetType(); } 737 CPDF_FormField::Type GetType() const { return m_pField->GetType(); }
738 CPDF_InterForm* GetInterForm() const { return m_pForm; } 738 CPDF_InterForm* GetInterForm() const { return m_pForm; }
739 CPDF_FormField* GetField() const { return m_pField; } 739 CPDF_FormField* GetField() const { return m_pField; }
740 CPDF_Dictionary* GetWidget() const { return m_pWidgetDict; } 740 CPDF_Dictionary* GetWidget() const { return m_pWidgetDict; }
741 CFX_FloatRect GetRect() const; 741 CFX_FloatRect GetRect() const { return m_pWidgetDict->GetRectBy("Rect"); }
742 742
743 void DrawControl(CFX_RenderDevice* pDevice, 743 void DrawControl(CFX_RenderDevice* pDevice,
744 CFX_Matrix* pMatrix, 744 CFX_Matrix* pMatrix,
745 CPDF_Page* pPage, 745 CPDF_Page* pPage,
746 CPDF_Annot::AppearanceMode mode, 746 CPDF_Annot::AppearanceMode mode,
747 const CPDF_RenderOptions* pOptions = nullptr); 747 const CPDF_RenderOptions* pOptions = nullptr);
748 748
749 CFX_ByteString GetCheckedAPState(); 749 CFX_ByteString GetCheckedAPState();
750 CFX_WideString GetExportValue() const; 750 CFX_WideString GetExportValue() const;
751 751
752 bool IsChecked() const; 752 bool IsChecked() const;
753 bool IsDefaultChecked() const; 753 bool IsDefaultChecked() const;
754 754
755 HighlightingMode GetHighlightingMode(); 755 HighlightingMode GetHighlightingMode();
756 bool HasMKEntry(const CFX_ByteString& csEntry) const; 756 bool HasMKEntry(const CFX_ByteString& csEntry) const;
757 int GetRotation(); 757 int GetRotation();
758 758
759 inline FX_ARGB GetBorderColor(int& iColorType) { 759 FX_ARGB GetBorderColor(int& iColorType) { return GetColor(iColorType, "BC"); }
760 return GetColor(iColorType, "BC");
761 }
762 760
763 FX_FLOAT GetOriginalBorderColor(int index) { 761 FX_FLOAT GetOriginalBorderColor(int index) {
764 return GetOriginalColor(index, "BC"); 762 return GetOriginalColor(index, "BC");
765 } 763 }
766 764
767 void GetOriginalBorderColor(int& iColorType, FX_FLOAT fc[4]) { 765 void GetOriginalBorderColor(int& iColorType, FX_FLOAT fc[4]) {
768 GetOriginalColor(iColorType, fc, "BC"); 766 GetOriginalColor(iColorType, fc, "BC");
769 } 767 }
770 768
771 FX_ARGB GetBackgroundColor(int& iColorType) { 769 FX_ARGB GetBackgroundColor(int& iColorType) {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 CPDF_FormField* const m_pField; 814 CPDF_FormField* const m_pField;
817 CPDF_Dictionary* const m_pWidgetDict; 815 CPDF_Dictionary* const m_pWidgetDict;
818 CPDF_InterForm* const m_pForm; 816 CPDF_InterForm* const m_pForm;
819 817
820 friend class CPDF_InterForm; 818 friend class CPDF_InterForm;
821 friend class CPDF_FormField; 819 friend class CPDF_FormField;
822 }; 820 };
823 821
824 class IPDF_FormNotify { 822 class IPDF_FormNotify {
825 public: 823 public:
826 virtual ~IPDF_FormNotify() {} 824 virtual ~IPDF_FormNotify();
827 825
828 virtual int BeforeValueChange(CPDF_FormField* pField, 826 virtual int BeforeValueChange(CPDF_FormField* pField,
829 const CFX_WideString& csValue) { 827 const CFX_WideString& csValue);
830 return 0; 828 virtual void AfterValueChange(CPDF_FormField* pField);
831 }
832 virtual void AfterValueChange(CPDF_FormField* pField) {}
833 virtual int BeforeSelectionChange(CPDF_FormField* pField, 829 virtual int BeforeSelectionChange(CPDF_FormField* pField,
834 const CFX_WideString& csValue) { 830 const CFX_WideString& csValue);
835 return 0; 831 virtual void AfterSelectionChange(CPDF_FormField* pField);
836 } 832 virtual void AfterCheckedStatusChange(CPDF_FormField* pField);
837 virtual void AfterSelectionChange(CPDF_FormField* pField) {} 833 virtual int BeforeFormReset(CPDF_InterForm* pForm);
838 virtual void AfterCheckedStatusChange(CPDF_FormField* pField) {} 834 virtual void AfterFormReset(CPDF_InterForm* pForm);
839 virtual int BeforeFormReset(CPDF_InterForm* pForm) { return 0; } 835 virtual int BeforeFormImportData(CPDF_InterForm* pForm);
840 virtual void AfterFormReset(CPDF_InterForm* pForm) {} 836 virtual void AfterFormImportData(CPDF_InterForm* pForm);
841 virtual int BeforeFormImportData(CPDF_InterForm* pForm) { return 0; }
842 virtual void AfterFormImportData(CPDF_InterForm* pForm) {}
843 }; 837 };
844 838
845 class CPDF_PageLabel { 839 class CPDF_PageLabel {
846 public: 840 public:
847 explicit CPDF_PageLabel(CPDF_Document* pDocument) : m_pDocument(pDocument) {} 841 explicit CPDF_PageLabel(CPDF_Document* pDocument);
848 842
849 CFX_WideString GetLabel(int nPage) const; 843 CFX_WideString GetLabel(int nPage) const;
850 int32_t GetPageByLabel(const CFX_ByteStringC& bsLabel) const; 844 int32_t GetPageByLabel(const CFX_ByteStringC& bsLabel) const;
851 int32_t GetPageByLabel(const CFX_WideStringC& wsLabel) const; 845 int32_t GetPageByLabel(const CFX_WideStringC& wsLabel) const;
852 846
853 protected: 847 protected:
854 CPDF_Document* const m_pDocument; 848 CPDF_Document* const m_pDocument;
855 }; 849 };
856 850
857 class CPDF_Metadata { 851 class CPDF_Metadata {
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 CFX_WideString GetCaption(const CFX_ByteString& csEntry) const; 928 CFX_WideString GetCaption(const CFX_ByteString& csEntry) const;
935 CPDF_Stream* GetIcon(const CFX_ByteString& csEntry) const; 929 CPDF_Stream* GetIcon(const CFX_ByteString& csEntry) const;
936 930
937 CPDF_Dictionary* const m_pDict; 931 CPDF_Dictionary* const m_pDict;
938 }; 932 };
939 933
940 CPDF_Stream* FPDFDOC_GetAnnotAP(CPDF_Dictionary* pAnnotDict, 934 CPDF_Stream* FPDFDOC_GetAnnotAP(CPDF_Dictionary* pAnnotDict,
941 CPDF_Annot::AppearanceMode mode); 935 CPDF_Annot::AppearanceMode mode);
942 936
943 #endif // CORE_FPDFDOC_INCLUDE_FPDF_DOC_H_ 937 #endif // CORE_FPDFDOC_INCLUDE_FPDF_DOC_H_
OLDNEW
« no previous file with comments | « core/fpdfdoc/include/cpvt_word.h ('k') | core/fpdfdoc/pdf_vt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698