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
0c08a494
Kaydet (Commit)
0c08a494
authored
Agu 24, 2001
tarafından
Christian Lippka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#84444# moved implementations to svx
üst
bb48243a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
119 additions
and
23 deletions
+119
-23
UnoGraphicExporter.cxx
svx/source/unodraw/UnoGraphicExporter.cxx
+0
-0
UnoGraphicExporter.hxx
svx/source/unodraw/UnoGraphicExporter.hxx
+76
-0
makefile.mk
svx/source/unodraw/makefile.mk
+4
-2
unoctabl.cxx
svx/source/unodraw/unoctabl.cxx
+39
-21
No files found.
svx/source/unodraw/UnoGraphicExporter.cxx
0 → 100644
Dosyayı görüntüle @
0c08a494
This diff is collapsed.
Click to expand it.
svx/source/unodraw/UnoGraphicExporter.hxx
0 → 100644
Dosyayı görüntüle @
0c08a494
/*************************************************************************
*
* $RCSfile: UnoGraphicExporter.hxx,v $
*
* $Revision: 1.1 $
*
* last change: $Author: cl $ $Date: 2001-08-24 11:57:40 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
*
* - GNU Lesser General Public License Version 2.1
* - Sun Industry Standards Source License Version 1.1
*
* Sun Microsystems Inc., October, 2000
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2000 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
*
* Sun Industry Standards Source License Version 1.1
* =================================================
* The contents of this file are subject to the Sun Industry Standards
* Source License Version 1.1 (the "License"); You may not use this file
* except in compliance with the License. You may obtain a copy of the
* License at http://www.openoffice.org/license.html.
*
* Software provided under this License is provided on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING,
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
* See the License for the specific provisions governing your rights and
* obligations concerning the Software.
*
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
*
* Copyright: 2000 by Sun Microsystems, Inc.
*
* All Rights Reserved.
*
* Contributor(s): _______________________________________
*
*
************************************************************************/
#ifndef _SVX_UNOGRAPHICEXPORTER_HXX_
#define _SVX_UNOGRAPHICEXPORTER_HXX_
#ifndef _COM_SUN_STAR_UNO_XINTERFACE_HPP_
#include <com/sun/star/uno/XInterface.hpp>
#endif
namespace
svx
{
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XInterface
>
SAL_CALL
GraphicExporter_createInstance
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>
&
rSMgr
)
throw
(
::
com
::
sun
::
star
::
uno
::
Exception
);
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
rtl
::
OUString
>
SAL_CALL
GraphicExporter_getSupportedServiceNames
()
throw
();
::
rtl
::
OUString
SAL_CALL
GraphicExporter_getImplementationName
()
throw
();
}
#endif
svx/source/unodraw/makefile.mk
Dosyayı görüntüle @
0c08a494
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
#
#
# $RCSfile: makefile.mk,v $
# $RCSfile: makefile.mk,v $
#
#
# $Revision: 1.
9
$
# $Revision: 1.
10
$
#
#
# last change: $Author: cl $ $Date: 2001-0
4-30 10:06:24
$
# last change: $Author: cl $ $Date: 2001-0
8-24 11:57:40
$
#
#
# The Contents of this file are made available subject to the terms of
# The Contents of this file are made available subject to the terms of
# either of the following licenses
# either of the following licenses
...
@@ -76,6 +76,7 @@ ENABLE_EXCEPTIONS=TRUE
...
@@ -76,6 +76,7 @@ ENABLE_EXCEPTIONS=TRUE
# --- Files --------------------------------------------------------
# --- Files --------------------------------------------------------
CXXFILES
=
\
CXXFILES
=
\
UnoGraphicExporter.cxx
\
unopool.cxx
\
unopool.cxx
\
XPropertyTable.cxx
\
XPropertyTable.cxx
\
UnoNameItemTable.cxx
\
UnoNameItemTable.cxx
\
...
@@ -128,6 +129,7 @@ SVXLIGHTOBJFILES=\
...
@@ -128,6 +129,7 @@ SVXLIGHTOBJFILES=\
$(OBJ)$/
gluepts.obj
$(OBJ)$/
gluepts.obj
SLOFILES
=
\
SLOFILES
=
\
$(SLO)$/
UnoGraphicExporter.obj
\
$(SLO)$/
unopool.obj
\
$(SLO)$/
unopool.obj
\
$(SLO)$/
XPropertyTable.obj
\
$(SLO)$/
XPropertyTable.obj
\
$(SLO)$/
UnoNameItemTable.obj
\
$(SLO)$/
UnoNameItemTable.obj
\
...
...
svx/source/unodraw/unoctabl.cxx
Dosyayı görüntüle @
0c08a494
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: unoctabl.cxx,v $
* $RCSfile: unoctabl.cxx,v $
*
*
* $Revision: 1.
4
$
* $Revision: 1.
5
$
*
*
* last change: $Author:
jl $ $Date: 2001-03-23 16:26:54
$
* last change: $Author:
cl $ $Date: 2001-08-24 11:57:40
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -59,14 +59,6 @@
...
@@ -59,14 +59,6 @@
*
*
************************************************************************/
************************************************************************/
/*
#ifndef _COM_SUN_STAR_LOADER_XIMPLEMENTATIONLOADER_HPP_
#include <com/sun/star/loader/XImplementationLoader.hpp>
#endif
#ifndef _COM_SUN_STAR_LOADER_CANNOTACTIVATEFACTORYEXCEPTION_HPP_
#include <com/sun/star/loader/CannotActivateFactoryException.hpp>
#endif
*/
#ifndef INCLUDED_SVTOOLS_PATHOPTIONS_HXX
#ifndef INCLUDED_SVTOOLS_PATHOPTIONS_HXX
#include <svtools/pathoptions.hxx>
#include <svtools/pathoptions.hxx>
#endif
#endif
...
@@ -273,6 +265,10 @@ uno::Reference< uno::XInterface > SAL_CALL SvxUnoColorTable_createInstance(const
...
@@ -273,6 +265,10 @@ uno::Reference< uno::XInterface > SAL_CALL SvxUnoColorTable_createInstance(const
// export this service
// export this service
//
//
#ifndef SVX_LIGHT
#include "UnoGraphicExporter.hxx"
#endif
#ifndef _COM_SUN_STAR_REGISTRY_XREGISTRYKEY_HPP_
#ifndef _COM_SUN_STAR_REGISTRY_XREGISTRYKEY_HPP_
#include <com/sun/star/registry/XRegistryKey.hpp>
#include <com/sun/star/registry/XRegistryKey.hpp>
#endif
#endif
...
@@ -292,19 +288,28 @@ void SAL_CALL component_getImplementationEnvironment( const sal_Char ** ppEnvTyp
...
@@ -292,19 +288,28 @@ void SAL_CALL component_getImplementationEnvironment( const sal_Char ** ppEnvTyp
*
ppEnvTypeName
=
CPPU_CURRENT_LANGUAGE_BINDING_NAME
;
*
ppEnvTypeName
=
CPPU_CURRENT_LANGUAGE_BINDING_NAME
;
}
}
void
SAL_CALL
writeInfo
(
registry
::
XRegistryKey
*
pRegistryKey
,
const
OUString
&
rImplementationName
,
const
uno
::
Sequence
<
OUString
>&
rServices
)
{
uno
::
Reference
<
registry
::
XRegistryKey
>
xNewKey
(
pRegistryKey
->
createKey
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"/"
)
)
+
rImplementationName
+
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"/UNO/SERVICES"
)
)
)
);
for
(
sal_Int32
i
=
0
;
i
<
rServices
.
getLength
();
i
++
)
xNewKey
->
createKey
(
rServices
.
getConstArray
()[
i
]);
}
sal_Bool
SAL_CALL
component_writeInfo
(
void
*
pServiceManager
,
void
*
pRegistryKey
)
sal_Bool
SAL_CALL
component_writeInfo
(
void
*
pServiceManager
,
void
*
pRegistryKey
)
{
{
if
(
pRegistryKey
)
if
(
pRegistryKey
)
{
{
try
try
{
{
uno
::
Reference
<
registry
::
XRegistryKey
>
xNewKey
(
registry
::
XRegistryKey
*
pKey
=
reinterpret_cast
<
registry
::
XRegistryKey
*
>
(
pRegistryKey
);
reinterpret_cast
<
registry
::
XRegistryKey
*
>
(
pRegistryKey
)
->
createKey
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"/"
)
)
+
SvxUnoColorTable
::
getImplementationName_Static
()
+
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"/UNO/SERVICES"
)
)
)
);
uno
::
Sequence
<
OUString
>
aServices
=
SvxUnoColorTable
::
getSupportedServiceNames_Static
();
writeInfo
(
pKey
,
SvxUnoColorTable
::
getImplementationName_Static
(),
SvxUnoColorTable
::
getSupportedServiceNames_Static
()
);
for
(
INT32
i
=
0
;
i
<
aServices
.
getLength
();
i
++
)
#ifndef SVX_LIGHT
xNewKey
->
createKey
(
aServices
.
getConstArray
()[
i
]);
writeInfo
(
pKey
,
svx
::
GraphicExporter_getImplementationName
(),
svx
::
GraphicExporter_getSupportedServiceNames
()
);
#endif
}
}
catch
(
registry
::
InvalidRegistryException
&
)
catch
(
registry
::
InvalidRegistryException
&
)
{
{
...
@@ -318,13 +323,26 @@ sal_Bool SAL_CALL component_writeInfo( void * pServiceManager, void * pRegistryK
...
@@ -318,13 +323,26 @@ sal_Bool SAL_CALL component_writeInfo( void * pServiceManager, void * pRegistryK
void
*
SAL_CALL
component_getFactory
(
const
sal_Char
*
pImplName
,
void
*
pServiceManager
,
void
*
pRegistryKey
)
void
*
SAL_CALL
component_getFactory
(
const
sal_Char
*
pImplName
,
void
*
pServiceManager
,
void
*
pRegistryKey
)
{
{
void
*
pRet
=
0
;
void
*
pRet
=
0
;
if
(
pServiceManager
&&
rtl_str_compare
(
pImplName
,
"stardiv.one.drawing.SvxUnoColorTable"
)
)
if
(
pServiceManager
)
{
{
uno
::
Reference
<
lang
::
XSingleServiceFactory
>
xFactory
(
createSingleFactory
(
reinterpret_cast
<
lang
::
XMultiServiceFactory
*
>
(
pServiceManager
),
uno
::
Reference
<
lang
::
XSingleServiceFactory
>
xFactory
;
SvxUnoColorTable
::
getImplementationName_Static
(),
SvxUnoColorTable_createInstance
,
SvxUnoColorTable
::
getSupportedServiceNames_Static
()
)
);
if
(
rtl_str_compare
(
pImplName
,
"stardiv.one.drawing.SvxUnoColorTable"
)
)
{
xFactory
=
createSingleFactory
(
reinterpret_cast
<
lang
::
XMultiServiceFactory
*
>
(
pServiceManager
),
SvxUnoColorTable
::
getImplementationName_Static
(),
SvxUnoColorTable_createInstance
,
SvxUnoColorTable
::
getSupportedServiceNames_Static
()
);
}
#ifndef SVX_LIGHT
else
if
(
svx
::
GraphicExporter_getImplementationName
().
equalsAscii
(
pImplName
)
)
{
xFactory
=
::
cppu
::
createSingleFactory
(
reinterpret_cast
<
lang
::
XMultiServiceFactory
*
>
(
pServiceManager
),
svx
::
GraphicExporter_getImplementationName
(),
svx
::
GraphicExporter_createInstance
,
svx
::
GraphicExporter_getSupportedServiceNames
()
);
}
#endif
if
(
xFactory
.
is
())
if
(
xFactory
.
is
())
{
{
xFactory
->
acquire
();
xFactory
->
acquire
();
...
...
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