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
cf7e4d3c
Kaydet (Commit)
cf7e4d3c
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 TextPathAllowed & SubViewSize properties
Change-Id: I4088e15cf010f2c0c4493b9a7781c9720d375480
üst
72fc403a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
EnhancedShapeDumper.hxx
drawinglayer/inc/drawinglayer/EnhancedShapeDumper.hxx
+3
-0
EnhancedShapeDumper.cxx
drawinglayer/source/dumper/EnhancedShapeDumper.cxx
+32
-0
No files found.
drawinglayer/inc/drawinglayer/EnhancedShapeDumper.hxx
Dosyayı görüntüle @
cf7e4d3c
...
@@ -44,6 +44,7 @@
...
@@ -44,6 +44,7 @@
#include <com/sun/star/drawing/EnhancedCustomShapeSegment.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeSegment.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeTextFrame.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeTextFrame.hpp>
#include <com/sun/star/awt/Size.hpp>
#ifndef EnhancedShapeDumper_hxx
#ifndef EnhancedShapeDumper_hxx
#define EnhancedShapeDumper_hxx
#define EnhancedShapeDumper_hxx
...
@@ -132,6 +133,8 @@ public:
...
@@ -132,6 +133,8 @@ public:
void
dumpGluePointTypeAsAttribute
(
sal_Int32
aGluePointType
);
void
dumpGluePointTypeAsAttribute
(
sal_Int32
aGluePointType
);
void
dumpExtrusionAllowedAsAttribute
(
sal_Bool
bExtrusionAllowed
);
void
dumpExtrusionAllowedAsAttribute
(
sal_Bool
bExtrusionAllowed
);
void
dumpConcentricGradientFillAllowedAsAttribute
(
sal_Bool
bConcentricGradientFillAllowed
);
void
dumpConcentricGradientFillAllowedAsAttribute
(
sal_Bool
bConcentricGradientFillAllowed
);
void
dumpTextPathAllowedAsAttribute
(
sal_Bool
bTextPathAllowed
);
void
dumpSubViewSizeAsElement
(
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
awt
::
Size
>
aSubViewSize
);
private
:
private
:
xmlTextWriterPtr
xmlWriter
;
xmlTextWriterPtr
xmlWriter
;
...
...
drawinglayer/source/dumper/EnhancedShapeDumper.cxx
Dosyayı görüntüle @
cf7e4d3c
...
@@ -877,6 +877,18 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapePathService(uno::Reference< bea
...
@@ -877,6 +877,18 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapePathService(uno::Reference< bea
if
(
anotherAny
>>=
bConcentricGradientFillAllowed
)
if
(
anotherAny
>>=
bConcentricGradientFillAllowed
)
dumpConcentricGradientFillAllowedAsAttribute
(
bConcentricGradientFillAllowed
);
dumpConcentricGradientFillAllowedAsAttribute
(
bConcentricGradientFillAllowed
);
}
}
{
uno
::
Any
anotherAny
=
xPropSet
->
getPropertyValue
(
"TextPathAllowed"
);
sal_Bool
bTextPathAllowed
;
if
(
anotherAny
>>=
bTextPathAllowed
)
dumpTextPathAllowedAsAttribute
(
bTextPathAllowed
);
}
{
uno
::
Any
anotherAny
=
xPropSet
->
getPropertyValue
(
"SubViewSize"
);
uno
::
Sequence
<
awt
::
Size
>
aSubViewSize
;
if
(
anotherAny
>>=
aSubViewSize
)
dumpSubViewSizeAsElement
(
aSubViewSize
);
}
}
}
void
EnhancedShapeDumper
::
dumpCoordinatesAsElement
(
uno
::
Sequence
<
drawing
::
EnhancedCustomShapeParameterPair
>
aCoordinates
)
void
EnhancedShapeDumper
::
dumpCoordinatesAsElement
(
uno
::
Sequence
<
drawing
::
EnhancedCustomShapeParameterPair
>
aCoordinates
)
...
@@ -984,4 +996,24 @@ void EnhancedShapeDumper::dumpConcentricGradientFillAllowedAsAttribute(sal_Bool
...
@@ -984,4 +996,24 @@ void EnhancedShapeDumper::dumpConcentricGradientFillAllowedAsAttribute(sal_Bool
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"concentricGradientFillAllowed"
),
"%s"
,
"false"
);
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"concentricGradientFillAllowed"
),
"%s"
,
"false"
);
}
}
void
EnhancedShapeDumper
::
dumpTextPathAllowedAsAttribute
(
sal_Bool
bTextPathAllowed
)
{
if
(
bTextPathAllowed
)
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"textPathAllowed"
),
"%s"
,
"true"
);
else
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"textPathAllowed"
),
"%s"
,
"false"
);
}
void
EnhancedShapeDumper
::
dumpSubViewSizeAsElement
(
uno
::
Sequence
<
awt
::
Size
>
aSubViewSize
)
{
xmlTextWriterStartElement
(
xmlWriter
,
BAD_CAST
(
"SubViewSize"
));
sal_Int32
nLength
=
aSubViewSize
.
getLength
();
for
(
sal_Int32
i
=
0
;
i
<
nLength
;
++
i
)
{
xmlTextWriterStartElement
(
xmlWriter
,
BAD_CAST
(
"Size"
));
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"width"
),
"%"
SAL_PRIdINT32
,
aSubViewSize
[
i
].
Width
);
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"height"
),
"%"
SAL_PRIdINT32
,
aSubViewSize
[
i
].
Height
);
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