summaryrefslogtreecommitdiff
path: root/sw/inc/swscanner.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-08-28 17:10:35 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-08-29 09:02:50 +0100
commit42a15f45ff4e02f98229de02efd0d8c19f10bcd5 (patch)
tree67031948d50d251825c1d05d5547a499a1c5e51b /sw/inc/swscanner.hxx
parent02f6e55231c8b1646cbafc0e3e591da8122e2bf1 (diff)
Resolves: fdo#38983 allow extra word boundary characters
i.e. word overrides emdash and endash to be word boundary characters for the purposes of counting words. And there are some who want to treat =,- etc similarly. Default to a configuration that gives the same results as Word for word counting. Change-Id: Ia8ce6ac12011a1d6e547f11644c76163c4c993c5
Diffstat (limited to 'sw/inc/swscanner.hxx')
-rw-r--r--sw/inc/swscanner.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sw/inc/swscanner.hxx b/sw/inc/swscanner.hxx
index f657f238c2ca..7a71c0a1e9e9 100644
--- a/sw/inc/swscanner.hxx
+++ b/sw/inc/swscanner.hxx
@@ -43,13 +43,15 @@ class SwScanner
{
rtl::OUString aWord;
const SwTxtNode& rNode;
- const rtl::OUString aText;
+ const rtl::OUString aPreDashReplacementText;
+ rtl::OUString aText;
const LanguageType* pLanguage;
const ModelToViewHelper& rConversionMap;
sal_Int32 nStartPos;
sal_Int32 nEndPos;
sal_Int32 nBegin;
sal_Int32 nLen;
+ sal_Int32 nOverriddenDashCount;
LanguageType aCurrLang;
sal_uInt16 nWordType;
sal_Bool bClip;
@@ -74,6 +76,8 @@ public:
sal_Int32 GetLen() const { return nLen; }
LanguageType GetCurrentLanguage() const {return aCurrLang;}
+
+ sal_Int32 getOverriddenDashCount() const {return nOverriddenDashCount; }
};
#endif