summaryrefslogtreecommitdiff
path: root/sw/inc/viewsh.hxx
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-06-29 10:31:24 +0200
committerCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-06-30 17:57:18 +0200
commit20251fccc40bfaadf3651cc8d4b6bd321859da12 (patch)
tree04129cfb52a49ee2fb7ba4b64fb32bdb8c9ef0e7 /sw/inc/viewsh.hxx
parent75bb09f99947edd51216b9c40b113dc38ddd7643 (diff)
n#676858: implement header / footer edition mode
Prevent header / footer editing when editing the body and vice-versa. this commit simply adds the basic edition toggling using double-clicks.
Diffstat (limited to 'sw/inc/viewsh.hxx')
-rw-r--r--sw/inc/viewsh.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/inc/viewsh.hxx b/sw/inc/viewsh.hxx
index 88280b45613b..85e019e1f01a 100644
--- a/sw/inc/viewsh.hxx
+++ b/sw/inc/viewsh.hxx
@@ -156,6 +156,7 @@ class SW_DLLPUBLIC ViewShell : public Ring
sal_Bool bEnableSmooth :1; // Disable SmoothScroll, e.g. for drag
// of scrollbars.
sal_Bool bEndActionByVirDev:1; // Paints from EndAction always via virtual device
+ sal_Bool bHeaderFooterEdit;
// (e.g. when browsing).
// boolean, indicating that class in in constructor.
@@ -562,6 +563,9 @@ public:
const SwPostItMgr* GetPostItMgr() const { return (const_cast<ViewShell*>(this))->GetPostItMgr(); }
SwPostItMgr* GetPostItMgr();
+
+ void ToggleHeaderFooterEdit( ) { bHeaderFooterEdit = !bHeaderFooterEdit; }
+ sal_Bool IsHeaderFooterEdit( ) const { return bHeaderFooterEdit; }
};
//---- class CurrShell manages global ShellPointer -------------------