summaryrefslogtreecommitdiff
path: root/fpdfsdk/fxedit/fxet_edit.h
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/fxedit/fxet_edit.h')
-rw-r--r--fpdfsdk/fxedit/fxet_edit.h39
1 files changed, 4 insertions, 35 deletions
diff --git a/fpdfsdk/fxedit/fxet_edit.h b/fpdfsdk/fxedit/fxet_edit.h
index a279d1c1b6..ebc326f5a9 100644
--- a/fpdfsdk/fxedit/fxet_edit.h
+++ b/fpdfsdk/fxedit/fxet_edit.h
@@ -21,11 +21,8 @@ class CFX_Edit_Iterator;
class CFX_Edit_Provider;
class CFX_RenderDevice;
class CFX_SystemHandler;
-class CPDF_PageObjectHolder;
-class CPDF_TextObject;
class CPWL_Edit;
class CPWL_EditCtrl;
-
class IFX_Edit_UndoItem;
struct CFX_Edit_LineRect {
@@ -39,7 +36,7 @@ struct CFX_Edit_LineRect {
class CFX_Edit_LineRectArray {
public:
CFX_Edit_LineRectArray();
- virtual ~CFX_Edit_LineRectArray();
+ ~CFX_Edit_LineRectArray();
void operator=(CFX_Edit_LineRectArray&& rects);
void Add(const CPVT_WordRange& wrLine, const CFX_FloatRect& rcLine);
@@ -54,7 +51,7 @@ class CFX_Edit_LineRectArray {
class CFX_Edit_RectArray {
public:
CFX_Edit_RectArray();
- virtual ~CFX_Edit_RectArray();
+ ~CFX_Edit_RectArray();
void Clear();
void Add(const CFX_FloatRect& rect);
@@ -69,12 +66,11 @@ class CFX_Edit_RectArray {
class CFX_Edit_Refresh {
public:
CFX_Edit_Refresh();
- virtual ~CFX_Edit_Refresh();
+ ~CFX_Edit_Refresh();
void BeginRefresh();
void Push(const CPVT_WordRange& linerange, const CFX_FloatRect& rect);
void NoAnalyse();
- void AddRefresh(const CFX_FloatRect& rect);
const CFX_Edit_RectArray* GetRefreshRects() const;
void EndRefresh();
@@ -87,12 +83,10 @@ class CFX_Edit_Refresh {
class CFX_Edit_Select {
public:
CFX_Edit_Select();
- CFX_Edit_Select(const CPVT_WordPlace& begin, const CPVT_WordPlace& end);
explicit CFX_Edit_Select(const CPVT_WordRange& range);
void Reset();
void Set(const CPVT_WordPlace& begin, const CPVT_WordPlace& end);
- void SetBeginPos(const CPVT_WordPlace& begin);
void SetEndPos(const CPVT_WordPlace& end);
CPVT_WordRange ConvertToWordRange() const;
@@ -105,14 +99,13 @@ class CFX_Edit_Select {
class CFX_Edit_Undo {
public:
explicit CFX_Edit_Undo(int32_t nBufsize);
- virtual ~CFX_Edit_Undo();
+ ~CFX_Edit_Undo();
void AddItem(std::unique_ptr<IFX_Edit_UndoItem> pItem);
void Undo();
void Redo();
bool CanUndo() const;
bool CanRedo() const;
- bool IsModified() const;
void Reset();
private:
@@ -122,8 +115,6 @@ class CFX_Edit_Undo {
std::deque<std::unique_ptr<IFX_Edit_UndoItem>> m_UndoItemStack;
size_t m_nCurUndoPos;
size_t m_nBufSize;
- bool m_bModified;
- bool m_bVirgin;
bool m_bWorking;
};
@@ -152,24 +143,6 @@ class CFX_Edit_UndoItem : public IFX_Edit_UndoItem {
bool m_bLast;
};
-class CFX_Edit_GroupUndoItem : public IFX_Edit_UndoItem {
- public:
- explicit CFX_Edit_GroupUndoItem(const CFX_WideString& sTitle);
- ~CFX_Edit_GroupUndoItem() override;
-
- // IFX_Edit_UndoItem
- void Undo() override;
- void Redo() override;
- CFX_WideString GetUndoTitle() const override;
-
- void AddUndoItem(std::unique_ptr<CFX_Edit_UndoItem> pUndoItem);
- void UpdateItems();
-
- private:
- CFX_WideString m_sTitle;
- std::vector<std::unique_ptr<CFX_Edit_UndoItem>> m_Items;
-};
-
class CFXEU_InsertWord : public CFX_Edit_UndoItem {
public:
CFXEU_InsertWord(CFX_Edit* pEdit,
@@ -381,7 +354,6 @@ class CFX_Edit {
bool InsertText(const CFX_WideString& sText, int32_t charset);
bool Redo();
bool Undo();
- int32_t WordPlaceToWordIndex(const CPVT_WordPlace& place) const;
CPVT_WordPlace WordIndexToWordPlace(int32_t index) const;
CPVT_WordPlace SearchWordPlace(const CFX_PointF& point) const;
int32_t GetCaret() const;
@@ -404,7 +376,6 @@ class CFX_Edit {
void Paint();
void EnableRefresh(bool bRefresh);
void RefreshWordRange(const CPVT_WordRange& wr);
- void SetCaret(int32_t nPos);
CPVT_WordRange GetWholeWordRange() const;
CPVT_WordRange GetSelectWordRange() const;
void EnableUndo(bool bUndo);
@@ -498,7 +469,6 @@ class CFX_Edit {
CFX_FloatRect m_rcOldContent;
bool m_bEnableUndo;
bool m_bOprNotify;
- CFX_Edit_GroupUndoItem* m_pGroupUndoItem;
};
class CFX_Edit_Iterator {
@@ -510,7 +480,6 @@ class CFX_Edit_Iterator {
bool PrevWord();
bool GetWord(CPVT_Word& word) const;
bool GetLine(CPVT_Line& line) const;
- bool GetSection(CPVT_Section& section) const;
void SetAt(int32_t nWordIndex);
void SetAt(const CPVT_WordPlace& place);
const CPVT_WordPlace& GetAt() const;