Kaydet (Commit) 61328e69 authored tarafından Thomas Arnhold's avatar Thomas Arnhold

starmath: no need to set those on every paint event

Change-Id: Ife149baf15d6f38a2a316e124b78bdb7e1b64967
üst 480bb725
...@@ -220,6 +220,11 @@ SmElementsControl::SmElementsControl(Window *pParent, const ResId& rResId) ...@@ -220,6 +220,11 @@ SmElementsControl::SmElementsControl(Window *pParent, const ResId& rResId)
, mbVerticalMode(true) , mbVerticalMode(true)
, mpScroll(new ScrollBar(this, WB_VERT)) , mpScroll(new ScrollBar(this, WB_VERT))
{ {
SetMapMode( MapMode(MAP_100TH_MM) );
SetDrawMode( DRAWMODE_DEFAULT );
SetLayoutMode( TEXT_LAYOUT_BIDI_LTR );
SetDigitLanguage( LANGUAGE_ENGLISH );
maFormat.SetBaseSize(PixelToLogic(Size(0, SmPtsTo100th_mm(12)))); maFormat.SetBaseSize(PixelToLogic(Size(0, SmPtsTo100th_mm(12))));
mpScroll->SetScrollHdl( LINK(this, SmElementsControl, ScrollHdl) ); mpScroll->SetScrollHdl( LINK(this, SmElementsControl, ScrollHdl) );
...@@ -240,11 +245,6 @@ void SmElementsControl::Paint(const Rectangle&) ...@@ -240,11 +245,6 @@ void SmElementsControl::Paint(const Rectangle&)
{ {
Push(); Push();
SetMapMode( MapMode(MAP_100TH_MM) );
SetDrawMode( DRAWMODE_DEFAULT );
SetLayoutMode( TEXT_LAYOUT_BIDI_LTR );
SetDigitLanguage( LANGUAGE_ENGLISH );
bool bOldVisibleState = mpScroll->IsVisible(); bool bOldVisibleState = mpScroll->IsVisible();
sal_Int32 nScrollbarWidth = bOldVisibleState ? GetSettings().GetStyleSettings().GetScrollBarSize() : 0; sal_Int32 nScrollbarWidth = bOldVisibleState ? GetSettings().GetStyleSettings().GetScrollBarSize() : 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment