summaryrefslogtreecommitdiff
path: root/svtools/inc
diff options
context:
space:
mode:
authorHerbert Duerr <hdu@openoffice.org>2000-12-07 15:07:37 +0000
committerHerbert Duerr <hdu@openoffice.org>2000-12-07 15:07:37 +0000
commit14e52d3b28336f693b35ef50d4938d2602581744 (patch)
tree1edd14e01a41a9282de1f55589c5cd1c534c6c58 /svtools/inc
parent020e48e15c9b50abe11f4f6a5c75855fff92abfb (diff)
implement chinese font size names
Diffstat (limited to 'svtools/inc')
-rw-r--r--svtools/inc/ctrlbox.hxx23
-rw-r--r--svtools/inc/ctrltool.hxx28
2 files changed, 37 insertions, 14 deletions
diff --git a/svtools/inc/ctrlbox.hxx b/svtools/inc/ctrlbox.hxx
index 81f469abd27c..a89d21384532 100644
--- a/svtools/inc/ctrlbox.hxx
+++ b/svtools/inc/ctrlbox.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ctrlbox.hxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 16:58:50 $
+ * last change: $Author: hdu $ $Date: 2000-12-07 16:06:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -242,8 +242,7 @@ public:
BOOL IsEntrySelected( const Color& rColor ) const;
private:
- // Wegen einigen Compilern hier nocheinmal private deklariert, da
- // ansonsten die Compiler diese als Default-Funktionen implementieren
+ // declared as private because some compilers would generate the default functions
ColorListBox( const ColorListBox& );
ColorListBox& operator =( const ColorListBox& );
USHORT GetEntryPos( const void* pData ) const;
@@ -339,8 +338,7 @@ public:
Color GetColor() const { return aColor; }
private:
- // Wegen einigen Compilern hier nocheinmal private deklariert, da
- // ansonsten die Compiler diese als Default-Funktionen implementieren
+ // declared as private because some compilers would generate the default functions
LineListBox( const LineListBox& );
LineListBox& operator =( const LineListBox& );
USHORT GetEntryPos( const void* pData ) const;
@@ -429,8 +427,7 @@ public:
BOOL IsSymbolsEnabled() const { return mbSymbols; }
private:
- // Wegen einigen Compilern hier nocheinmal private deklariert, da
- // ansonsten die Compiler diese als Default-Funktionen implementieren
+ // declared as private because some compilers would generate the default functions
FontNameBox( const FontNameBox& );
FontNameBox& operator =( const FontNameBox& );
};
@@ -456,8 +453,7 @@ public:
void Fill( const XubString& rName, const FontList* pList );
private:
- // Wegen einigen Compilern hier nocheinmal private deklariert, da
- // ansonsten die Compiler diese als Default-Funktionen implementieren
+ // declared as private because some compilers would generate the default functions
FontStyleBox( const FontStyleBox& );
FontStyleBox& operator =( const FontStyleBox& );
};
@@ -514,9 +510,12 @@ public:
void SetPtRelative( BOOL bPtRel = TRUE )
{ bPtRelative = bPtRel; SetRelative( TRUE ); }
+ long GetValue( FieldUnit eOutUnit = FUNIT_NONE ) const;
+ long GetValue( USHORT nPos, FieldUnit eOutUnit ) const;
+ void SetValue( long nNewValue, FieldUnit eInUnit = FUNIT_NONE );
+
private:
- // Wegen einigen Compilern hier nocheinmal private deklariert, da
- // ansonsten die Compiler diese als Default-Funktionen implementieren
+ // declared as private because some compilers would generate the default functions
FontSizeBox( const FontSizeBox& );
FontSizeBox& operator =( const FontSizeBox& );
};
diff --git a/svtools/inc/ctrltool.hxx b/svtools/inc/ctrltool.hxx
index dbb6f1831577..1d9481184e0f 100644
--- a/svtools/inc/ctrltool.hxx
+++ b/svtools/inc/ctrltool.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ctrltool.hxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 16:58:50 $
+ * last change: $Author: hdu $ $Date: 2000-12-07 16:06:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -254,4 +254,28 @@ private:
FontList& operator =( const FontList& );
};
+
+class FontSizeNames
+{
+public:
+ FontSizeNames();
+
+ bool IsEmpty() const { return (mnElem <= 0); }
+ long Name2Size( const String& ) const;
+ const char* Size2UtfName( long ) const;
+
+ const char* GetIndexName( long ) const;
+ long GetIndexSize( long ) const;
+
+private:
+ struct FsizeNameItem* mpArray;
+ long mnElem;
+
+public:
+ static void SetNamePreference( bool b ) { bPreferName = b; }
+ static bool GetNamePreference() { return bPreferName; }
+
+ static bool bPreferName;
+};
+
#endif // _CTRLTOOL_HXX