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
bd6f8d3f
Kaydet (Commit)
bd6f8d3f
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 Switched & Position properties
Change-Id: Ice30218ba8ec66807089174058951c7607f9b6cb
üst
a7cb63e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
EnhancedShapeDumper.hxx
drawinglayer/inc/drawinglayer/EnhancedShapeDumper.hxx
+2
-0
EnhancedShapeDumper.cxx
drawinglayer/source/dumper/EnhancedShapeDumper.cxx
+29
-0
No files found.
drawinglayer/inc/drawinglayer/EnhancedShapeDumper.hxx
Dosyayı görüntüle @
bd6f8d3f
...
@@ -101,6 +101,8 @@ public:
...
@@ -101,6 +101,8 @@ public:
// EnhancedCustomShapeHandle.idl
// EnhancedCustomShapeHandle.idl
void
dumpEnhancedCustomShapeHandleService
(
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
beans
::
XPropertySet
>
xPropSet
);
void
dumpEnhancedCustomShapeHandleService
(
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
beans
::
XPropertySet
>
xPropSet
);
void
dumpSwitchedAsAttribute
(
sal_Bool
bSwitched
);
void
dumpPositionAsElement
(
com
::
sun
::
star
::
drawing
::
EnhancedCustomShapeParameterPair
aPosition
);
private
:
private
:
xmlTextWriterPtr
xmlWriter
;
xmlTextWriterPtr
xmlWriter
;
...
...
drawinglayer/source/dumper/EnhancedShapeDumper.cxx
Dosyayı görüntüle @
bd6f8d3f
...
@@ -650,4 +650,33 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeHandleService(uno::Reference< b
...
@@ -650,4 +650,33 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeHandleService(uno::Reference< b
if
(
anotherAny
>>=
bMirroredY
)
if
(
anotherAny
>>=
bMirroredY
)
dumpMirroredYAsAttribute
(
bMirroredY
);
dumpMirroredYAsAttribute
(
bMirroredY
);
}
}
{
uno
::
Any
anotherAny
=
xPropSet
->
getPropertyValue
(
"Switched"
);
sal_Bool
bSwitched
;
if
(
anotherAny
>>=
bSwitched
)
dumpSwitchedAsAttribute
(
bSwitched
);
}
{
uno
::
Any
anotherAny
=
xPropSet
->
getPropertyValue
(
"Position"
);
drawing
::
EnhancedCustomShapeParameterPair
aPosition
;
if
(
anotherAny
>>=
aPosition
)
dumpPositionAsElement
(
aPosition
);
}
}
void
EnhancedShapeDumper
::
dumpSwitchedAsAttribute
(
sal_Bool
bSwitched
)
{
if
(
bSwitched
)
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"switched"
),
"%s"
,
"true"
);
else
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"switched"
),
"%s"
,
"false"
);
}
}
void
EnhancedShapeDumper
::
dumpPositionAsElement
(
drawing
::
EnhancedCustomShapeParameterPair
aPosition
)
{
xmlTextWriterStartElement
(
xmlWriter
,
BAD_CAST
(
"Position"
));
dumpEnhancedCustomShapeParameterPair
(
aPosition
);
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