diff options
Diffstat (limited to 'sw/inc/section.hxx')
-rw-r--r-- | sw/inc/section.hxx | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sw/inc/section.hxx b/sw/inc/section.hxx index 80cabb722e01..9a6452a424fd 100644 --- a/sw/inc/section.hxx +++ b/sw/inc/section.hxx @@ -36,6 +36,7 @@ #include <tools/rtti.hxx> #include <tools/ref.hxx> #include <svl/svarray.hxx> +#include <svl/smplhint.hxx> #include <sfx2/lnkbase.hxx> #include <sfx2/Metadatable.hxx> @@ -267,6 +268,28 @@ public: }; +/** Hint used to notify the deletion of SwSectionFrm objects with or without + keeping the content of the frame #i117863#. + */ +class SwSectionFrmMoveAndDeleteHint : public SfxSimpleHint +{ + public: + SwSectionFrmMoveAndDeleteHint( const sal_Bool bSaveCntnt ) + : SfxSimpleHint( SFX_HINT_DYING ) + , mbSaveCntnt( bSaveCntnt ) + {} + + ~SwSectionFrmMoveAndDeleteHint() + {} + + sal_Bool IsSaveCntnt() const + { + return mbSaveCntnt; + } + + private: + const sal_Bool mbSaveCntnt; +}; enum SectionSort { SORTSECT_NOT, SORTSECT_NAME, SORTSECT_POS }; |