summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2023-05-16 10:43:19 +0200
committerAndras Timar <andras.timar@collabora.com>2023-05-16 10:43:19 +0200
commit863c83f6b8c0ddaba339fb362f82726b7f3998db (patch)
treee1a16a0b6e29019e786899ad72a3e09d16cc3f43
parenteac4876c3af2e1f0292e073eb116d8bb19554992 (diff)
Revert "lok: editeng: add LOK special flags"
-rw-r--r--editeng/source/editeng/editview.cxx5
-rw-r--r--editeng/source/editeng/impedit.cxx6
-rw-r--r--editeng/source/editeng/impedit.hxx6
-rw-r--r--include/editeng/editview.hxx12
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;