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
6456f1d8
Kaydet (Commit)
6456f1d8
authored
Şub 04, 2011
tarafından
ka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ka102: added/removed files for SVG import and module cleanup
üst
82fdb102
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
662 additions
and
0 deletions
+662
-0
SVG___Scalable_Vector_Graphics.xcu
...nfig/fragments/filters/SVG___Scalable_Vector_Graphics.xcu
+13
-0
svg_Import.xcu
...ce/config/fragments/internalgraphicfilters/svg_Import.xcu
+10
-0
impsvgdialog.cxx
filter/source/svg/impsvgdialog.cxx
+150
-0
impsvgdialog.hxx
filter/source/svg/impsvgdialog.hxx
+96
-0
svgdialog.cxx
filter/source/svg/svgdialog.cxx
+275
-0
svgdialog.hxx
filter/source/svg/svgdialog.hxx
+118
-0
No files found.
filter/source/config/fragments/filters/SVG___Scalable_Vector_Graphics.xcu
0 → 100644
Dosyayı görüntüle @
6456f1d8
<node oor:name="SVG - Scalable Vector Graphics" oor:op="replace">
<prop oor:name="Flags"><value>IMPORT ALIEN</value></prop>
<prop oor:name="UIComponent"/>
<prop oor:name="FilterService"/>
<prop oor:name="UserData"><value></value></prop>
<prop oor:name="UIName">
<value xml:lang="x-default">SVG - Scalable Vector Graphics</value>
</prop>
<prop oor:name="FileFormatVersion"><value>0</value></prop>
<prop oor:name="Type"><value>svg_Scalable_Vector_Graphics</value></prop>
<prop oor:name="TemplateName"/>
<prop oor:name="DocumentService"><value>com.sun.star.drawing.DrawingDocument</value></prop>
</node>
filter/source/config/fragments/internalgraphicfilters/svg_Import.xcu
0 → 100644
Dosyayı görüntüle @
6456f1d8
<node oor:name="svg_Import" oor:op="replace" >
<prop oor:name="Type"><value>svg_Scalable_Vector_Graphics</value></prop>
<prop oor:name="FormatName"><value>SVISVG</value></prop>
<prop oor:name="RealFilterName"><value>SVG - Scalable Vector Graphics</value></prop>
<prop oor:name="UIComponent"/>
<prop oor:name="UIName">
<value xml:lang="en-US">SVG - Scalable Vector Graphics</value>
</prop>
<prop oor:name="Flags"><value>IMPORT</value></prop>
</node>
filter/source/svg/impsvgdialog.cxx
0 → 100644
Dosyayı görüntüle @
6456f1d8
/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: impsvgdialog.cxx,v $
*
* $Revision: 1.1.2.3 $
*
* last change: $Author: ka $ $Date: 2007/06/15 14:36:19 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
*
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2005 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
*
************************************************************************/
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_filter.hxx"
#include "impsvgdialog.hxx"
#include <cstdio>
using
namespace
rtl
;
using
namespace
com
::
sun
::
star
::
uno
;
using
namespace
com
::
sun
::
star
::
beans
;
inline
sal_Int32
implMap
(
Window
&
/*rWnd*/
,
sal_Int32
nVal
)
{
//return( rWnd.LogicToLogic( Size( nVal, nVal ) ).Height(), MAP_APPFONT, MAP_APPFONT );
return
(
nVal
<<
1
);
}
// ----------------
// - ImpSVGDialog -
// ----------------
ImpSVGDialog
::
ImpSVGDialog
(
Window
*
pParent
/*, ResMgr& rResMgr*/
,
Sequence
<
PropertyValue
>&
rFilterData
)
:
ModalDialog
(
pParent
/*KA, ResId( DLG_OPTIONS, &rResMgr*/
),
maFI
(
this
),
maCBTinyProfile
(
this
),
maCBEmbedFonts
(
this
),
maCBUseNativeDecoration
(
this
),
maBTOK
(
this
,
WB_DEF_OK
),
maBTCancel
(
this
),
maBTHelp
(
this
),
maConfigItem
(
String
(
RTL_CONSTASCII_USTRINGPARAM
(
SVG_EXPORTFILTER_CONFIGPATH
)
),
&
rFilterData
),
mbOldNativeDecoration
(
false
)
{
SetText
(
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"SVG Export Options"
)
)
);
SetOutputSizePixel
(
Size
(
implMap
(
*
this
,
177
),
implMap
(
*
this
,
77
)
)
);
maFI
.
SetText
(
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"Export"
)
)
);
maFI
.
SetPosSizePixel
(
Point
(
implMap
(
*
this
,
6
),
implMap
(
*
this
,
3
)
),
Size
(
implMap
(
*
this
,
165
),
implMap
(
*
this
,
8
)
)
);
maCBTinyProfile
.
SetText
(
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"Use SVG Tiny profile"
)
)
);
maCBTinyProfile
.
SetPosSizePixel
(
Point
(
implMap
(
*
this
,
12
),
implMap
(
*
this
,
14
)
),
Size
(
implMap
(
*
this
,
142
),
implMap
(
*
this
,
10
)
)
);
maCBEmbedFonts
.
SetText
(
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"Embed fonts"
)
)
);
maCBEmbedFonts
.
SetPosSizePixel
(
Point
(
implMap
(
*
this
,
12
),
implMap
(
*
this
,
27
)
),
Size
(
implMap
(
*
this
,
142
),
implMap
(
*
this
,
10
)
)
);
maCBUseNativeDecoration
.
SetText
(
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"Use SVG native text decoration"
)
)
);
maCBUseNativeDecoration
.
SetPosSizePixel
(
Point
(
implMap
(
*
this
,
12
),
implMap
(
*
this
,
41
)
),
Size
(
implMap
(
*
this
,
142
),
implMap
(
*
this
,
10
)
)
);
maCBTinyProfile
.
Check
(
maConfigItem
.
ReadBool
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
SVG_PROP_TINYPROFILE
)
),
false
)
);
maCBEmbedFonts
.
Check
(
maConfigItem
.
ReadBool
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
SVG_PROP_EMBEDFONTS
)
),
true
)
);
maCBUseNativeDecoration
.
Check
(
maConfigItem
.
ReadBool
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
SVG_PROP_NATIVEDECORATION
)
),
true
)
);
maBTOK
.
SetPosSizePixel
(
Point
(
implMap
(
*
this
,
12
),
implMap
(
*
this
,
57
)
),
Size
(
implMap
(
*
this
,
50
),
implMap
(
*
this
,
14
)
)
);
maBTCancel
.
SetPosSizePixel
(
Point
(
implMap
(
*
this
,
65
),
implMap
(
*
this
,
57
)
),
Size
(
implMap
(
*
this
,
50
),
implMap
(
*
this
,
14
)
)
);
maBTHelp
.
SetPosSizePixel
(
Point
(
implMap
(
*
this
,
121
),
implMap
(
*
this
,
57
)
),
Size
(
implMap
(
*
this
,
50
),
implMap
(
*
this
,
14
)
)
);
maCBTinyProfile
.
SetToggleHdl
(
LINK
(
this
,
ImpSVGDialog
,
OnToggleCheckbox
)
);
OnToggleCheckbox
(
&
maCBTinyProfile
);
maFI
.
Show
();
maCBTinyProfile
.
Show
();
maCBEmbedFonts
.
Show
();
maCBUseNativeDecoration
.
Show
();
maBTOK
.
Show
();
maBTCancel
.
Show
();
maBTHelp
.
Show
();
}
// -----------------------------------------------------------------------------
ImpSVGDialog
::~
ImpSVGDialog
()
{
}
// -----------------------------------------------------------------------------
Sequence
<
PropertyValue
>
ImpSVGDialog
::
GetFilterData
()
{
maConfigItem
.
WriteBool
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
SVG_PROP_TINYPROFILE
)
),
maCBTinyProfile
.
IsChecked
()
);
maConfigItem
.
WriteBool
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
SVG_PROP_EMBEDFONTS
)
),
maCBEmbedFonts
.
IsChecked
()
);
maConfigItem
.
WriteBool
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
SVG_PROP_NATIVEDECORATION
)
),
maCBUseNativeDecoration
.
IsChecked
()
);
return
(
maConfigItem
.
GetFilterData
()
);
}
// -----------------------------------------------------------------------------
IMPL_LINK
(
ImpSVGDialog
,
OnToggleCheckbox
,
CheckBox
*
,
pBox
)
{
if
(
pBox
==
&
maCBTinyProfile
)
{
if
(
pBox
->
IsChecked
()
)
{
mbOldNativeDecoration
=
maCBUseNativeDecoration
.
IsChecked
();
maCBUseNativeDecoration
.
Check
(
false
);
maCBUseNativeDecoration
.
Disable
();
}
else
{
maCBUseNativeDecoration
.
Enable
();
maCBUseNativeDecoration
.
Check
(
mbOldNativeDecoration
);
}
}
return
0
;
}
filter/source/svg/impsvgdialog.hxx
0 → 100644
Dosyayı görüntüle @
6456f1d8
/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: impsvgdialog.hxx,v $
*
* $Revision: 1.1.2.5 $
*
* last change: $Author: ka $ $Date: 2006/03/24 10:57:24 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
*
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2005 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
*
************************************************************************/
#ifndef IMPSVGDIALOG_HXX
#define IMPSVGDIALOG_HXX
#ifndef _COM_SUN_STAR_UNO_SEQUENCE_H_
#include <com/sun/star/uno/Sequence.h>
#endif
#ifndef _COM_SUN_STAR_BEANS_PROPERTYVALUE_HPP_
#include <com/sun/star/beans/PropertyValue.hpp>
#endif
#include <vcl/dialog.hxx>
#include <vcl/button.hxx>
#include <vcl/fixed.hxx>
#include <vcl/field.hxx>
#include <svtools/stdctrl.hxx>
#include <svtools/FilterConfigItem.hxx>
#define SVG_EXPORTFILTER_CONFIGPATH "Office.Common/Filter/SVG/Export/"
#define SVG_PROP_TINYPROFILE "TinyMode"
#define SVG_PROP_EMBEDFONTS "EmbedFonts"
#define SVG_PROP_NATIVEDECORATION "UseNativeTextDecoration"
#define SVG_PROP_GLYPHPLACEMENT "GlyphPlacement"
#define SVG_PROP_OPACITY "Opacity"
#define SVG_PROP_GRADIENT "Gradient"
// ----------------
// - ImpSVGDialog -
// ----------------
class
ResMgr
;
class
Window
;
class
ImpSVGDialog
:
public
ModalDialog
{
private
:
FixedLine
maFI
;
CheckBox
maCBTinyProfile
;
CheckBox
maCBEmbedFonts
;
CheckBox
maCBUseNativeDecoration
;
OKButton
maBTOK
;
CancelButton
maBTCancel
;
HelpButton
maBTHelp
;
FilterConfigItem
maConfigItem
;
bool
mbOldNativeDecoration
;
DECL_LINK
(
OnToggleCheckbox
,
CheckBox
*
);
public
:
ImpSVGDialog
(
Window
*
pParent
,
/*ResMgr& rResMgr,*/
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
beans
::
PropertyValue
>&
rFilterData
);
~
ImpSVGDialog
();
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
beans
::
PropertyValue
>
GetFilterData
();
};
#endif // IMPSVGDIALOG_HXX
filter/source/svg/svgdialog.cxx
0 → 100644
Dosyayı görüntüle @
6456f1d8
/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: svgdialog.cxx,v $
*
* $Revision: 1.1.2.3 $
*
* last change: $Author: ka $ $Date: 2008/05/19 10:12:43 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
*
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2005 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
*
************************************************************************/
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_filter.hxx"
#include "svgdialog.hxx"
#include "impsvgdialog.hxx"
#include <vcl/svapp.hxx>
#include <vcl/dialog.hxx>
#ifndef _COM_SUN_STAR_VIEW_XRENDERABLE_HPP_
#include <com/sun/star/view/XRenderable.hpp>
#endif
#ifndef _COM_SUN_STAR_FRAME_XCONTROLLER_HPP_
#include <com/sun/star/frame/XController.hpp>
#endif
#ifndef _COM_SUN_STAR_VIEW_XSELECTIONSUPPLIER_HPP_
#include <com/sun/star/view/XSelectionSupplier.hpp>
#endif
#define SVG_DIALOG_SERVICE_NAME "com.sun.star.comp.Draw.SVGFilterDialog"
#define SVG_DIALOG_IMPLEMENTATION_NAME SVG_DIALOG_SERVICE_NAME
#define SVG_FILTER_DATA_NAME "FilterData"
using
namespace
::
rtl
;
using
namespace
::
vcl
;
using
namespace
::
com
::
sun
::
star
;
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
::
lang
;
using
namespace
::
com
::
sun
::
star
::
beans
;
using
namespace
::
com
::
sun
::
star
::
frame
;
using
namespace
::
com
::
sun
::
star
::
view
;
using
namespace
::
com
::
sun
::
star
::
document
;
// -----------------------
// - SVGDialog functions -
// -----------------------
OUString
SVGDialog_getImplementationName
()
throw
(
RuntimeException
)
{
return
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
SVG_DIALOG_IMPLEMENTATION_NAME
)
);
}
// -----------------------------------------------------------------------------
Sequence
<
sal_Int8
>
SAL_CALL
SVGDialog_getImplementationId
()
throw
(
RuntimeException
)
{
static
const
::
cppu
::
OImplementationId
aId
;
return
(
aId
.
getImplementationId
()
);
}
// -----------------------------------------------------------------------------
Sequence
<
OUString
>
SAL_CALL
SVGDialog_getSupportedServiceNames
()
throw
(
RuntimeException
)
{
Sequence
<
OUString
>
aRet
(
1
);
aRet
.
getArray
()[
0
]
=
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
SVG_DIALOG_SERVICE_NAME
)
);
return
aRet
;
}
// -----------------------------------------------------------------------------
Reference
<
XInterface
>
SAL_CALL
SVGDialog_createInstance
(
const
Reference
<
XMultiServiceFactory
>
&
rSMgr
)
throw
(
Exception
)
{
return
(
static_cast
<
cppu
::
OWeakObject
*
>
(
new
SVGDialog
(
rSMgr
)
)
);
}
// -------------
// - SVGDialog -
// -------------
SVGDialog
::
SVGDialog
(
const
Reference
<
XMultiServiceFactory
>
&
rxMSF
)
:
OGenericUnoDialog
(
rxMSF
)
{
ByteString
aResMgrName
(
"svgfilter"
);
aResMgrName
.
Append
(
ByteString
::
CreateFromInt32
(
0
/*SOLARUPD*/
)
);
// !!! KA: enable ResMgr
// mapResMgr.reset( ResMgr::CreateResMgr( aResMgrName.GetBuffer(), Application::GetSettings().GetUILocale() ) );
}
// -----------------------------------------------------------------------------
SVGDialog
::~
SVGDialog
()
{
}
// -----------------------------------------------------------------------------
Any
SAL_CALL
SVGDialog
::
queryInterface
(
const
Type
&
rType
)
throw
(
RuntimeException
)
{
Any
aReturn
(
OGenericUnoDialog
::
queryInterface
(
rType
)
);
if
(
!
aReturn
.
hasValue
()
)
{
aReturn
=
::
cppu
::
queryInterface
(
rType
,
static_cast
<
XPropertyAccess
*
>
(
this
),
static_cast
<
XExporter
*
>
(
this
)
);
}
return
(
aReturn
);
}
// -----------------------------------------------------------------------------
void
SAL_CALL
SVGDialog
::
acquire
()
throw
()
{
OWeakObject
::
acquire
();
}
// -----------------------------------------------------------------------------
void
SAL_CALL
SVGDialog
::
release
()
throw
()
{
OWeakObject
::
release
();
}
// -----------------------------------------------------------------------------
Sequence
<
sal_Int8
>
SAL_CALL
SVGDialog
::
getImplementationId
()
throw
(
RuntimeException
)
{
return
SVGDialog_getImplementationId
();
}
// -----------------------------------------------------------------------------
OUString
SAL_CALL
SVGDialog
::
getImplementationName
()
throw
(
RuntimeException
)
{
return
SVGDialog_getImplementationName
();
}
// -----------------------------------------------------------------------------
Sequence
<
OUString
>
SAL_CALL
SVGDialog
::
getSupportedServiceNames
()
throw
(
RuntimeException
)
{
return
SVGDialog_getSupportedServiceNames
();
}
// -----------------------------------------------------------------------------
Dialog
*
SVGDialog
::
createDialog
(
Window
*
pParent
)
{
return
(
(
/*KA: *mapResMgr.get() &&*/
mxSrcDoc
.
is
()
)
?
new
ImpSVGDialog
(
pParent
/*KA: , *mapResMgr*/
,
maFilterData
)
:
NULL
);
}
// -----------------------------------------------------------------------------
void
SVGDialog
::
executedDialog
(
sal_Int16
nExecutionResult
)
{
if
(
nExecutionResult
&&
m_pDialog
)
maFilterData
=
static_cast
<
ImpSVGDialog
*
>
(
m_pDialog
)
->
GetFilterData
();
destroyDialog
();
}
// -----------------------------------------------------------------------------
Reference
<
XPropertySetInfo
>
SAL_CALL
SVGDialog
::
getPropertySetInfo
()
throw
(
RuntimeException
)
{
return
(
Reference
<
XPropertySetInfo
>
(
createPropertySetInfo
(
getInfoHelper
()
)
)
);
}
//-------------------------------------------------------------------------
::
cppu
::
IPropertyArrayHelper
&
SVGDialog
::
getInfoHelper
()
{
return
(
*
const_cast
<
SVGDialog
*>
(
this
)
->
getArrayHelper
()
);
}
//------------------------------------------------------------------------------
::
cppu
::
IPropertyArrayHelper
*
SVGDialog
::
createArrayHelper
()
const
{
Sequence
<
Property
>
aProps
;
describeProperties
(
aProps
);
return
new
::
cppu
::
OPropertyArrayHelper
(
aProps
);
}
// -----------------------------------------------------------------------------
Sequence
<
PropertyValue
>
SAL_CALL
SVGDialog
::
getPropertyValues
()
throw
(
RuntimeException
)
{
sal_Int32
i
,
nCount
;
for
(
i
=
0
,
nCount
=
maMediaDescriptor
.
getLength
();
i
<
nCount
;
++
i
)
{
if
(
maMediaDescriptor
[
i
].
Name
.
equalsAscii
(
SVG_FILTER_DATA_NAME
)
)
break
;
}
if
(
i
==
nCount
)
{
maMediaDescriptor
.
realloc
(
++
nCount
);
maMediaDescriptor
[
i
].
Name
=
String
(
RTL_CONSTASCII_USTRINGPARAM
(
SVG_FILTER_DATA_NAME
)
);
}
maMediaDescriptor
[
i
].
Value
<<=
maFilterData
;
return
(
maMediaDescriptor
);
}
// -----------------------------------------------------------------------------
void
SAL_CALL
SVGDialog
::
setPropertyValues
(
const
Sequence
<
PropertyValue
>&
rProps
)
throw
(
UnknownPropertyException
,
PropertyVetoException
,
IllegalArgumentException
,
WrappedTargetException
,
RuntimeException
)
{
maMediaDescriptor
=
rProps
;
for
(
sal_Int32
i
=
0
,
nCount
=
maMediaDescriptor
.
getLength
();
i
<
nCount
;
i
++
)
{
if
(
maMediaDescriptor
[
i
].
Name
.
equalsAscii
(
SVG_FILTER_DATA_NAME
)
)
{
maMediaDescriptor
[
i
].
Value
>>=
maFilterData
;
break
;
}
}
}
// -----------------------------------------------------------------------------
void
SAL_CALL
SVGDialog
::
setSourceDocument
(
const
Reference
<
XComponent
>&
xDoc
)
throw
(
IllegalArgumentException
,
RuntimeException
)
{
mxSrcDoc
=
xDoc
;
}
filter/source/svg/svgdialog.hxx
0 → 100644
Dosyayı görüntüle @
6456f1d8
/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: svgdialog.hxx,v $
*
* $Revision: 1.1.2.1 $
*
* last change: $Author: ka $ $Date: 2006/03/08 08:18:10 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
*
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2005 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
*
************************************************************************/
#ifndef SVGDIALOG_HXX
#define SVGDIALOG_HXX
#ifndef _COM_SUN_STAR_BEANS_XPROPERTYACCESS_HPP_
#include <com/sun/star/beans/XPropertyAccess.hpp>
#endif
#ifndef _COM_SUN_STAR_DOCUMENT_XEXPORTER_HPP_
#include <com/sun/star/document/XExporter.hpp>
#endif
#include <svtools/genericunodialog.hxx>
#include <memory>
// -------------
// - SVGDialog -
// -------------
class
ResMgr
;
class
SVGDialog
:
public
::
svt
::
OGenericUnoDialog
,
public
::
comphelper
::
OPropertyArrayUsageHelper
<
SVGDialog
>
,
public
::
com
::
sun
::
star
::
beans
::
XPropertyAccess
,
public
::
com
::
sun
::
star
::
document
::
XExporter
{
private
:
::
std
::
auto_ptr
<
ResMgr
>
mapResMgr
;
com
::
sun
::
star
::
uno
::
Sequence
<
::
com
::
sun
::
star
::
beans
::
PropertyValue
>
maMediaDescriptor
;
com
::
sun
::
star
::
uno
::
Sequence
<
::
com
::
sun
::
star
::
beans
::
PropertyValue
>
maFilterData
;
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XComponent
>
mxSrcDoc
;
protected
:
// XInterface
virtual
com
::
sun
::
star
::
uno
::
Any
SAL_CALL
queryInterface
(
const
com
::
sun
::
star
::
uno
::
Type
&
aType
)
throw
(
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
acquire
()
throw
();
virtual
void
SAL_CALL
release
()
throw
();
// OGenericUnoDialog
virtual
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>
SAL_CALL
getImplementationId
()
throw
(
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
rtl
::
OUString
SAL_CALL
getImplementationName
()
throw
(
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
com
::
sun
::
star
::
uno
::
Sequence
<
rtl
::
OUString
>
SAL_CALL
getSupportedServiceNames
()
throw
(
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
Dialog
*
createDialog
(
Window
*
pParent
);
virtual
void
executedDialog
(
sal_Int16
nExecutionResult
);
virtual
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
beans
::
XPropertySetInfo
>
SAL_CALL
getPropertySetInfo
()
throw
(
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
::
cppu
::
IPropertyArrayHelper
&
SAL_CALL
getInfoHelper
();
virtual
::
cppu
::
IPropertyArrayHelper
*
createArrayHelper
(
)
const
;
// XPropertyAccess
virtual
com
::
sun
::
star
::
uno
::
Sequence
<
::
com
::
sun
::
star
::
beans
::
PropertyValue
>
SAL_CALL
getPropertyValues
(
)
throw
(
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
setPropertyValues
(
const
com
::
sun
::
star
::
uno
::
Sequence
<
::
com
::
sun
::
star
::
beans
::
PropertyValue
>&
aProps
)
throw
(
com
::
sun
::
star
::
beans
::
UnknownPropertyException
,
com
::
sun
::
star
::
beans
::
PropertyVetoException
,
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
com
::
sun
::
star
::
lang
::
WrappedTargetException
,
com
::
sun
::
star
::
uno
::
RuntimeException
);
// XExporter
virtual
void
SAL_CALL
setSourceDocument
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XComponent
>&
xDoc
)
throw
(
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
com
::
sun
::
star
::
uno
::
RuntimeException
);
public
:
SVGDialog
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>&
rxMSF
);
virtual
~
SVGDialog
();
};
// -----------------------------------------------------------------------------
::
rtl
::
OUString
SVGDialog_getImplementationName
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
// -----------------------------------------------------------------------------
sal_Bool
SAL_CALL
SVGDialog_supportsService
(
const
::
rtl
::
OUString
&
ServiceName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
// -----------------------------------------------------------------------------
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
rtl
::
OUString
>
SAL_CALL
SVGDialog_getSupportedServiceNames
(
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
// -----------------------------------------------------------------------------
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XInterface
>
SAL_CALL
SVGDialog_createInstance
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>
&
rSMgr
)
throw
(
::
com
::
sun
::
star
::
uno
::
Exception
);
#endif // SVGDialog_HXX
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