summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2011-12-28 20:01:57 +0100
committerJan Holesovsky <kendy@suse.cz>2011-12-29 13:46:20 +0100
commit64e08fd3c5980b74bb958dc566c229d92db18726 (patch)
treec70e96ad9bf59547d1a80a3500c9700fd285af7c /sw/inc
parent4e41996b5693414c0887c2c4d929cd16f4eb4577 (diff)
Header/Footer: Show / hide the control immediately.
- When the mouse pointer enters or leaves the headers / footers, show or hide the header / footer control immediately. Waiting for that to appear is annoying; and similarly for disappearing - one usually ended up clicking the header / footer area to speed that up, and had a feeling of misbehaving. - Few related re-paint improvements
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/crsrsh.hxx1
-rw-r--r--sw/inc/viewsh.hxx10
2 files changed, 6 insertions, 5 deletions
diff --git a/sw/inc/crsrsh.hxx b/sw/inc/crsrsh.hxx
index fac84b448f09..fba2e6814881 100644
--- a/sw/inc/crsrsh.hxx
+++ b/sw/inc/crsrsh.hxx
@@ -495,6 +495,7 @@ public:
void SetReadOnlyAvailable( sal_Bool bFlag );
sal_Bool IsOverReadOnlyPos( const Point& rPt ) const;
+ /// Is the rPt point in the header or footer area?
sal_Bool IsOverHeaderFooterPos( const Point& rPt ) const;
// Methods for aFlyMacroLnk.
diff --git a/sw/inc/viewsh.hxx b/sw/inc/viewsh.hxx
index 241fb17b8e3e..fd4a3d67edbe 100644
--- a/sw/inc/viewsh.hxx
+++ b/sw/inc/viewsh.hxx
@@ -156,8 +156,8 @@ 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 bShowHeaderFooterSeparator;
- sal_Bool bHeaderFooterEdit;
+ bool bShowHeaderFooterSeparator:1;
+ bool bHeaderFooterEdit:1;
// (e.g. when browsing).
// boolean, indicating that class in in constructor.
@@ -566,9 +566,9 @@ public:
SwPostItMgr* GetPostItMgr();
void ToggleHeaderFooterEdit( );
- sal_Bool IsHeaderFooterEdit( ) const { return bHeaderFooterEdit; }
- sal_Bool IsShowHeaderFooterSeparator( ) { return bShowHeaderFooterSeparator; }
- virtual void SetShowHeaderFooterSeparator( sal_Bool bShow ) { bShowHeaderFooterSeparator = bShow; }
+ bool IsHeaderFooterEdit() const { return bHeaderFooterEdit; }
+ bool IsShowHeaderFooterSeparator() { return bShowHeaderFooterSeparator; }
+ virtual void SetShowHeaderFooterSeparator( bool bShow ) { bShowHeaderFooterSeparator = bShow; }
};
//---- class CurrShell manages global ShellPointer -------------------