summaryrefslogtreecommitdiff
path: root/vcl/inc/vcl/fixed.hxx
diff options
context:
space:
mode:
authorFrank Sch├Ânheit <fs@openoffice.org>2009-09-14 12:09:22 +0000
committerFrank Sch├Ânheit <fs@openoffice.org>2009-09-14 12:09:22 +0000
commitcdc8876be07e8191f38a47159ec152c3b90a7d82 (patch)
tree1d34b161a5ccd12e2ecd484ef6b00d9b0cf710ef /vcl/inc/vcl/fixed.hxx
parent0331574c1e307c9c55cd162f2a52bebcb7b0a740 (diff)
#cr6875455#
- introduce impl-data (ControlData) for a control - move Control::mpLayoutData to an impl structure - introduce Control::GetCanonicalFont/TextColor - introduce Control::ImplInitSettings, which collects the duplicated code in all kind of derived classes, relying on GetCanonical* now - introduce a reference device for a Control, which can be used to render text - introduce Control::DrawControlText, which delegates to DrawText if no reference device is set, or renders the text using the reference device - let static (i.e. non-input) Control classes use DrawControlText instead of DrawText missing items (at least): - text layout data in DrawControlText (needed for A11Y) - respect vertical and horizontal alignments - respect various other TEXT_DRAW_* flags - word breaks
Diffstat (limited to 'vcl/inc/vcl/fixed.hxx')
-rw-r--r--vcl/inc/vcl/fixed.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/vcl/inc/vcl/fixed.hxx b/vcl/inc/vcl/fixed.hxx
index ba576f280b83..83f8c0fcb190 100644
--- a/vcl/inc/vcl/fixed.hxx
+++ b/vcl/inc/vcl/fixed.hxx
@@ -58,6 +58,11 @@ public:
//#endif
protected:
virtual void FillLayoutData() const;
+ virtual const Font&
+ GetCanonicalFont( const StyleSettings& _rStyle ) const;
+ virtual const Color&
+ GetCanonicalTextColor( const StyleSettings& _rStyle ) const;
+
public:
FixedText( Window* pParent, WinBits nStyle = 0 );
FixedText( Window* pParent, const ResId& rResId );
@@ -89,6 +94,10 @@ private:
protected:
virtual void FillLayoutData() const;
+ virtual const Font&
+ GetCanonicalFont( const StyleSettings& _rStyle ) const;
+ virtual const Color&
+ GetCanonicalTextColor( const StyleSettings& _rStyle ) const;
public:
FixedLine( Window* pParent, WinBits nStyle = WB_HORZ );