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
commitbc69e1fb8fb39a242de0521c7ba387f94e33a11a (patch)
treeac91393813826be5616221517f4301d32b4e5589 /sw/inc/breakit.hxx
parent5046119f7a09bbf2fd11afff3ffbd91c3ec9e2cd (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 899c264bb2..f1867c135d 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;