summaryrefslogtreecommitdiff
path: root/sw/inc/lineinfo.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/inc/lineinfo.hxx')
-rw-r--r--sw/inc/lineinfo.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/inc/lineinfo.hxx b/sw/inc/lineinfo.hxx
index 17f78e950ce5..66e3cbf23cff 100644
--- a/sw/inc/lineinfo.hxx
+++ b/sw/inc/lineinfo.hxx
@@ -58,6 +58,8 @@ class SW_DLLPUBLIC SwLineNumberInfo : public SwClient //purpose of derivation fr
sal_Bool bCountInFlys; //Count also within FlyFrames?
sal_Bool bRestartEachPage; //Restart counting at the first paragraph of each page
//(even on follows when paragraphs are splitted)
+protected:
+ virtual void Modify( const SfxPoolItem*, const SfxPoolItem* );
public:
SwLineNumberInfo();
@@ -98,7 +100,7 @@ public:
sal_Bool IsRestartEachPage() const { return bRestartEachPage; }
void SetRestartEachPage( sal_Bool b ) { bRestartEachPage = b; }
- virtual void Modify( SfxPoolItem*, SfxPoolItem* );
+ bool HasCharFormat() const { return GetRegisteredIn() != 0; }
};