summaryrefslogtreecommitdiff
path: root/linguistic/source/hyphdta.cxx
diff options
context:
space:
mode:
authorThomas Lange <tl@openoffice.org>2000-12-22 11:45:48 +0000
committerThomas Lange <tl@openoffice.org>2000-12-22 11:45:48 +0000
commit1f956e2ab61d1b1bea868cd0786102ebb8a135a7 (patch)
tree95ce6268268c941415263179e91ad216197fa700 /linguistic/source/hyphdta.cxx
parente22125337c50560ac30e24ea8489e6f3654e6dfe (diff)
linguistic functionality for handling words with hyphens and control chars
Diffstat (limited to 'linguistic/source/hyphdta.cxx')
-rw-r--r--linguistic/source/hyphdta.cxx12
1 files changed, 9 insertions, 3 deletions
diff --git a/linguistic/source/hyphdta.cxx b/linguistic/source/hyphdta.cxx
index e3809db68581..cce98a764d9d 100644
--- a/linguistic/source/hyphdta.cxx
+++ b/linguistic/source/hyphdta.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: hyphdta.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-11-17 12:37:36 $
+ * last change: $Author: tl $ $Date: 2000-12-22 12:45:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -81,6 +81,9 @@
#ifndef _TOOLS_DEBUG_HXX //autogen wg. DBG_ASSERT
#include <tools/debug.hxx>
#endif
+#ifndef _SVTOOLS_LNGMISC_HXX_
+#include <svtools/lngmisc.hxx>
+#endif
//using namespace utl;
using namespace osl;
@@ -104,7 +107,10 @@ HyphenatedWord::HyphenatedWord(const OUString &rWord, INT16 nLang, INT16 nHPos,
nHyphenationPos (nHPos),
nHyphPos (nPos)
{
- bIsAltSpelling = rWord != rHyphWord;
+ OUString aTmp( rHyphWord );
+ RemoveHyphens( aTmp );
+ RemoveControlChars( aTmp );
+ bIsAltSpelling = rWord != aTmp;
}