summaryrefslogtreecommitdiff
path: root/starmath/inc/dialog.hxx
diff options
context:
space:
mode:
authorThomas Lange <tl@openoffice.org>2002-05-24 11:12:46 +0000
committerThomas Lange <tl@openoffice.org>2002-05-24 11:12:46 +0000
commit260810f6b0eb350aeb5c82fadb9ad4dcbfc0f9f2 (patch)
treee51f61a5275a3ff3ca845e5c4c95bac05ea7e96f /starmath/inc/dialog.hxx
parent8a44fa70e563ec5d09db51952ae5881167e66493 (diff)
#98792# HC bitmaps for accessibility
Diffstat (limited to 'starmath/inc/dialog.hxx')
-rw-r--r--starmath/inc/dialog.hxx26
1 files changed, 19 insertions, 7 deletions
diff --git a/starmath/inc/dialog.hxx b/starmath/inc/dialog.hxx
index 1aeee6233aad..2f941578ccb1 100644
--- a/starmath/inc/dialog.hxx
+++ b/starmath/inc/dialog.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: dialog.hxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: tl $ $Date: 2002-04-24 10:09:56 $
+ * last change: $Author: tl $ $Date: 2002-05-24 12:11:57 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -289,10 +289,12 @@ class SmCategoryDesc : public Resource
{
XubString Name;
XubString *Strings[4];
- Bitmap *Graphics[4];
- USHORT Minimum[4];
- USHORT Maximum[4];
- USHORT Value[4];
+ Bitmap *Graphics[4]; /* regular bitmaps */
+ Bitmap *GraphicsH[4]; /* high contrast bitmaps */
+ USHORT Minimum[4];
+ USHORT Maximum[4];
+ USHORT Value[4];
+ BOOL bIsHighContrast;
public:
SmCategoryDesc(const ResId &rResId, USHORT nCategoryIdx);
@@ -300,11 +302,16 @@ public:
const XubString & GetName() const { return Name; }
const XubString * GetString(USHORT Index) const { return Strings[Index]; }
- const Bitmap * GetGraphic(USHORT Index) const { return Graphics[Index]; }
USHORT GetMinimum(USHORT Index) { return Minimum[Index]; }
USHORT GetMaximum(USHORT Index) { return Maximum[Index]; }
USHORT GetValue(USHORT Index) const { return Value[Index]; }
void SetValue(USHORT Index, USHORT nVal) { Value[Index] = nVal;}
+
+ void SetHighContrast( BOOL bVal ) { bIsHighContrast = bVal; }
+ const Bitmap * GetGraphic(USHORT Index) const
+ {
+ return bIsHighContrast ? GraphicsH[Index] : Graphics[Index];
+ }
};
@@ -338,12 +345,17 @@ class SmDistanceDialog : public ModalDialog
void SetHelpId(MetricField &rField, ULONG nHelpId);
void SetCategory(USHORT Category);
+ void ApplyImages();
+
public:
SmDistanceDialog(Window *pParent, BOOL bFreeRes = TRUE);
~SmDistanceDialog();
void ReadFrom(const SmFormat &rFormat);
void WriteTo (SmFormat &rFormat) /*const*/;
+
+ // Window
+ virtual void DataChanged( const DataChangedEvent &rEvt );
};