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
732c0f92
Kaydet (Commit)
732c0f92
authored
Ara 23, 2013
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
svt: Use constructor feature for GraphicProvider.
Change-Id: I0cb66814c3dcbe38a92ada0dfcc0374313784a2b
üst
c04f3c0f
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
23 additions
and
68 deletions
+23
-68
descriptor.hxx
svtools/source/graphic/descriptor.hxx
+0
-4
graphic.cxx
svtools/source/graphic/graphic.cxx
+0
-4
graphic.hxx
svtools/source/graphic/graphic.hxx
+0
-6
provider.cxx
svtools/source/graphic/provider.cxx
+19
-34
provider.hxx
svtools/source/inc/provider.hxx
+1
-8
miscservices.cxx
svtools/source/uno/miscservices.cxx
+1
-11
svt.component
svtools/util/svt.component
+2
-1
No files found.
svtools/source/graphic/descriptor.hxx
Dosyayı görüntüle @
732c0f92
...
@@ -60,10 +60,6 @@ class Graphic;
...
@@ -60,10 +60,6 @@ class Graphic;
namespace
unographic
{
namespace
unographic
{
// -------------------
// - GraphicProvider -
// -------------------
class
GraphicDescriptor
:
public
::
cppu
::
OWeakAggObject
,
class
GraphicDescriptor
:
public
::
cppu
::
OWeakAggObject
,
public
::
com
::
sun
::
star
::
lang
::
XServiceInfo
,
public
::
com
::
sun
::
star
::
lang
::
XServiceInfo
,
public
::
com
::
sun
::
star
::
lang
::
XTypeProvider
,
public
::
com
::
sun
::
star
::
lang
::
XTypeProvider
,
...
...
svtools/source/graphic/graphic.cxx
Dosyayı görüntüle @
732c0f92
...
@@ -31,10 +31,6 @@ using namespace com::sun::star;
...
@@ -31,10 +31,6 @@ using namespace com::sun::star;
namespace
unographic
{
namespace
unographic
{
// -------------------
// - GraphicProvider -
// -------------------
Graphic
::
Graphic
()
:
Graphic
::
Graphic
()
:
mpGraphic
(
NULL
)
mpGraphic
(
NULL
)
{
{
...
...
svtools/source/graphic/graphic.hxx
Dosyayı görüntüle @
732c0f92
...
@@ -28,14 +28,8 @@
...
@@ -28,14 +28,8 @@
#include "descriptor.hxx"
#include "descriptor.hxx"
#include "transformer.hxx"
#include "transformer.hxx"
class
Graphic
;
namespace
unographic
{
namespace
unographic
{
// -------------------
// - GraphicProvider -
// -------------------
class
Graphic
:
public
::
com
::
sun
::
star
::
graphic
::
XGraphic
,
class
Graphic
:
public
::
com
::
sun
::
star
::
graphic
::
XGraphic
,
public
::
com
::
sun
::
star
::
awt
::
XBitmap
,
public
::
com
::
sun
::
star
::
awt
::
XBitmap
,
public
::
com
::
sun
::
star
::
lang
::
XUnoTunnel
,
public
::
com
::
sun
::
star
::
lang
::
XUnoTunnel
,
...
...
svtools/source/graphic/provider.cxx
Dosyayı görüntüle @
732c0f92
...
@@ -43,19 +43,10 @@
...
@@ -43,19 +43,10 @@
using
namespace
com
::
sun
::
star
;
using
namespace
com
::
sun
::
star
;
namespace
unographic
{
namespace
{
#define UNO_NAME_GRAPHOBJ_URLPREFIX "vnd.sun.star.GraphicObject:"
#define UNO_NAME_GRAPHOBJ_URLPREFIX "vnd.sun.star.GraphicObject:"
// -------------------
// - GraphicProvider -
// -------------------
uno
::
Reference
<
uno
::
XInterface
>
SAL_CALL
GraphicProvider_CreateInstance
(
const
uno
::
Reference
<
lang
::
XMultiServiceFactory
>&
)
{
return
(
static_cast
<
::
cppu
::
OWeakObject
*
>
(
new
GraphicProvider
));
}
GraphicProvider
::
GraphicProvider
()
GraphicProvider
::
GraphicProvider
()
{
{
}
}
...
@@ -68,30 +59,10 @@ GraphicProvider::~GraphicProvider()
...
@@ -68,30 +59,10 @@ GraphicProvider::~GraphicProvider()
// ------------------------------------------------------------------------------
// ------------------------------------------------------------------------------
OUString
GraphicProvider
::
getImplementationName_Static
()
throw
()
{
return
OUString
(
"com.sun.star.comp.graphic.GraphicProvider"
);
}
// ------------------------------------------------------------------------------
uno
::
Sequence
<
OUString
>
GraphicProvider
::
getSupportedServiceNames_Static
()
throw
()
{
uno
::
Sequence
<
OUString
>
aSeq
(
1
);
aSeq
.
getArray
()[
0
]
=
"com.sun.star.graphic.GraphicProvider"
;
return
aSeq
;
}
// ------------------------------------------------------------------------------
OUString
SAL_CALL
GraphicProvider
::
getImplementationName
()
OUString
SAL_CALL
GraphicProvider
::
getImplementationName
()
throw
(
uno
::
RuntimeException
)
throw
(
uno
::
RuntimeException
)
{
{
return
getImplementationName_Static
(
);
return
OUString
(
"com.sun.star.comp.graphic.GraphicProvider"
);
}
}
// ------------------------------------------------------------------------------
// ------------------------------------------------------------------------------
...
@@ -114,7 +85,9 @@ sal_Bool SAL_CALL GraphicProvider::supportsService( const OUString& ServiceName
...
@@ -114,7 +85,9 @@ sal_Bool SAL_CALL GraphicProvider::supportsService( const OUString& ServiceName
uno
::
Sequence
<
OUString
>
SAL_CALL
GraphicProvider
::
getSupportedServiceNames
()
uno
::
Sequence
<
OUString
>
SAL_CALL
GraphicProvider
::
getSupportedServiceNames
()
throw
(
uno
::
RuntimeException
)
throw
(
uno
::
RuntimeException
)
{
{
return
getSupportedServiceNames_Static
();
uno
::
Sequence
<
OUString
>
aSeq
(
1
);
aSeq
.
getArray
()[
0
]
=
"com.sun.star.graphic.GraphicProvider"
;
return
aSeq
;
}
}
// ------------------------------------------------------------------------------
// ------------------------------------------------------------------------------
...
@@ -384,7 +357,7 @@ uno::Reference< beans::XPropertySet > SAL_CALL GraphicProvider::queryGraphicDesc
...
@@ -384,7 +357,7 @@ uno::Reference< beans::XPropertySet > SAL_CALL GraphicProvider::queryGraphicDesc
if
(
xIStm
.
is
()
)
if
(
xIStm
.
is
()
)
{
{
GraphicDescriptor
*
pDescriptor
=
new
GraphicDescriptor
;
unographic
::
GraphicDescriptor
*
pDescriptor
=
new
unographic
::
GraphicDescriptor
;
pDescriptor
->
init
(
xIStm
,
aURL
);
pDescriptor
->
init
(
xIStm
,
aURL
);
xRet
=
pDescriptor
;
xRet
=
pDescriptor
;
}
}
...
@@ -408,7 +381,7 @@ uno::Reference< beans::XPropertySet > SAL_CALL GraphicProvider::queryGraphicDesc
...
@@ -408,7 +381,7 @@ uno::Reference< beans::XPropertySet > SAL_CALL GraphicProvider::queryGraphicDesc
}
}
else
else
{
{
GraphicDescriptor
*
pDescriptor
=
new
GraphicDescriptor
;
unographic
::
GraphicDescriptor
*
pDescriptor
=
new
unographic
::
GraphicDescriptor
;
pDescriptor
->
init
(
aURL
);
pDescriptor
->
init
(
aURL
);
xRet
=
pDescriptor
;
xRet
=
pDescriptor
;
}
}
...
@@ -898,4 +871,16 @@ void SAL_CALL GraphicProvider::storeGraphic( const uno::Reference< ::graphic::XG
...
@@ -898,4 +871,16 @@ void SAL_CALL GraphicProvider::storeGraphic( const uno::Reference< ::graphic::XG
}
}
extern
"C"
SAL_DLLPUBLIC_EXPORT
css
::
uno
::
XInterface
*
SAL_CALL
com_sun_star_comp_graphic_GraphicProvider_get_implementation
(
SAL_UNUSED_PARAMETER
css
::
uno
::
XComponentContext
*
,
uno_Sequence
*
arguments
)
{
assert
(
arguments
!=
0
&&
arguments
->
nElements
==
0
);
(
void
)
arguments
;
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>
x
(
static_cast
<
cppu
::
OWeakObject
*>
(
new
GraphicProvider
));
x
->
acquire
();
return
x
.
get
();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
svtools/source/inc/provider.hxx
Dosyayı görüntüle @
732c0f92
...
@@ -25,11 +25,7 @@
...
@@ -25,11 +25,7 @@
#include <com/sun/star/graphic/XGraphicProvider.hpp>
#include <com/sun/star/graphic/XGraphicProvider.hpp>
#include <com/sun/star/awt/XBitmap.hpp>
#include <com/sun/star/awt/XBitmap.hpp>
namespace
unographic
{
namespace
{
// -------------------
// - GraphicProvider -
// -------------------
class
GraphicProvider
:
public
::
cppu
::
WeakImplHelper1
<
::
com
::
sun
::
star
::
graphic
::
XGraphicProvider
>
class
GraphicProvider
:
public
::
cppu
::
WeakImplHelper1
<
::
com
::
sun
::
star
::
graphic
::
XGraphicProvider
>
{
{
...
@@ -38,9 +34,6 @@ public:
...
@@ -38,9 +34,6 @@ public:
GraphicProvider
();
GraphicProvider
();
~
GraphicProvider
();
~
GraphicProvider
();
static
OUString
getImplementationName_Static
()
throw
();
static
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>
getSupportedServiceNames_Static
()
throw
();
protected
:
protected
:
// XServiceInfo
// XServiceInfo
...
...
svtools/source/uno/miscservices.cxx
Dosyayı görüntüle @
732c0f92
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
#include <uno/mapping.hxx>
#include <uno/mapping.hxx>
#include "documentcloser.hxx"
#include "documentcloser.hxx"
#include "hatchwindow.hxx"
#include "hatchwindow.hxx"
#include "provider.hxx"
#include "unowizard.hxx"
#include "unowizard.hxx"
#include "comphelper/servicedecl.hxx"
#include "comphelper/servicedecl.hxx"
...
@@ -39,7 +38,6 @@ using namespace ::com::sun::star;
...
@@ -39,7 +38,6 @@ using namespace ::com::sun::star;
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
::
registry
;
using
namespace
::
com
::
sun
::
star
::
registry
;
using
namespace
::
com
::
sun
::
star
::
lang
;
using
namespace
::
com
::
sun
::
star
::
lang
;
using
namespace
unographic
;
namespace
sdecl
=
comphelper
::
service_decl
;
namespace
sdecl
=
comphelper
::
service_decl
;
...
@@ -74,7 +72,6 @@ namespace
...
@@ -74,7 +72,6 @@ namespace
DECLARE_CREATEINSTANCE_NAMESPACE
(
svt
,
OAddressBookSourceDialogUno
)
DECLARE_CREATEINSTANCE_NAMESPACE
(
svt
,
OAddressBookSourceDialogUno
)
DECLARE_CREATEINSTANCE
(
SvFilterOptionsDialog
)
DECLARE_CREATEINSTANCE
(
SvFilterOptionsDialog
)
DECLARE_CREATEINSTANCE_NAMESPACE
(
unographic
,
GraphicProvider
)
extern
"C"
extern
"C"
{
{
...
@@ -112,13 +109,6 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL svt_component_getFactory (
...
@@ -112,13 +109,6 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL svt_component_getFactory (
SvFilterOptionsDialog_CreateInstance
,
SvFilterOptionsDialog_CreateInstance
,
aServiceNames
);
aServiceNames
);
}
}
else
if
(
GraphicProvider
::
getImplementationName_Static
().
equalsAscii
(
pImplementationName
)
)
{
xFactory
=
::
cppu
::
createOneInstanceFactory
(
xSMgr
,
GraphicProvider
::
getImplementationName_Static
(),
GraphicProvider_CreateInstance
,
GraphicProvider
::
getSupportedServiceNames_Static
()
);
}
else
if
(
rtl_str_compare
(
pImplementationName
,
"com.sun.star.comp.embed.DocumentCloser"
)
==
0
)
else
if
(
rtl_str_compare
(
pImplementationName
,
"com.sun.star.comp.embed.DocumentCloser"
)
==
0
)
{
{
xFactory
=
::
cppu
::
createOneInstanceFactory
(
xSMgr
,
xFactory
=
::
cppu
::
createOneInstanceFactory
(
xSMgr
,
...
@@ -132,7 +122,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL svt_component_getFactory (
...
@@ -132,7 +122,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL svt_component_getFactory (
pImplementationName
,
pImplementationName
,
static_cast
<
css
::
lang
::
XMultiServiceFactory
*>
(
_pServiceManager
),
static_cast
<
css
::
lang
::
XMultiServiceFactory
*>
(
_pServiceManager
),
static_cast
<
css
::
registry
::
XRegistryKey
*>
(
pRegistryKey
),
static_cast
<
css
::
registry
::
XRegistryKey
*>
(
pRegistryKey
),
serviceDecl
);
unographic
::
serviceDecl
);
if
(
!
pResult
)
if
(
!
pResult
)
pResult
=
cppu
::
component_getFactoryHelper
(
pImplementationName
,
pResult
=
cppu
::
component_getFactoryHelper
(
pImplementationName
,
_pServiceManager
,
_pServiceManager
,
...
...
svtools/util/svt.component
Dosyayı görüntüle @
732c0f92
...
@@ -19,7 +19,8 @@
...
@@ -19,7 +19,8 @@
<component
loader=
"com.sun.star.loader.SharedLibrary"
environment=
"@CPPU_ENV@"
<component
loader=
"com.sun.star.loader.SharedLibrary"
environment=
"@CPPU_ENV@"
prefix=
"svt"
xmlns=
"http://openoffice.org/2010/uno-components"
>
prefix=
"svt"
xmlns=
"http://openoffice.org/2010/uno-components"
>
<implementation
name=
"com.sun.star.comp.graphic.GraphicProvider"
>
<implementation
name=
"com.sun.star.comp.graphic.GraphicProvider"
constructor=
"com_sun_star_comp_graphic_GraphicProvider_get_implementation"
>
<service
name=
"com.sun.star.graphic.GraphicProvider"
/>
<service
name=
"com.sun.star.graphic.GraphicProvider"
/>
</implementation>
</implementation>
<implementation
name=
"com.sun.star.comp.graphic.GraphicRendererVCL"
<implementation
name=
"com.sun.star.comp.graphic.GraphicRendererVCL"
...
...
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