summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorjp <jp@openoffice.org>2001-01-19 15:45:37 +0000
committerjp <jp@openoffice.org>2001-01-19 15:45:37 +0000
commit1c9bf21bee488abe83875c9fe9e31da56423a12d (patch)
treebd516082850a5c3f1155e9907391199ca8999eac /sw/inc
parent59ed5348e17111eb8657f47717ddae5d893adccf (diff)
new: store the forbidden characters of a language in the document
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/doc.hxx22
-rw-r--r--sw/inc/docary.hxx24
2 files changed, 42 insertions, 4 deletions
diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx
index ec8c6c0bd64d..1459c78f49a3 100644
--- a/sw/inc/doc.hxx
+++ b/sw/inc/doc.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: doc.hxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: jp $ $Date: 2000-12-21 09:27:52 $
+ * last change: $Author: jp $ $Date: 2001-01-19 16:45:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -155,6 +155,7 @@ class SwFmt;
class SwFmtCol;
class SwFmtINetFmt;
class SwFmtRefMark;
+class SwForbiddenCharacterTable;
class SwFrmFmt;
class SwFrmFmts;
class SwFtnIdxs;
@@ -219,6 +220,10 @@ struct SwHash;
struct SwSortOptions;
struct SwDefTOXBase_Impl;
+namespace com { namespace sun { namespace star { namespace i18n {
+ struct ForbiddenCharacters; // comes from the I18N UNO interface
+}}}};
+
namespace utl {
class TransliterationWrapper;
};
@@ -351,6 +356,9 @@ class SwDoc
// like footnote/endnote in sections
SwUnoCallBack *pUnoCallBack;
+
+ SwForbiddenCharacterTable* pForbiddenCharsTbl; // table of forbidden
+ // characters of this document
// -------------------------------------------------------------------
// sonstige
sal_uInt16 nUndoPos; // akt. Undo-InsertPosition (fuers Redo!)
@@ -1733,6 +1741,16 @@ public:
sal_Bool ContainsMSVBasic() const { return bContains_MSVBasic; }
void SetContainsMSVBasic( sal_Bool bFlag ) { bContains_MSVBasic = bFlag; }
+ // Interface for the forbidden characters of any asian/.. languages
+ const com::sun::star::i18n::
+ ForbiddenCharacters* GetForbiddenCharacters( ULONG nLang,
+ BOOL bLocaleData ) const;
+ void SetForbiddenCharacters( ULONG nLang,
+ const com::sun::star::i18n::ForbiddenCharacters& );
+ void ClearForbiddenCharacters( ULONG nLang );
+ const SwForbiddenCharacterTable* GetForbiddenCharacterTbl() const
+ { return pForbiddenCharsTbl; }
+
// ------------------- Zugriff auf Dummy-Member --------------------
sal_Bool IsParaSpaceMax() const { return n8Dummy1 & DUMMY_PARASPACEMAX; }
diff --git a/sw/inc/docary.hxx b/sw/inc/docary.hxx
index d904c90b1cdc..a0fa7137cf21 100644
--- a/sw/inc/docary.hxx
+++ b/sw/inc/docary.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: docary.hxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 17:14:25 $
+ * last change: $Author: jp $ $Date: 2001-01-19 16:45:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -73,6 +73,14 @@ class SwRedline;
class SwUnoCrsr;
class SwOLENode;
+namespace com { namespace sun { namespace star { namespace i18n {
+ struct ForbiddenCharacters; // comes from the I18N UNO interface
+}}}};
+
+#ifndef _TABLE_HXX //autogen
+#include <tools/table.hxx>
+#endif
+
#ifndef _SWTYPES_HXX //autogen
#include <swtypes.hxx>
#endif
@@ -163,4 +171,16 @@ typedef SwOLENode* SwOLENodePtr;
SV_DECL_PTRARR(SwOLENodes,SwOLENodePtr,16,16)
+DECLARE_TABLE( _SwForbiddenCharacterTable_Impl,
+ com::sun::star::i18n::ForbiddenCharacters* )
+
+class SwForbiddenCharacterTable : public _SwForbiddenCharacterTable_Impl
+{
+public:
+ SwForbiddenCharacterTable( USHORT nISize = 4, USHORT nGrow = 4 )
+ : _SwForbiddenCharacterTable_Impl( nISize, nGrow )
+ {}
+ ~SwForbiddenCharacterTable();
+};
+
#endif //_DOCARY_HXX