diff options
author | Andras Timar <andras.timar@collabora.com> | 2023-05-16 10:43:19 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2023-05-16 10:43:19 +0200 |
commit | 863c83f6b8c0ddaba339fb362f82726b7f3998db (patch) | |
tree | e1a16a0b6e29019e786899ad72a3e09d16cc3f43 | |
parent | eac4876c3af2e1f0292e073eb116d8bb19554992 (diff) |
Revert "lok: editeng: add LOK special flags"
This reverts commit c87e0c332cc323a07e2f21ca33bacaf09aceee17.
-rw-r--r-- | editeng/source/editeng/editview.cxx | 5 | ||||
-rw-r--r-- | editeng/source/editeng/impedit.cxx | 6 | ||||
-rw-r--r-- | editeng/source/editeng/impedit.hxx | 6 | ||||
-rw-r--r-- | include/editeng/editview.hxx | 12 |
4 files changed, 0 insertions, 29 deletions
diff --git a/editeng/source/editeng/editview.cxx b/editeng/source/editeng/editview.cxx index 72be1c9e4026..c522201ff917 100644 --- a/editeng/source/editeng/editview.cxx +++ b/editeng/source/editeng/editview.cxx @@ -1730,11 +1730,6 @@ bool EditView::HasLOKSpecialPositioning() const return pImpEditView->HasLOKSpecialPositioning(); } -void EditView::SetLOKSpecialFlags(LOKSpecialFlags eFlags) -{ - pImpEditView->SetLOKSpecialFlags(eFlags); -} - void EditView::SuppressLOKMessages(bool bSet) { pImpEditView->SuppressLOKMessages(bSet); diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx index 461cbcd16faf..db71098c2590 100644 --- a/editeng/source/editeng/impedit.cxx +++ b/editeng/source/editeng/impedit.cxx @@ -2746,10 +2746,4 @@ bool ImpEditView::HasLOKSpecialPositioning() const return bool(mpLOKSpecialPositioning); } -void ImpEditView::SetLOKSpecialFlags(LOKSpecialFlags eFlags) -{ - assert(mpLOKSpecialPositioning); - mpLOKSpecialPositioning->SetFlags(eFlags); -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/editeng/source/editeng/impedit.hxx b/editeng/source/editeng/impedit.hxx index fb5d18badbc3..67f98cf2cef3 100644 --- a/editeng/source/editeng/impedit.hxx +++ b/editeng/source/editeng/impedit.hxx @@ -234,9 +234,6 @@ public: Point GetWindowPos(const Point& rDocPos, MapUnit eDocPosUnit) const; tools::Rectangle GetWindowPos(const tools::Rectangle& rDocRect, MapUnit eDocRectUnit) const; - void SetFlags(LOKSpecialFlags eFlags) { meFlags = eFlags; } - bool IsLayoutRTL() { return bool(meFlags & LOKSpecialFlags::LayoutRTL); } - Point GetRefPoint() const; private: @@ -247,7 +244,6 @@ private: tools::Rectangle maOutArea; Point maVisDocStartPos; MapUnit meUnit; - LOKSpecialFlags meFlags; }; @@ -471,8 +467,6 @@ public: tools::Rectangle GetLOKSpecialVisArea() const; bool HasLOKSpecialPositioning() const; - void SetLOKSpecialFlags(LOKSpecialFlags eFlags); - void SuppressLOKMessages(bool bSet) { mbSuppressLOKMessages = bSet; } bool IsSuppressLOKMessages() const { return mbSuppressLOKMessages; } diff --git a/include/editeng/editview.hxx b/include/editeng/editview.hxx index 005b02edf667..02a120cc9b07 100644 --- a/include/editeng/editview.hxx +++ b/include/editeng/editview.hxx @@ -87,16 +87,6 @@ enum class ScrollRangeCheck PaperWidthTextSize = 2, // VisArea must be within paper width, Text Size }; -enum class LOKSpecialFlags { - NONE = 0x0000, - LayoutRTL = 0x0001, -}; - -namespace o3tl -{ - template<> struct typed_flags<LOKSpecialFlags> : is_typed_flags<LOKSpecialFlags, 0x77> {}; -} - // Helper class that allows to set a callback at the EditView. When // set, Invalidates and repaints are suppressed at the EditView, but // EditViewInvalidate() will be triggered to allow the consumer to @@ -389,8 +379,6 @@ public: tools::Rectangle GetLOKSpecialVisArea() const; bool HasLOKSpecialPositioning() const; - void SetLOKSpecialFlags(LOKSpecialFlags eFlags); - void SuppressLOKMessages(bool bSet); bool IsSuppressLOKMessages() const; |