summaryrefslogtreecommitdiff
path: root/editeng/inc/editdoc.hxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2023-12-25 00:16:25 +0900
committerTomaž Vajngerl <quikee@gmail.com>2023-12-31 02:34:59 +0100
commit5c1f9ec049a724071bd47bca2d76553c0dfb1718 (patch)
treeb24901f7e30a62b7a17d66c165f43ebbb3e5dcf3 /editeng/inc/editdoc.hxx
parent291fe245284806538d74b40d45dfa20b3fbab172 (diff)
editeng: move EditSelection into its own header file
Change-Id: Ib56a0d308de700097470d26ebed3dc90d583b616 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161363 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'editeng/inc/editdoc.hxx')
-rw-r--r--editeng/inc/editdoc.hxx35
1 files changed, 1 insertions, 34 deletions
diff --git a/editeng/inc/editdoc.hxx b/editeng/inc/editdoc.hxx
index 6bba498440f6..ee4f4433c307 100644
--- a/editeng/inc/editdoc.hxx
+++ b/editeng/inc/editdoc.hxx
@@ -35,6 +35,7 @@
#include "ContentNode.hxx"
#include "EditLineList.hxx"
#include "EditPaM.hxx"
+#include "EditSelection.hxx"
#include <cstddef>
#include <memory>
@@ -237,40 +238,6 @@ public:
#endif
};
-
-
-class EditSelection
-{
-private:
- EditPaM aStartPaM;
- EditPaM aEndPaM;
-
-public:
- EditSelection(); // No constructor and destructor
- // are automatically executed correctly!
- EditSelection( const EditPaM& rStartAndAnd );
- EditSelection( const EditPaM& rStart, const EditPaM& rEnd );
-
- EditPaM& Min() { return aStartPaM; }
- EditPaM& Max() { return aEndPaM; }
-
- const EditPaM& Min() const { return aStartPaM; }
- const EditPaM& Max() const { return aEndPaM; }
-
- bool HasRange() const { return aStartPaM != aEndPaM; }
- bool IsInvalid() const { return !aStartPaM || !aEndPaM; }
- bool DbgIsBuggy( EditDoc const & rDoc ) const;
-
- void Adjust( const EditDoc& rNodes );
-
- EditSelection& operator = ( const EditPaM& r );
- bool operator == ( const EditSelection& r ) const
- { return ( aStartPaM == r.aStartPaM ) && ( aEndPaM == r.aEndPaM ); }
- bool operator != ( const EditSelection& r ) const { return !( r == *this ); }
-};
-
-
-
class DeletedNodeInfo
{
private: