diff options
author | Oliver Specht <os@openoffice.org> | 2001-06-28 09:00:20 +0000 |
---|---|---|
committer | Oliver Specht <os@openoffice.org> | 2001-06-28 09:00:20 +0000 |
commit | 3a3604ef9938cd8b3fc1e3bd5a70eaa39ded9d0d (patch) | |
tree | e7f627f512a7ede7e082545feffa7eac869bce76 | |
parent | ad8c6a0cc3c1ab8af095d57c38a1b2aba7204d24 (diff) |
#81329# use OutputDevice::GetDefaulFont
-rw-r--r-- | svx/source/dialog/numpages.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/svx/source/dialog/numpages.cxx b/svx/source/dialog/numpages.cxx index 7ca57a610872..96ef0750a1b0 100644 --- a/svx/source/dialog/numpages.cxx +++ b/svx/source/dialog/numpages.cxx @@ -2,9 +2,9 @@ * * $RCSfile: numpages.cxx,v $ * - * $Revision: 1.16 $ + * $Revision: 1.17 $ * - * last change: $Author: hr $ $Date: 2001-06-25 16:40:34 $ + * last change: $Author: os $ $Date: 2001-06-28 10:00:20 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1012,7 +1012,9 @@ void SvxNumValueSet::UserDraw( const UserDrawEvent& rUDEvt ) Font aOldFont = pDev->GetFont(); Color aOldColor = pDev->GetLineColor(); pDev->SetLineColor(aLineColor); - Font aFont(System::GetStandardFont(STDFONT_ROMAN)); + Font aFont(OutputDevice::GetDefaultFont( + DEFAULTFONT_UI_SANS, ::GetSystemLanguage(), DEFAULTFONT_FLAGS_ONLYONE)); + Size aSize = aFont.GetSize(); Font aRuleFont( lcl_GetDefaultBulletFont() ); @@ -3110,7 +3112,8 @@ void SvxNumberingPreview::Paint( const Rectangle& rRect ) USHORT nYStart = 4; // fuer ein einziges Level darf nicht die gesamte Hoehe benutzt werden USHORT nYStep = (aSize.Height() - 6)/ (pActNum->GetLevelCount() > 1 ? pActNum->GetLevelCount() : 5); - aStdFont = System::GetStandardFont(STDFONT_SWISS); + aStdFont = OutputDevice::GetDefaultFont( + DEFAULTFONT_UI_SANS, ::GetSystemLanguage(), DEFAULTFONT_FLAGS_ONLYONE); // USHORT nFontHeight = nYStep * 6 / 10; |