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
29298475
Kaydet (Commit)
29298475
authored
Ara 30, 2013
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
svx: Use constructor feature for GalleryThemeProvider.
Change-Id: Ifb92256b1516098d292a3ad960cb5982121998da
üst
32b64a0f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
81 deletions
+28
-81
unogalthemeprovider.hxx
svx/source/inc/unogalthemeprovider.hxx
+1
-18
unoctabl.cxx
svx/source/unodraw/unoctabl.cxx
+0
-8
unogalthemeprovider.cxx
svx/source/unogallery/unogalthemeprovider.cxx
+25
-54
svx.component
svx/util/svx.component
+2
-1
No files found.
svx/source/inc/unogalthemeprovider.hxx
Dosyayı görüntüle @
29298475
...
...
@@ -25,23 +25,9 @@
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/gallery/XGalleryThemeProvider.hpp>
#include <svx/svxdllapi.h>
class
Gallery
;
namespace
unogallery
{
// -------------------------
// - some helper functions -
// -------------------------
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XInterface
>
SAL_CALL
GalleryThemeProvider_createInstance
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>
&
rSMgr
)
throw
(
::
com
::
sun
::
star
::
uno
::
Exception
);
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>
SAL_CALL
GalleryThemeProvider_getSupportedServiceNames
()
throw
();
OUString
SAL_CALL
GalleryThemeProvider_getImplementationName
()
throw
();
// -----------------
// - GalleryThemes -
// -----------------
namespace
{
class
GalleryThemeProvider
:
public
::
cppu
::
WeakImplHelper2
<
::
com
::
sun
::
star
::
lang
::
XInitialization
,
::
com
::
sun
::
star
::
gallery
::
XGalleryThemeProvider
>
...
...
@@ -51,9 +37,6 @@ public:
GalleryThemeProvider
();
~
GalleryThemeProvider
();
SVX_DLLPUBLIC
static
OUString
getImplementationName_Static
()
throw
();
SVX_DLLPUBLIC
static
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>
getSupportedServiceNames_Static
()
throw
();
protected
:
// XServiceInfo
...
...
svx/source/unodraw/unoctabl.cxx
Dosyayı görüntüle @
29298475
...
...
@@ -223,7 +223,6 @@ uno::Reference< uno::XInterface > SAL_CALL create_EnhancedCustomShapeEngine( con
//
#include "UnoGraphicExporter.hxx"
#include "unogalthemeprovider.hxx"
#include <com/sun/star/registry/XRegistryKey.hpp>
#include "sal/types.h"
#include "osl/diagnose.h"
...
...
@@ -331,13 +330,6 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL svx_component_getFactory (
svx
::
FindbarDispatcher_createInstance
,
svx
::
FindbarDispatcher
::
getSupportedServiceNames_Static
()
);
}
else
if
(
::
unogallery
::
GalleryThemeProvider_getImplementationName
().
equalsAscii
(
pImplName
)
)
{
xFactory
=
::
cppu
::
createSingleFactory
(
reinterpret_cast
<
lang
::
XMultiServiceFactory
*
>
(
pServiceManager
),
::
unogallery
::
GalleryThemeProvider_getImplementationName
(),
::
unogallery
::
GalleryThemeProvider_createInstance
,
::
unogallery
::
GalleryThemeProvider_getSupportedServiceNames
()
);
}
if
(
xFactory
.
is
())
{
...
...
svx/source/unogallery/unogalthemeprovider.cxx
Dosyayı görüntüle @
29298475
...
...
@@ -30,38 +30,7 @@
using
namespace
::
com
::
sun
::
star
;
namespace
unogallery
{
// --------------------
// - Helper functions -
// --------------------
uno
::
Reference
<
uno
::
XInterface
>
SAL_CALL
GalleryThemeProvider_createInstance
(
const
uno
::
Reference
<
lang
::
XMultiServiceFactory
>
&
)
throw
(
uno
::
Exception
)
{
return
*
(
new
GalleryThemeProvider
()
);
}
// -----------------------------------------------------------------------------
uno
::
Sequence
<
OUString
>
SAL_CALL
GalleryThemeProvider_getSupportedServiceNames
()
throw
()
{
return
GalleryThemeProvider
::
getSupportedServiceNames_Static
();
}
// -----------------------------------------------------------------------------
OUString
SAL_CALL
GalleryThemeProvider_getImplementationName
()
throw
()
{
return
GalleryThemeProvider
::
getImplementationName_Static
();
}
// -----------------
// - GalleryThemeProvider -
// -----------------
namespace
{
GalleryThemeProvider
::
GalleryThemeProvider
()
:
mbHiddenThemes
(
sal_False
)
...
...
@@ -77,30 +46,10 @@ GalleryThemeProvider::~GalleryThemeProvider()
// ------------------------------------------------------------------------------
SVX_DLLPUBLIC
OUString
GalleryThemeProvider
::
getImplementationName_Static
()
throw
()
{
return
OUString
(
"com.sun.star.comp.gallery.GalleryThemeProvider"
);
}
// ------------------------------------------------------------------------------
SVX_DLLPUBLIC
uno
::
Sequence
<
OUString
>
GalleryThemeProvider
::
getSupportedServiceNames_Static
()
throw
()
{
uno
::
Sequence
<
OUString
>
aSeq
(
1
);
aSeq
.
getArray
()[
0
]
=
"com.sun.star.gallery.GalleryThemeProvider"
;
return
aSeq
;
}
// ------------------------------------------------------------------------------
OUString
SAL_CALL
GalleryThemeProvider
::
getImplementationName
()
throw
(
uno
::
RuntimeException
)
{
return
getImplementationName_Static
(
);
return
OUString
(
"com.sun.star.comp.gallery.GalleryThemeProvider"
);
}
// ------------------------------------------------------------------------------
...
...
@@ -123,7 +72,9 @@ sal_Bool SAL_CALL GalleryThemeProvider::supportsService( const OUString& Service
uno
::
Sequence
<
OUString
>
SAL_CALL
GalleryThemeProvider
::
getSupportedServiceNames
()
throw
(
uno
::
RuntimeException
)
{
return
getSupportedServiceNames_Static
();
uno
::
Sequence
<
OUString
>
aSeq
(
1
);
aSeq
.
getArray
()[
0
]
=
"com.sun.star.gallery.GalleryThemeProvider"
;
return
aSeq
;
}
// ------------------------------------------------------------------------------
...
...
@@ -297,4 +248,24 @@ void SAL_CALL GalleryThemeProvider::removeByName( const OUString& rName )
}
extern
"C"
SAL_DLLPUBLIC_EXPORT
css
::
uno
::
XInterface
*
SAL_CALL
com_sun_star_comp_gallery_GalleryThemeProvider_implementation_getFactory
(
SAL_UNUSED_PARAMETER
css
::
uno
::
XComponentContext
*
,
uno_Sequence
*
arguments
)
{
assert
(
arguments
!=
0
);
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>
x
(
static_cast
<
cppu
::
OWeakObject
*>
(
new
GalleryThemeProvider
));
x
->
acquire
();
css
::
uno
::
Reference
<
css
::
lang
::
XInitialization
>
xx
(
x
,
css
::
uno
::
UNO_QUERY
);
if
(
xx
.
is
())
{
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>
aArgs
(
reinterpret_cast
<
css
::
uno
::
Any
*>
(
arguments
->
elements
),
arguments
->
nElements
);
xx
->
initialize
(
aArgs
);
}
return
x
.
get
();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
svx/util/svx.component
Dosyayı görüntüle @
29298475
...
...
@@ -22,7 +22,8 @@
<implementation
name=
"com.sun.star.comp.Draw.GraphicExporter"
>
<service
name=
"com.sun.star.drawing.GraphicExportFilter"
/>
</implementation>
<implementation
name=
"com.sun.star.comp.gallery.GalleryThemeProvider"
>
<implementation
name=
"com.sun.star.comp.gallery.GalleryThemeProvider"
constructor=
"com_sun_star_comp_gallery_GalleryThemeProvider_implementation_getFactory"
>
<service
name=
"com.sun.star.gallery.GalleryThemeProvider"
/>
</implementation>
<implementation
name=
"com.sun.star.comp.svx.Impl.FindbarDispatcher"
>
...
...
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