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
30b646a4
Kaydet (Commit)
30b646a4
authored
Tem 04, 2012
tarafından
Artur Dorda
Kaydeden (comit)
Markus Mohrhard
Tem 12, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added Equations & Handles properties
Change-Id: I7912399d2864c964483bbbbc0a6afac3bfa64f66
üst
1579148e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
0 deletions
+49
-0
EnhancedShapeDumper.hxx
drawinglayer/inc/drawinglayer/EnhancedShapeDumper.hxx
+4
-0
EnhancedShapeDumper.cxx
drawinglayer/source/dumper/EnhancedShapeDumper.cxx
+45
-0
No files found.
drawinglayer/inc/drawinglayer/EnhancedShapeDumper.hxx
Dosyayı görüntüle @
30b646a4
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
*/
*/
#include <libxml/xmlwriter.h>
#include <libxml/xmlwriter.h>
#include <drawinglayer/drawinglayerdllapi.h>
#include <drawinglayer/drawinglayerdllapi.h>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeParameterPair.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeParameterPair.hpp>
...
@@ -38,6 +39,7 @@
...
@@ -38,6 +39,7 @@
#include <com/sun/star/awt/Rectangle.hpp>
#include <com/sun/star/awt/Rectangle.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeAdjustmentValue.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeAdjustmentValue.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/beans/PropertyValues.hpp>
#ifndef EnhancedShapeDumper_hxx
#ifndef EnhancedShapeDumper_hxx
#define EnhancedShapeDumper_hxx
#define EnhancedShapeDumper_hxx
...
@@ -94,6 +96,8 @@ public:
...
@@ -94,6 +96,8 @@ public:
void
dumpExtrusionAsElement
(
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
beans
::
PropertyValue
>
aExtrusion
);
void
dumpExtrusionAsElement
(
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
beans
::
PropertyValue
>
aExtrusion
);
void
dumpPathAsElement
(
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
beans
::
PropertyValue
>
aPath
);
void
dumpPathAsElement
(
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
beans
::
PropertyValue
>
aPath
);
void
dumpTextPathAsElement
(
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
beans
::
PropertyValue
>
aTextPath
);
void
dumpTextPathAsElement
(
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
beans
::
PropertyValue
>
aTextPath
);
void
dumpEquationsAsElement
(
com
::
sun
::
star
::
uno
::
Sequence
<
rtl
::
OUString
>
aEquations
);
void
dumpHandlesAsElement
(
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
beans
::
PropertyValues
>
aHandles
);
private
:
private
:
xmlTextWriterPtr
xmlWriter
;
xmlTextWriterPtr
xmlWriter
;
...
...
drawinglayer/source/dumper/EnhancedShapeDumper.cxx
Dosyayı görüntüle @
30b646a4
...
@@ -451,6 +451,18 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeGeometryService(uno::Reference<
...
@@ -451,6 +451,18 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeGeometryService(uno::Reference<
if
(
anotherAny
>>=
aTextPath
)
if
(
anotherAny
>>=
aTextPath
)
dumpTextPathAsElement
(
aTextPath
);
dumpTextPathAsElement
(
aTextPath
);
}
}
{
uno
::
Any
anotherAny
=
xPropSet
->
getPropertyValue
(
"Equations"
);
uno
::
Sequence
<
rtl
::
OUString
>
aEquations
;
if
(
anotherAny
>>=
aEquations
)
dumpEquationsAsElement
(
aEquations
);
}
{
uno
::
Any
anotherAny
=
xPropSet
->
getPropertyValue
(
"Handles"
);
uno
::
Sequence
<
beans
::
PropertyValues
>
aHandles
;
if
(
anotherAny
>>=
aHandles
)
dumpHandlesAsElement
(
aHandles
);
}
}
}
void
EnhancedShapeDumper
::
dumpTypeAsAttribute
(
rtl
::
OUString
sType
)
void
EnhancedShapeDumper
::
dumpTypeAsAttribute
(
rtl
::
OUString
sType
)
{
{
...
@@ -587,3 +599,36 @@ void EnhancedShapeDumper::dumpTextPathAsElement(uno::Sequence< beans::PropertyVa
...
@@ -587,3 +599,36 @@ void EnhancedShapeDumper::dumpTextPathAsElement(uno::Sequence< beans::PropertyVa
xmlTextWriterEndElement
(
xmlWriter
);
xmlTextWriterEndElement
(
xmlWriter
);
}
}
void
EnhancedShapeDumper
::
dumpEquationsAsElement
(
uno
::
Sequence
<
rtl
::
OUString
>
aEquations
)
{
xmlTextWriterStartElement
(
xmlWriter
,
BAD_CAST
(
"Equations"
));
sal_Int32
nLength
=
aEquations
.
getLength
();
for
(
sal_Int32
i
=
0
;
i
<
nLength
;
++
i
)
{
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"name"
),
"%s"
,
rtl
::
OUStringToOString
(
aEquations
[
i
],
RTL_TEXTENCODING_UTF8
).
getStr
());
}
xmlTextWriterEndElement
(
xmlWriter
);
}
// PropertyValues specifies a sequence of PropertyValue instances.
// so in this case it's a Sequence of a Sequence of a PropertyValue instances.
// Welcome to Sequenception again.
void
EnhancedShapeDumper
::
dumpHandlesAsElement
(
uno
::
Sequence
<
beans
::
PropertyValues
>
aHandles
)
{
xmlTextWriterStartElement
(
xmlWriter
,
BAD_CAST
(
"Handles"
));
sal_Int32
nSequenceLength
=
aHandles
.
getLength
();
for
(
sal_Int32
i
=
0
;
i
<
nSequenceLength
;
++
i
)
{
xmlTextWriterStartElement
(
xmlWriter
,
BAD_CAST
(
"PropertyValues"
));
uno
::
Sequence
<
beans
::
PropertyValue
>
propertyValueSequence
=
aHandles
[
i
];
sal_Int32
nLength
=
propertyValueSequence
.
getLength
();
for
(
sal_Int32
j
=
0
;
j
<
nLength
;
++
j
)
{
dumpPropertyValueAsElement
(
propertyValueSequence
[
j
]);
}
xmlTextWriterEndElement
(
xmlWriter
);
}
xmlTextWriterEndElement
(
xmlWriter
);
}
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