diff options
author | Frank Schönheit <fs@openoffice.org> | 2009-09-17 21:35:29 +0000 |
---|---|---|
committer | Frank Schönheit <fs@openoffice.org> | 2009-09-17 21:35:29 +0000 |
commit | 79cad7d02a0eb7cc6e662ad424204f4599a7981a (patch) | |
tree | e150aee2b359e334d7d051863fa267fe7d76796a /vcl/source/gdi/textlayout.cxx | |
parent | f3456e8a2e2f300dab24871c4323461cb90b40e1 (diff) |
consolidate DrawText and GetText - we do need versions with and without ITextLayout parameter
Diffstat (limited to 'vcl/source/gdi/textlayout.cxx')
-rwxr-xr-x | vcl/source/gdi/textlayout.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/vcl/source/gdi/textlayout.cxx b/vcl/source/gdi/textlayout.cxx index 7ea72e8e12ea..ddb8979a1a73 100755 --- a/vcl/source/gdi/textlayout.cxx +++ b/vcl/source/gdi/textlayout.cxx @@ -54,7 +54,6 @@ namespace vcl long GetTextArray( const XubString& _rText, sal_Int32* _pDXAry, xub_StrLen _nStartIndex, xub_StrLen _nLength ) const; Rectangle DrawText( const Rectangle& _rRect, const XubString& _rText, USHORT _nStyle, MetricVector* _pVector, String* _pDisplayText); - bool IsZoom() const; protected: @@ -226,6 +225,13 @@ namespace vcl aRect.Bottom() = long( aRect.Bottom() / (double)m_aZoom ); } +#ifdef FS_DEBUG + m_rTargetDevice.Push( PUSH_LINECOLOR | PUSH_FILLCOLOR ); + m_rTargetDevice.SetLineColor( COL_LIGHTBLUE ); + m_rTargetDevice.SetFillColor(); + m_rTargetDevice.DrawRect( aRect ); + m_rTargetDevice.Pop(); +#endif onBeginDrawText(); m_rTargetDevice.DrawText( aRect, _rText, _nStyle, _pVector, _pDisplayText, this ); Rectangle aTextRect = onEndDrawText(); |