summaryrefslogtreecommitdiff
path: root/fpdfsdk/cpdfsdk_annot.h
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-09-29 17:18:21 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-29 17:18:21 -0700
commit114e46a1d97587973515e9aad7955e469c7486a8 (patch)
tree73c08ee682b99301c3cdd0e8345ee0501dea1227 /fpdfsdk/cpdfsdk_annot.h
parent0bb385b1093740cc03c5d19847819d852aecc4bf (diff)
downloadpdfium-114e46a1d97587973515e9aad7955e469c7486a8.tar.xz
Move fpdfsdk/include to fpdfsdk
BUG=pdfium:611 Review-Url: https://codereview.chromium.org/2384503003
Diffstat (limited to 'fpdfsdk/cpdfsdk_annot.h')
-rw-r--r--fpdfsdk/cpdfsdk_annot.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/fpdfsdk/cpdfsdk_annot.h b/fpdfsdk/cpdfsdk_annot.h
new file mode 100644
index 0000000000..874da2d5dc
--- /dev/null
+++ b/fpdfsdk/cpdfsdk_annot.h
@@ -0,0 +1,65 @@
+// Copyright 2016 PDFium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
+
+#ifndef FPDFSDK_CPDFSDK_ANNOT_H_
+#define FPDFSDK_CPDFSDK_ANNOT_H_
+
+#include "core/fpdfdoc/cpdf_aaction.h"
+#include "core/fpdfdoc/cpdf_annot.h"
+#include "core/fpdfdoc/cpdf_defaultappearance.h"
+#include "core/fxcrt/cfx_observable.h"
+#include "core/fxcrt/fx_basic.h"
+#include "fpdfsdk/cfx_systemhandler.h"
+#include "fpdfsdk/fsdk_common.h"
+#include "fpdfsdk/fsdk_define.h"
+
+class CFX_Matrix;
+class CFX_RenderDevice;
+class CPDF_Page;
+class CPDF_RenderOptions;
+class CPDFSDK_PageView;
+
+class CPDFSDK_Annot : public CFX_Observable<CPDFSDK_Annot> {
+ public:
+ explicit CPDFSDK_Annot(CPDFSDK_PageView* pPageView);
+ virtual ~CPDFSDK_Annot();
+
+#ifdef PDF_ENABLE_XFA
+ virtual FX_BOOL IsXFAField();
+ virtual CXFA_FFWidget* GetXFAWidget() const;
+#endif // PDF_ENABLE_XFA
+
+ virtual FX_FLOAT GetMinWidth() const;
+ virtual FX_FLOAT GetMinHeight() const;
+ virtual int GetLayoutOrder() const;
+ virtual CPDF_Annot* GetPDFAnnot() const;
+ virtual CPDF_Annot::Subtype GetAnnotSubtype() const;
+ virtual bool IsSignatureWidget() const;
+ virtual CFX_FloatRect GetRect() const;
+
+ virtual void SetRect(const CFX_FloatRect& rect);
+ virtual void Annot_OnDraw(CFX_RenderDevice* pDevice,
+ CFX_Matrix* pUser2Device,
+ CPDF_RenderOptions* pOptions);
+
+ UnderlyingPageType* GetUnderlyingPage();
+ CPDF_Page* GetPDFPage();
+#ifdef PDF_ENABLE_XFA
+ CPDFXFA_Page* GetPDFXFAPage();
+#endif // PDF_ENABLE_XFA
+
+ void SetPage(CPDFSDK_PageView* pPageView);
+ CPDFSDK_PageView* GetPageView() const { return m_pPageView; }
+
+ FX_BOOL IsSelected();
+ void SetSelected(FX_BOOL bSelected);
+
+ protected:
+ CPDFSDK_PageView* m_pPageView;
+ FX_BOOL m_bSelected;
+};
+
+#endif // FPDFSDK_CPDFSDK_ANNOT_H_