diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2016-08-10 10:15:33 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2016-08-29 13:13:16 +0200 |
commit | f075c30ed6b7820a7723cf18049c2ec2384c5dab (patch) | |
tree | 0b5454b01026652177e466a1cac2d9b96879cbea /sw/source/core/inc/rootfrm.hxx | |
parent | 978a54b99d7e2df9c0df61cdc3d4153a005618b0 (diff) |
Refactor duplicated code in SwFrame::InsertPage
Change-Id: Iff9a78cf2f5e6ded4d1b03a8303529aa324ddad9
Diffstat (limited to 'sw/source/core/inc/rootfrm.hxx')
-rw-r--r-- | sw/source/core/inc/rootfrm.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sw/source/core/inc/rootfrm.hxx b/sw/source/core/inc/rootfrm.hxx index 66dc0ecf0601..078a8380b29d 100644 --- a/sw/source/core/inc/rootfrm.hxx +++ b/sw/source/core/inc/rootfrm.hxx @@ -58,6 +58,12 @@ namespace o3tl template<> struct typed_flags<SwInvalidateFlags> : is_typed_flags<SwInvalidateFlags, 0x7f> {}; }; +enum class SwRemoveResult +{ + Next, + Prev +}; + /// The root element of a Writer document layout. class SwRootFrame: public SwLayoutFrame { @@ -385,6 +391,8 @@ public: bool IsLayoutFreezed() const { return mbLayoutFreezed; } void FreezeLayout( bool freeze ) { mbLayoutFreezed = freeze; } + + void RemovePage( SwPageFrame **pDel, SwRemoveResult eResult ); }; inline long SwRootFrame::GetBrowseWidth() const |