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
08299e91
Kaydet (Commit)
08299e91
authored
Nis 25, 2014
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add way for shape dumper to dump single shape
Change-Id: I031921d6869d3bbdef4ed11e4316b6cd977992ca
üst
9f13bb51
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
2 deletions
+25
-2
XShapeDumper.cxx
drawinglayer/source/dumper/XShapeDumper.cxx
+24
-1
XShapeDumper.hxx
include/drawinglayer/XShapeDumper.hxx
+1
-1
No files found.
drawinglayer/source/dumper/XShapeDumper.cxx
Dosyayı görüntüle @
08299e91
...
...
@@ -1938,7 +1938,6 @@ void dumpXShapes( uno::Reference< drawing::XShapes > xShapes, xmlTextWriterPtr x
OUString
XShapeDumper
::
dump
(
uno
::
Reference
<
drawing
::
XShapes
>
xPageShapes
,
bool
bDumpInteropProperties
)
{
OStringBuffer
aString
;
xmlOutputBufferPtr
xmlOutBuffer
=
xmlOutputBufferCreateIO
(
writeCallback
,
closeCallback
,
&
aString
,
NULL
);
xmlTextWriterPtr
xmlWriter
=
xmlNewTextWriter
(
xmlOutBuffer
);
...
...
@@ -1961,4 +1960,28 @@ OUString XShapeDumper::dump(uno::Reference<drawing::XShapes> xPageShapes, bool b
return
OStringToOUString
(
aString
.
makeStringAndClear
(),
RTL_TEXTENCODING_UTF8
);
}
OUString
XShapeDumper
::
dump
(
uno
::
Reference
<
drawing
::
XShape
>
xPageShapes
,
bool
bDumpInteropProperties
)
{
OStringBuffer
aString
;
xmlOutputBufferPtr
xmlOutBuffer
=
xmlOutputBufferCreateIO
(
writeCallback
,
closeCallback
,
&
aString
,
NULL
);
xmlTextWriterPtr
xmlWriter
=
xmlNewTextWriter
(
xmlOutBuffer
);
xmlTextWriterSetIndent
(
xmlWriter
,
1
);
xmlTextWriterStartDocument
(
xmlWriter
,
NULL
,
NULL
,
NULL
);
try
{
dumpXShape
(
xPageShapes
,
xmlWriter
,
bDumpInteropProperties
);
}
catch
(
const
beans
::
UnknownPropertyException
&
e
)
{
std
::
cout
<<
"Exception caught in XShapeDumper: "
<<
e
.
Message
<<
std
::
endl
;
}
xmlTextWriterEndDocument
(
xmlWriter
);
xmlFreeTextWriter
(
xmlWriter
);
return
OStringToOUString
(
aString
.
makeStringAndClear
(),
RTL_TEXTENCODING_UTF8
);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
include/drawinglayer/XShapeDumper.hxx
Dosyayı görüntüle @
08299e91
...
...
@@ -47,7 +47,7 @@ class DRAWINGLAYER_DLLPUBLIC XShapeDumper
public
:
XShapeDumper
();
OUString
dump
(
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
drawing
::
XShapes
>
xPageShapes
,
bool
bDumpInteropProperties
=
false
);
OUString
dump
(
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
drawing
::
XShape
>
xPageShapes
,
bool
bDumpInteropProperties
=
false
);
};
#endif
...
...
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