From 9c40b820280843450cab4287d7cfbdc0988064e4 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Tue, 5 Dec 2023 23:12:09 +0900 Subject: editeng: move EPaM in its own header file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ib3682dd5df09162748aad4402108b2b3cec3a853 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161341 Tested-by: Tomaž Vajngerl Reviewed-by: Tomaž Vajngerl --- editeng/inc/editdoc.hxx | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'editeng') diff --git a/editeng/inc/editdoc.hxx b/editeng/inc/editdoc.hxx index 16eaf157a91f..1450cc560833 100644 --- a/editeng/inc/editdoc.hxx +++ b/editeng/inc/editdoc.hxx @@ -23,6 +23,7 @@ #include "edtspell.hxx" #include "eerdll2.hxx" #include +#include #include #include #include @@ -52,29 +53,6 @@ EditCharAttrib* MakeCharAttrib( SfxItemPool& rPool, const SfxPoolItem& rAttr, sa class ContentNode; class EditDoc; -struct EPaM -{ - sal_Int32 nPara; - sal_Int32 nIndex; - - EPaM() : nPara(0), nIndex(0) {} - EPaM( sal_Int32 nP, sal_Int32 nI ) : nPara(nP), nIndex(nI) {} - EPaM( const EPaM& r) : nPara(r.nPara), nIndex(r.nIndex) {} - EPaM& operator = ( const EPaM& r ) { nPara = r.nPara; nIndex = r.nIndex; return *this; } - inline bool operator == ( const EPaM& r ) const; - inline bool operator < ( const EPaM& r ) const; -}; - -inline bool EPaM::operator < ( const EPaM& r ) const -{ - return ( nPara < r.nPara ) || ( ( nPara == r.nPara ) && nIndex < r.nIndex ); -} - -inline bool EPaM::operator == ( const EPaM& r ) const -{ - return ( nPara == r.nPara ) && ( nIndex == r.nIndex ); -} - struct ScriptTypePosInfo { short nScriptType; -- cgit