summaryrefslogtreecommitdiff
path: root/svx/source/editeng/impedit3.cxx
diff options
context:
space:
mode:
authorMalte Timmermann <mt@openoffice.org>2001-08-28 08:58:54 +0000
committerMalte Timmermann <mt@openoffice.org>2001-08-28 08:58:54 +0000
commitc46e34aa5e7d4f102f618df335a46525fcd7d965 (patch)
treec9f485371f5dd54a2ee8f8a14dbd105c53309351 /svx/source/editeng/impedit3.cxx
parentf6efc1591b5721e4f27c052ab688e63ee2dfeb24 (diff)
#87976# AscianCompression - use values from idl
Diffstat (limited to 'svx/source/editeng/impedit3.cxx')
-rw-r--r--svx/source/editeng/impedit3.cxx13
1 files changed, 9 insertions, 4 deletions
diff --git a/svx/source/editeng/impedit3.cxx b/svx/source/editeng/impedit3.cxx
index ba21d7e08268..d79e24365824 100644
--- a/svx/source/editeng/impedit3.cxx
+++ b/svx/source/editeng/impedit3.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: impedit3.cxx,v $
*
- * $Revision: 1.49 $
+ * $Revision: 1.50 $
*
- * last change: $Author: mt $ $Date: 2001-08-21 11:00:40 $
+ * last change: $Author: mt $ $Date: 2001-08-28 09:58:54 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -111,10 +111,15 @@
#include <vcl/metric.hxx>
#endif
-#ifndef _COM_SUN_STAR_TEXT_SCRIPTTYPE_HPP_
+#ifndef _COM_SUN_STAR_I18N_SCRIPTTYPE_HPP_
#include <com/sun/star/i18n/ScriptType.hpp>
#endif
+#ifndef _COM_SUN_STAR_TEXT_CHARACTERCOMPRESSIONTYPE_HPP_
+#include <com/sun/star/text/CharacterCompressionType.hpp>
+#endif
+
+
#include <comphelper/processfactory.hxx>
using namespace ::rtl;
@@ -3403,7 +3408,7 @@ BOOL ImpEditEngine::ImplCalcAsianCompression( ContentNode* pNode, TextPortion* p
BYTE nType = GetCharTypeForCompression( pNode->GetChar( n+nStartPos ) );
BOOL bCompressPunctuation = ( nType == CHAR_PUNCTUATIONLEFT ) || ( nType == CHAR_PUNCTUATIONRIGHT );
- BOOL bCompressKana = ( nType == CHAR_KANA ) && ( GetAsianCompressionMode() == EE_ASIANCOMPRESSION_PUNCTIONANDKANA );
+ BOOL bCompressKana = ( nType == CHAR_KANA ) && ( GetAsianCompressionMode() == text::CharacterCompressionType::PUNCTUATION_AND_KANA );
// create Extra infos only if needed...
if ( bCompressPunctuation || bCompressKana )