summaryrefslogtreecommitdiffstats
path: root/sw/source/ui/inc/optpage.hxx
diff options
context:
space:
mode:
authorgt <gt@openoffice.org>2002-08-07 11:09:33 +0000
committergt <gt@openoffice.org>2002-08-07 11:09:33 +0000
commitef3adb105ccdc2263fdce2f3e322a99e3e11459c (patch)
tree602666c0cc341655009315b91aed57f293236d59 /sw/source/ui/inc/optpage.hxx
parent#100781# insert/frame recordable (diff)
downloadcore-ef3adb105ccdc2263fdce2f3e322a99e3e11459c.tar.gz
core-ef3adb105ccdc2263fdce2f3e322a99e3e11459c.zip
#101526# HC/settings dependent color handling for SwMarkPreview
Diffstat (limited to 'sw/source/ui/inc/optpage.hxx')
-rw-r--r--sw/source/ui/inc/optpage.hxx46
1 files changed, 26 insertions, 20 deletions
diff --git a/sw/source/ui/inc/optpage.hxx b/sw/source/ui/inc/optpage.hxx
index 3299267a6271..4ad6f9ad0d0e 100644
--- a/sw/source/ui/inc/optpage.hxx
+++ b/sw/source/ui/inc/optpage.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: optpage.hxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: os $ $Date: 2002-06-11 08:38:52 $
+ * last change: $Author: gt $ $Date: 2002-08-07 12:08:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -381,26 +381,32 @@ public:
class SwMarkPreview : public Window
{
- Color aTransColor; // Transparente Farbe
- Color aMarkColor; // Farbe der Markierungen
-
- Rectangle aPage;
- Rectangle aLeftPagePrtArea;
- Rectangle aRightPagePrtArea;
-
- USHORT nMarkPos;
-
- void DrawRect(const Rectangle &rRect, const Color &rFillColor, const Color &rLineColor);
- void Paint(const Rectangle&);
- void PaintPage(const Rectangle &rRect);
-
+ Color m_aBgCol; // background
+ Color m_aTransCol; // transparency
+ Color m_aMarkCol; // marks
+ Color m_aLineCol; // general lines
+ Color m_aShadowCol; // shadow
+ Color m_aTxtCol; // text
+ Color m_aPrintAreaCol; // frame for print area
+
+ Rectangle aPage;
+ Rectangle aLeftPagePrtArea;
+ Rectangle aRightPagePrtArea;
+
+ USHORT nMarkPos;
+
+ void DrawRect(const Rectangle &rRect, const Color &rFillColor, const Color &rLineColor);
+ void Paint(const Rectangle&);
+ void PaintPage(const Rectangle &rRect);
+ void InitColors( void );
+protected:
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
public:
+ SwMarkPreview(Window* pParent, const ResId& rResID);
+ virtual ~SwMarkPreview();
- SwMarkPreview(Window* pParent, const ResId& rResID);
- ~SwMarkPreview();
-
- inline void SetColor(Color aCol) { aMarkColor = aCol; }
- inline void SetMarkPos(USHORT nPos) { nMarkPos = nPos; }
+ inline void SetColor(const Color& rCol) { m_aMarkCol = rCol; }
+ inline void SetMarkPos(USHORT nPos) { nMarkPos = nPos; }
};
/*-----------------------------------------------------------------------