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
e5e0aae1
Kaydet (Commit)
e5e0aae1
authored
Ock 24, 2012
tarafından
Thorsten Behrens
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove dead code from svg filter
üst
c4431fda
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
37 deletions
+3
-37
svgexport.cxx
filter/source/svg/svgexport.cxx
+0
-28
svgreader.cxx
filter/source/svg/svgreader.cxx
+3
-3
svgwriter.hxx
filter/source/svg/svgwriter.hxx
+0
-6
No files found.
filter/source/svg/svgexport.cxx
Dosyayı görüntüle @
e5e0aae1
...
...
@@ -38,7 +38,6 @@
#include <com/sun/star/util/MeasureUnit.hpp>
#include <svtools/miscopt.hxx>
#include <svtools/FilterConfigItem.hxx>
#include <svx/unopage.hxx>
#include <svx/unoshape.hxx>
#include <svx/svdpage.hxx>
...
...
@@ -482,18 +481,6 @@ sal_Bool SVGFilter::implExport( const Sequence< PropertyValue >& rDescriptor )
// if no filter data is given use stored/prepared ones
if
(
!
maFilterData
.
getLength
()
)
{
#ifdef _SVG_USE_CONFIG
FilterConfigItem
aCfgItem
(
String
(
RTL_CONSTASCII_USTRINGPARAM
(
SVG_EXPORTFILTER_CONFIGPATH
)
)
);
aCfgItem
.
ReadBool
(
String
(
RTL_CONSTASCII_USTRINGPARAM
(
SVG_PROP_TINYPROFILE
)
),
sal_True
);
aCfgItem
.
ReadBool
(
String
(
RTL_CONSTASCII_USTRINGPARAM
(
SVG_PROP_EMBEDFONTS
)
),
sal_True
);
aCfgItem
.
ReadBool
(
String
(
RTL_CONSTASCII_USTRINGPARAM
(
SVG_PROP_NATIVEDECORATION
)
),
sal_False
);
aCfgItem
.
ReadString
(
String
(
RTL_CONSTASCII_USTRINGPARAM
(
SVG_PROP_NATIVEDECORATION
)
),
B2UCONST
(
"xlist"
)
);
aCfgItem
.
ReadString
(
String
(
RTL_CONSTASCII_USTRINGPARAM
(
SVG_PROP_OPACITY
)
),
sal_True
);
aCfgItem
.
ReadString
(
String
(
RTL_CONSTASCII_USTRINGPARAM
(
SVG_PROP_GRADIENT
)
),
sal_True
);
maFilterData
=
aCfgItem
.
GetFilterData
();
#else
maFilterData
.
realloc
(
6
);
maFilterData
[
0
].
Name
=
B2UCONST
(
SVG_PROP_TINYPROFILE
);
...
...
@@ -526,7 +513,6 @@ sal_Bool SVGFilter::implExport( const Sequence< PropertyValue >& rDescriptor )
// Tiny Gradient
maFilterData
[
5
].
Name
=
B2UCONST
(
SVG_PROP_GRADIENT
);
maFilterData
[
5
].
Value
<<=
(
sal_Bool
)
sal_False
;
#endif
}
if
(
xOStm
.
is
()
&&
xServiceFactory
.
is
()
)
...
...
@@ -713,20 +699,6 @@ sal_Bool SVGFilter::implExportDocument()
if
(
mpSVGExport
->
IsUseTinyProfile
()
)
mpSVGExport
->
AddAttribute
(
XML_NAMESPACE_NONE
,
"baseProfile"
,
B2UCONST
(
"tiny"
)
);
// enabling _SVG_WRITE_EXTENTS means that the slide size is not adapted
// to the size of the browser window, moreover the slide is top left aligned
// instead of centered.
#undef _SVG_WRITE_EXTENTS
#ifdef _SVG_WRITE_EXTENTS
aAttr
=
OUString
::
valueOf
(
nDocWidth
*
0.01
);
aAttr
+=
B2UCONST
(
"mm"
);
mpSVGExport
->
AddAttribute
(
XML_NAMESPACE_NONE
,
"width"
,
aAttr
);
aAttr
=
OUString
::
valueOf
(
nDocHeight
*
0.01
);
aAttr
+=
B2UCONST
(
"mm"
);
mpSVGExport
->
AddAttribute
(
XML_NAMESPACE_NONE
,
"height"
,
aAttr
);
#endif
aAttr
=
B2UCONST
(
"0 0 "
);
aAttr
+=
OUString
::
valueOf
(
nDocWidth
);
aAttr
+=
B2UCONST
(
" "
);
...
...
filter/source/svg/svgreader.cxx
Dosyayı görüntüle @
e5e0aae1
...
...
@@ -1771,7 +1771,7 @@ static void writeShapes( StatePool& rStat
visitElements
(
aVisitor
,
xElem
);
}
#if
def VERBOSE
#if
OSL_DEBUG_LEVEL > 2
struct
DumpingVisitor
{
void
operator
()(
const
uno
::
Reference
<
xml
::
dom
::
XElement
>&
xElem
)
...
...
@@ -1986,7 +1986,7 @@ sal_Bool SVGReader::parseAndConvert()
annotateStyles
(
aStatePool
,
aStateMap
,
aInitialState
,
xDocElem
,
m_xDocumentHandler
);
#if
def VERBOSE
#if
OSL_DEBUG_LEVEL > 2
dumpTree
(
xDocElem
);
#endif
...
...
@@ -2767,7 +2767,7 @@ bool importSvg(SvStream & rStream, Graphic & rGraphic )
uno
::
Reference
<
xml
::
sax
::
XDocumentHandler
>
());
svgi
::
visitElements
(
aVisitor
,
xDocElem
);
#if
def VERBOSE
#if
OSL_DEBUG_LEVEL > 2
dumpTree
(
xDocElem
);
#endif
...
...
filter/source/svg/svgwriter.hxx
Dosyayı görüntüle @
e5e0aae1
...
...
@@ -60,12 +60,6 @@
// -----------------------------------------------------------------------------
#define _SVG_WRITE_EXTENTS 1
#undef _SVG_WRITE_TEXT_DESC
#undef _SVG_USE_CONFIG
// -----------------------------------------------------------------------------
#define NMSP_CPPU cppu
#define NMSP_UNO com::sun::star::uno
#define NMSP_LANG com::sun::star::lang
...
...
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