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
76360c8d
Kaydet (Commit)
76360c8d
authored
Haz 08, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
create the stlye preview renderer with style as parameter
Change-Id: Ie191467305279253f165f13980c125f6b7b9fdde
üst
210f42a3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
StyleManager.hxx
include/sfx2/StyleManager.hxx
+4
-0
CommonStyleManager.hxx
include/svx/CommonStyleManager.hxx
+4
-0
CommonStyleManager.cxx
svx/source/styles/CommonStyleManager.cxx
+9
-1
No files found.
include/sfx2/StyleManager.hxx
Dosyayı görüntüle @
76360c8d
...
@@ -38,6 +38,10 @@ public:
...
@@ -38,6 +38,10 @@ public:
virtual
StylePreviewRenderer
*
CreateStylePreviewRenderer
(
virtual
StylePreviewRenderer
*
CreateStylePreviewRenderer
(
OutputDevice
&
rOutputDev
,
OUString
const
&
rName
,
OutputDevice
&
rOutputDev
,
OUString
const
&
rName
,
SfxStyleFamily
eFamily
,
long
nMaxHeight
=
32
)
=
0
;
SfxStyleFamily
eFamily
,
long
nMaxHeight
=
32
)
=
0
;
virtual
StylePreviewRenderer
*
CreateStylePreviewRenderer
(
OutputDevice
&
rOutputDev
,
SfxStyleSheetBase
*
pStyle
,
long
nMaxHeight
=
32
)
=
0
;
};
};
}
// end namespace sfx2
}
// end namespace sfx2
...
...
include/svx/CommonStyleManager.hxx
Dosyayı görüntüle @
76360c8d
...
@@ -32,6 +32,10 @@ public:
...
@@ -32,6 +32,10 @@ public:
virtual
sfx2
::
StylePreviewRenderer
*
CreateStylePreviewRenderer
(
virtual
sfx2
::
StylePreviewRenderer
*
CreateStylePreviewRenderer
(
OutputDevice
&
rOutputDev
,
OUString
const
&
rName
,
OutputDevice
&
rOutputDev
,
OUString
const
&
rName
,
SfxStyleFamily
eFamily
,
long
nMaxHeight
=
32
)
SAL_OVERRIDE
;
SfxStyleFamily
eFamily
,
long
nMaxHeight
=
32
)
SAL_OVERRIDE
;
virtual
sfx2
::
StylePreviewRenderer
*
CreateStylePreviewRenderer
(
OutputDevice
&
rOutputDev
,
SfxStyleSheetBase
*
pStyle
,
long
nMaxHeight
=
32
)
SAL_OVERRIDE
;
};
};
}
// end namespace svx
}
// end namespace svx
...
...
svx/source/styles/CommonStyleManager.cxx
Dosyayı görüntüle @
76360c8d
...
@@ -29,13 +29,21 @@ sfx2::StylePreviewRenderer* CommonStyleManager::CreateStylePreviewRenderer(
...
@@ -29,13 +29,21 @@ sfx2::StylePreviewRenderer* CommonStyleManager::CreateStylePreviewRenderer(
while
(
pStyle
)
while
(
pStyle
)
{
{
if
(
rName
==
pStyle
->
GetName
())
if
(
rName
==
pStyle
->
GetName
())
return
new
CommonStylePreviewRenderer
(
mrShell
,
rOutputDev
,
pStyle
,
nMaxHeight
);
return
CreateStylePreviewRenderer
(
rOutputDev
,
pStyle
,
nMaxHeight
);
pStyle
=
pPool
->
Next
();
pStyle
=
pPool
->
Next
();
}
}
return
nullptr
;
return
nullptr
;
}
}
sfx2
::
StylePreviewRenderer
*
CommonStyleManager
::
CreateStylePreviewRenderer
(
OutputDevice
&
rOutputDev
,
SfxStyleSheetBase
*
pStyle
,
long
nMaxHeight
)
{
return
new
CommonStylePreviewRenderer
(
mrShell
,
rOutputDev
,
pStyle
,
nMaxHeight
);
}
}
// end svx namespace
}
// end svx namespace
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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