summaryrefslogtreecommitdiff
path: root/sw/inc/breakit.hxx
diff options
context:
space:
mode:
authorAndreas Martens <ama@openoffice.org>2000-11-24 14:24:58 +0000
committerAndreas Martens <ama@openoffice.org>2000-11-24 14:24:58 +0000
commit31e1bc2b3b95db8bfea68273f7df3af379feb550 (patch)
tree543507585084260e26ae0573814acce2b450e7f4 /sw/inc/breakit.hxx
parent78f8f0ed578660b1c62b3573d212ce530b4b5296 (diff)
#80560#: Forbidden linestart/lineend characters in Asian formatting
Diffstat (limited to 'sw/inc/breakit.hxx')
-rw-r--r--sw/inc/breakit.hxx17
1 files changed, 13 insertions, 4 deletions
diff --git a/sw/inc/breakit.hxx b/sw/inc/breakit.hxx
index 3d837789d00f..e16ec9463a0d 100644
--- a/sw/inc/breakit.hxx
+++ b/sw/inc/breakit.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: breakit.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: jp $ $Date: 2000-11-20 15:00:30 $
+ * last change: $Author: ama $ $Date: 2000-11-24 15:24:58 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -78,20 +78,29 @@
#include <com/sun/star/i18n/XBreakIterator.hpp>
#endif
+#ifndef _COM_SUN_STAR_I18N_FORBIDDENCHARACTERS_HDL_
+#include <com/sun/star/i18n/ForbiddenCharacters.hdl>
+#endif
+
class SwBreakIt
{
public:
com::sun::star::uno::Reference < com::sun::star::i18n::XBreakIterator > xBreak;
private:
com::sun::star::lang::Locale* pLocale;
- LanguageType aLast;
+ com::sun::star::i18n::ForbiddenCharacters* pForbidden;
+ LanguageType aLast; // language of the current locale
+ LanguageType aForbiddenLang; // language of the current forbiddenChar struct
com::sun::star::lang::Locale& _GetLocale( const LanguageType aLang );
+ com::sun::star::i18n::ForbiddenCharacters& _GetForbidden( const LanguageType aLang );
public:
SwBreakIt();
- ~SwBreakIt() { delete pLocale; }
+ ~SwBreakIt() { delete pLocale; delete pForbidden; }
com::sun::star::lang::Locale& GetLocale( const LanguageType aLang )
{ if( aLast == aLang ) return *pLocale; return _GetLocale( aLang ); }
+ com::sun::star::i18n::ForbiddenCharacters& GetForbidden( const LanguageType aLang )
+ { if( aForbiddenLang == aLang ) return *pForbidden; return _GetForbidden( aLang ); }
};
extern SwBreakIt* pBreakIt;