Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
a7ef614f
Kaydet (Commit)
a7ef614f
authored
Agu 27, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:staticmethods
Change-Id: I262a9e75ec20fad15b550b84989fd7acc118c53a
üst
79d1033f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
21 deletions
+19
-21
ThemePanel.cxx
sw/source/uibase/sidebar/ThemePanel.cxx
+19
-19
ThemePanel.hxx
sw/source/uibase/sidebar/ThemePanel.hxx
+0
-2
No files found.
sw/source/uibase/sidebar/ThemePanel.cxx
Dosyayı görüntüle @
a7ef614f
...
...
@@ -393,25 +393,7 @@ void applyTheme(SfxStyleSheetBasePool* pPool, const OUString& sFontSetName, cons
}
}
}
// end anonymous namespace
namespace
sw
{
namespace
sidebar
{
VclPtr
<
vcl
::
Window
>
ThemePanel
::
Create
(
vcl
::
Window
*
pParent
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
rxFrame
,
SfxBindings
*
pBindings
)
{
if
(
pParent
==
NULL
)
throw
css
::
lang
::
IllegalArgumentException
(
"no parent Window given to PagePropertyPanel::Create"
,
NULL
,
0
);
if
(
!
rxFrame
.
is
())
throw
css
::
lang
::
IllegalArgumentException
(
"no XFrame given to PagePropertyPanel::Create"
,
NULL
,
1
);
if
(
pBindings
==
NULL
)
throw
css
::
lang
::
IllegalArgumentException
(
"no SfxBindings given to PagePropertyPanel::Create"
,
NULL
,
2
);
return
VclPtr
<
ThemePanel
>::
Create
(
pParent
,
rxFrame
,
pBindings
);
}
BitmapEx
ThemePanel
::
GenerateColorPreview
(
const
svx
::
ColorSet
&
rColorSet
)
BitmapEx
GenerateColorPreview
(
const
svx
::
ColorSet
&
rColorSet
)
{
ScopedVclPtrInstance
<
VirtualDevice
>
pVirtualDev
(
*
Application
::
GetDefaultDevice
());
sal_Int32
nScaleFactor
=
pVirtualDev
->
GetDPIScaleFactor
();
...
...
@@ -441,6 +423,24 @@ BitmapEx ThemePanel::GenerateColorPreview(const svx::ColorSet& rColorSet)
return
pVirtualDev
->
GetBitmapEx
(
Point
(),
aSize
);
}
}
// end anonymous namespace
namespace
sw
{
namespace
sidebar
{
VclPtr
<
vcl
::
Window
>
ThemePanel
::
Create
(
vcl
::
Window
*
pParent
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
rxFrame
,
SfxBindings
*
pBindings
)
{
if
(
pParent
==
NULL
)
throw
css
::
lang
::
IllegalArgumentException
(
"no parent Window given to PagePropertyPanel::Create"
,
NULL
,
0
);
if
(
!
rxFrame
.
is
())
throw
css
::
lang
::
IllegalArgumentException
(
"no XFrame given to PagePropertyPanel::Create"
,
NULL
,
1
);
if
(
pBindings
==
NULL
)
throw
css
::
lang
::
IllegalArgumentException
(
"no SfxBindings given to PagePropertyPanel::Create"
,
NULL
,
2
);
return
VclPtr
<
ThemePanel
>::
Create
(
pParent
,
rxFrame
,
pBindings
);
}
ThemePanel
::
ThemePanel
(
vcl
::
Window
*
pParent
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
rxFrame
,
SfxBindings
*
pBindings
)
...
...
sw/source/uibase/sidebar/ThemePanel.hxx
Dosyayı görüntüle @
a7ef614f
...
...
@@ -64,8 +64,6 @@ private:
virtual
void
dispose
()
SAL_OVERRIDE
;
BitmapEx
GenerateColorPreview
(
const
svx
::
ColorSet
&
rColorSet
);
SfxBindings
*
mpBindings
;
VclPtr
<
ListBox
>
mpListBoxFonts
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment