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
be7c599a
Kaydet (Commit)
be7c599a
authored
Kas 16, 2013
tarafından
Kurosawa Takeshi
Kaydeden (comit)
Thorsten Behrens
Kas 16, 2013
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#33243 Fix SVG export presentation placeholder texts exported
Change-Id: I3eea9989128635616bc154466f169aed201bb5dc
üst
1e3bc292
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
9 deletions
+23
-9
svgexport.cxx
filter/source/svg/svgexport.cxx
+19
-7
svgfilter.hxx
filter/source/svg/svgfilter.hxx
+4
-2
No files found.
filter/source/svg/svgexport.cxx
Dosyayı görüntüle @
be7c599a
...
...
@@ -1552,12 +1552,12 @@ sal_Bool SVGFilter::implExportPage( const OUString & sPageId,
SvXMLElementExport
aExp2
(
*
mpSVGExport
,
XML_NAMESPACE_NONE
,
"g"
,
sal_True
,
sal_True
);
// append all shapes that make up the Master Slide
bRet
=
implExportShapes
(
xShapes
)
||
bRet
;
bRet
=
implExportShapes
(
xShapes
,
true
)
||
bRet
;
}
// append the </g> closing tag related to the Background Objects
else
{
// append all shapes that make up the Slide
bRet
=
implExportShapes
(
xShapes
)
||
bRet
;
bRet
=
implExportShapes
(
xShapes
,
false
)
||
bRet
;
}
}
// append the </g> closing tag related to the Slide/Master_Slide
...
...
@@ -1567,7 +1567,8 @@ sal_Bool SVGFilter::implExportPage( const OUString & sPageId,
// -----------------------------------------------------------------------------
sal_Bool
SVGFilter
::
implExportShapes
(
const
Reference
<
XShapes
>&
rxShapes
)
sal_Bool
SVGFilter
::
implExportShapes
(
const
Reference
<
XShapes
>&
rxShapes
,
sal_Bool
bMaster
)
{
Reference
<
XShape
>
xShape
;
sal_Bool
bRet
=
sal_False
;
...
...
@@ -1575,7 +1576,7 @@ sal_Bool SVGFilter::implExportShapes( const Reference< XShapes >& rxShapes )
for
(
sal_Int32
i
=
0
,
nCount
=
rxShapes
->
getCount
();
i
<
nCount
;
++
i
)
{
if
(
(
rxShapes
->
getByIndex
(
i
)
>>=
xShape
)
&&
xShape
.
is
()
)
bRet
=
implExportShape
(
xShape
)
||
bRet
;
bRet
=
implExportShape
(
xShape
,
bMaster
)
||
bRet
;
xShape
=
NULL
;
}
...
...
@@ -1585,7 +1586,8 @@ sal_Bool SVGFilter::implExportShapes( const Reference< XShapes >& rxShapes )
// -----------------------------------------------------------------------------
sal_Bool
SVGFilter
::
implExportShape
(
const
Reference
<
XShape
>&
rxShape
)
sal_Bool
SVGFilter
::
implExportShape
(
const
Reference
<
XShape
>&
rxShape
,
sal_Bool
bMaster
)
{
Reference
<
XPropertySet
>
xShapePropSet
(
rxShape
,
UNO_QUERY
);
sal_Bool
bRet
=
sal_False
;
...
...
@@ -1600,6 +1602,13 @@ sal_Bool SVGFilter::implExportShape( const Reference< XShape >& rxShape )
xShapePropSet
->
getPropertyValue
(
"IsEmptyPresentationObject"
)
>>=
bHideObj
;
}
OUString
aShapeClass
=
implGetClassFromShape
(
rxShape
);
if
(
bMaster
)
{
if
(
aShapeClass
==
"TitleText"
||
aShapeClass
==
"Outline"
)
bHideObj
=
true
;
}
if
(
!
bHideObj
)
{
if
(
aShapeType
.
lastIndexOf
(
"drawing.GroupShape"
)
!=
-
1
)
...
...
@@ -1611,7 +1620,7 @@ sal_Bool SVGFilter::implExportShape( const Reference< XShape >& rxShape )
mpSVGExport
->
AddAttribute
(
XML_NAMESPACE_NONE
,
"class"
,
"Group"
);
SvXMLElementExport
aExp
(
*
mpSVGExport
,
XML_NAMESPACE_NONE
,
"g"
,
sal_True
,
sal_True
);
bRet
=
implExportShapes
(
xShapes
);
bRet
=
implExportShapes
(
xShapes
,
bMaster
);
}
}
...
...
@@ -1630,7 +1639,6 @@ sal_Bool SVGFilter::implExportShape( const Reference< XShape >& rxShape )
if
(
rMtf
.
GetActionSize
()
)
{
// for text field shapes we set up text-adjust attributes
// and set visibility to hidden
OUString
aShapeClass
=
implGetClassFromShape
(
rxShape
);
if
(
mbPresentation
)
{
sal_Bool
bIsPageNumber
=
(
aShapeClass
==
"Slide_Number"
);
...
...
@@ -1994,6 +2002,10 @@ OUString SVGFilter::implGetClassFromShape( const Reference< XShape >& rxShape )
aRet
=
"Date/Time"
;
else
if
(
aShapeType
.
lastIndexOf
(
"presentation.SlideNumberShape"
)
!=
-
1
)
aRet
=
"Slide_Number"
;
else
if
(
aShapeType
.
lastIndexOf
(
"presentation.TitleTextShape"
)
!=
-
1
)
aRet
=
"TitleText"
;
else
if
(
aShapeType
.
lastIndexOf
(
"presentation.OutlinerShape"
)
!=
-
1
)
aRet
=
"Outline"
;
else
aRet
=
aShapeType
;
...
...
filter/source/svg/svgfilter.hxx
Dosyayı görüntüle @
be7c599a
...
...
@@ -289,8 +289,10 @@ private:
const
Reference
<
XShapes
>
&
xShapes
,
sal_Bool
bMaster
);
sal_Bool
implExportShapes
(
const
Reference
<
XShapes
>&
rxShapes
);
sal_Bool
implExportShape
(
const
Reference
<
XShape
>&
rxShape
);
sal_Bool
implExportShapes
(
const
Reference
<
XShapes
>&
rxShapes
,
sal_Bool
bMaster
);
sal_Bool
implExportShape
(
const
Reference
<
XShape
>&
rxShape
,
sal_Bool
bMaster
);
sal_Bool
implCreateObjects
();
sal_Bool
implCreateObjectsFromShapes
(
const
Reference
<
XDrawPage
>
&
rxPage
,
const
Reference
<
XShapes
>&
rxShapes
);
...
...
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