diff options
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/uibase/docvw/HeaderFooterWin.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/docvw/srcedtw.cxx | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sw/source/uibase/docvw/HeaderFooterWin.cxx b/sw/source/uibase/docvw/HeaderFooterWin.cxx index 7ee871dcee93..3b7f4046d8dd 100644 --- a/sw/source/uibase/docvw/HeaderFooterWin.cxx +++ b/sw/source/uibase/docvw/HeaderFooterWin.cxx @@ -135,9 +135,11 @@ SwHeaderFooterWin::SwHeaderFooterWin( SwEditWin* pEditWin, const SwPageFrm* pPag m_nFadeRate( 100 ), m_aFadeTimer( ) { + //FIXME RenderContext + // Get the font and configure it vcl::Font aFont = Application::GetSettings().GetStyleSettings().GetToolFont(); - SetZoomedPointFont(aFont); + SetZoomedPointFont(*this, aFont); // Create the line control m_pLine = VclPtr<SwDashedLine>::Create(GetEditWin(), &SwViewOption::GetHeaderFooterMarkColor); diff --git a/sw/source/uibase/docvw/srcedtw.cxx b/sw/source/uibase/docvw/srcedtw.cxx index 12fe31cac62c..012f34ba5f81 100644 --- a/sw/source/uibase/docvw/srcedtw.cxx +++ b/sw/source/uibase/docvw/srcedtw.cxx @@ -485,6 +485,8 @@ void TextViewOutWin::Paint(vcl::RenderContext& rRenderContext, const Rectangle& void SwSrcEditWindow::CreateTextEngine() { + // FIXME RenderContext + const Color &rCol = GetSettings().GetStyleSettings().GetWindowColor(); pOutWin = VclPtr<TextViewOutWin>::Create(this, 0); pOutWin->SetBackground(Wallpaper(rCol)); @@ -514,7 +516,7 @@ void SwSrcEditWindow::CreateTextEngine() vcl::Font aFont; aFont.SetTransparent( false ); aFont.SetFillColor( rCol ); - SetPointFont( aFont ); + SetPointFont(*this, aFont); aFont = GetFont(); aFont.SetFillColor( rCol ); pOutWin->SetFont( aFont ); |