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
8b79eeb8
Kaydet (Commit)
8b79eeb8
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 dumping of GluePointLeavingDirections & GluePointType properties
Change-Id: Ie83dfd31196cc9777e4d582f45f27ff74482d2b4
üst
85ff400d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
EnhancedShapeDumper.hxx
drawinglayer/inc/drawinglayer/EnhancedShapeDumper.hxx
+2
-0
EnhancedShapeDumper.cxx
drawinglayer/source/dumper/EnhancedShapeDumper.cxx
+28
-0
No files found.
drawinglayer/inc/drawinglayer/EnhancedShapeDumper.hxx
Dosyayı görüntüle @
8b79eeb8
...
@@ -128,6 +128,8 @@ public:
...
@@ -128,6 +128,8 @@ public:
void
dumpStretchYAsAttribute
(
sal_Int32
aStretchY
);
void
dumpStretchYAsAttribute
(
sal_Int32
aStretchY
);
void
dumpTextFramesAsElement
(
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
drawing
::
EnhancedCustomShapeTextFrame
>
aTextFrames
);
void
dumpTextFramesAsElement
(
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
drawing
::
EnhancedCustomShapeTextFrame
>
aTextFrames
);
void
dumpGluePointsAsElement
(
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
drawing
::
EnhancedCustomShapeParameterPair
>
aGluePoints
);
void
dumpGluePointsAsElement
(
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
drawing
::
EnhancedCustomShapeParameterPair
>
aGluePoints
);
void
dumpGluePointLeavingDirectionsAsElement
(
com
::
sun
::
star
::
uno
::
Sequence
<
double
>
aGluePointLeavingDirections
);
void
dumpGluePointTypeAsAttribute
(
sal_Int32
aGluePointType
);
private
:
private
:
xmlTextWriterPtr
xmlWriter
;
xmlTextWriterPtr
xmlWriter
;
...
...
drawinglayer/source/dumper/EnhancedShapeDumper.cxx
Dosyayı görüntüle @
8b79eeb8
...
@@ -853,6 +853,18 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapePathService(uno::Reference< bea
...
@@ -853,6 +853,18 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapePathService(uno::Reference< bea
if
(
anotherAny
>>=
aGluePoints
)
if
(
anotherAny
>>=
aGluePoints
)
dumpGluePointsAsElement
(
aGluePoints
);
dumpGluePointsAsElement
(
aGluePoints
);
}
}
{
uno
::
Any
anotherAny
=
xPropSet
->
getPropertyValue
(
"GluePointLeavingDirections"
);
uno
::
Sequence
<
double
>
aGluePointLeavingDirections
;
if
(
anotherAny
>>=
aGluePointLeavingDirections
)
dumpGluePointLeavingDirectionsAsElement
(
aGluePointLeavingDirections
);
}
{
uno
::
Any
anotherAny
=
xPropSet
->
getPropertyValue
(
"GluePointType"
);
sal_Int32
aGluePointType
;
if
(
anotherAny
>>=
aGluePointType
)
dumpGluePointTypeAsAttribute
(
aGluePointType
);
}
}
}
void
EnhancedShapeDumper
::
dumpCoordinatesAsElement
(
uno
::
Sequence
<
drawing
::
EnhancedCustomShapeParameterPair
>
aCoordinates
)
void
EnhancedShapeDumper
::
dumpCoordinatesAsElement
(
uno
::
Sequence
<
drawing
::
EnhancedCustomShapeParameterPair
>
aCoordinates
)
...
@@ -928,4 +940,20 @@ void EnhancedShapeDumper::dumpGluePointsAsElement(uno::Sequence< drawing::Enhanc
...
@@ -928,4 +940,20 @@ void EnhancedShapeDumper::dumpGluePointsAsElement(uno::Sequence< drawing::Enhanc
xmlTextWriterEndElement
(
xmlWriter
);
xmlTextWriterEndElement
(
xmlWriter
);
}
}
void
EnhancedShapeDumper
::
dumpGluePointLeavingDirectionsAsElement
(
uno
::
Sequence
<
double
>
aGluePointLeavingDirections
)
{
xmlTextWriterStartElement
(
xmlWriter
,
BAD_CAST
(
"GluePointLeavingDirections"
));
sal_Int32
nLength
=
aGluePointLeavingDirections
.
getLength
();
for
(
sal_Int32
i
=
0
;
i
<
nLength
;
++
i
)
{
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"value"
),
"%f"
,
aGluePointLeavingDirections
[
i
]);
}
xmlTextWriterEndElement
(
xmlWriter
);
}
void
EnhancedShapeDumper
::
dumpGluePointTypeAsAttribute
(
sal_Int32
aGluePointType
)
{
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"gluePointType"
),
"%"
SAL_PRIdINT32
,
aGluePointType
);
}
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