summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorAybuke Ozdemir <aybuke.147@gmail.com>2015-10-23 23:12:08 +0300
committerAndras Timar <andras.timar@collabora.com>2015-11-03 18:10:18 +0100
commitd87f6f5d00b207dddb67a5a44e6a2edb8953d437 (patch)
treed0876be76987bc4c8c6ec41575ef72519ffccc84 /svx
parentdd8b7bfc252400153b5ec1b52c045c346ad853fe (diff)
tdf#88548 fontwork gallery always have transparent/checkered background.
Change-Id: I8995ef12edb64c14788ba3a2c3c1c2ceb3775b11 (cherry picked from commit 9b322ace3b8f316104f7138b082d2ffdb282c816) Reviewed-on: https://gerrit.libreoffice.org/19642 Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de> Tested-by: Katarina Behrens <Katarina.Behrens@cib.de> (cherry picked from commit 813b11a96e4c1243c4d3533eee148c49d8926ecc)
Diffstat (limited to 'svx')
-rw-r--r--svx/source/gallery2/galctrl.cxx20
-rw-r--r--svx/source/tbxctrls/fontworkgallery.cxx17
2 files changed, 9 insertions, 28 deletions
diff --git a/svx/source/gallery2/galctrl.cxx b/svx/source/gallery2/galctrl.cxx
index e05b8abd7c15..f79ca3cf3e20 100644
--- a/svx/source/gallery2/galctrl.cxx
+++ b/svx/source/gallery2/galctrl.cxx
@@ -257,23 +257,13 @@ void GalleryPreview::PreviewMedia( const INetURLObject& rURL )
void drawTransparenceBackground(vcl::RenderContext& rOut, const Point& rPos, const Size& rSize)
{
- const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings();
- if (rStyleSettings.GetPreviewUsesCheckeredBackground())
- {
- // draw checkered background
- static const sal_uInt32 nLen(8);
- static const Color aW(COL_WHITE);
- static const Color aG(0xef, 0xef, 0xef);
+ // draw checkered background
+ static const sal_uInt32 nLen(8);
+ static const Color aW(COL_WHITE);
+ static const Color aG(0xef, 0xef, 0xef);
- rOut.DrawCheckered(rPos, rSize, nLen, aW, aG);
- }
- else
- {
- rOut.SetLineColor();
- rOut.SetFillColor(rStyleSettings.GetFieldColor());
- rOut.DrawRect(Rectangle(rPos, rSize));
- }
+ rOut.DrawCheckered(rPos, rSize, nLen, aW, aG);
}
GalleryIconView::GalleryIconView( GalleryBrowser2* pParent, GalleryTheme* pTheme ) :
diff --git a/svx/source/tbxctrls/fontworkgallery.cxx b/svx/source/tbxctrls/fontworkgallery.cxx
index 2cd3fa3ed24e..16fd43e92642 100644
--- a/svx/source/tbxctrls/fontworkgallery.cxx
+++ b/svx/source/tbxctrls/fontworkgallery.cxx
@@ -116,7 +116,6 @@ void FontWorkGalleryDialog::initFavorites(sal_uInt16 nThemeId)
sal_uInt32 nModelPos;
FmFormModel *pModel = NULL;
- const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings();
for( nModelPos = 0; nModelPos < nFavCount; nModelPos++ )
{
@@ -134,19 +133,11 @@ void FontWorkGalleryDialog::initFavorites(sal_uInt16 nThemeId)
pVDev->SetOutputSizePixel(aSize);
- if(rStyleSettings.GetPreviewUsesCheckeredBackground())
- {
- static const sal_uInt32 nLen(8);
- static const Color aW(COL_WHITE);
- static const Color aG(0xef, 0xef, 0xef);
+ static const sal_uInt32 nLen(8);
+ static const Color aW(COL_WHITE);
+ static const Color aG(0xef, 0xef, 0xef);
- pVDev->DrawCheckered(aNull, aSize, nLen, aW, aG);
- }
- else
- {
- pVDev->SetBackground(rStyleSettings.GetFieldColor());
- pVDev->Erase();
- }
+ pVDev->DrawCheckered(aNull, aSize, nLen, aW, aG);
pVDev->DrawBitmapEx(aNull, aThumb);
maFavoritesHorizontal.push_back(pVDev->GetBitmap(aNull, aSize));