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
cace1220
Kaydet (Commit)
cace1220
authored
Haz 09, 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
Start of dumping TextProperties service. Added dumping IsNumbering property
Change-Id: I4db7d0df6562b2e0bc01f0626191c5ca3d02eecb
üst
52866279
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
XShapeDumper.hxx
drawinglayer/inc/drawinglayer/XShapeDumper.hxx
+4
-0
XShapeDumper.cxx
drawinglayer/source/dumper/XShapeDumper.cxx
+25
-0
No files found.
drawinglayer/inc/drawinglayer/XShapeDumper.hxx
Dosyayı görüntüle @
cace1220
...
@@ -108,6 +108,10 @@ private:
...
@@ -108,6 +108,10 @@ private:
void
dumpPolyPolygonAsElement
(
com
::
sun
::
star
::
drawing
::
PointSequenceSequence
aPolyPolygon
,
xmlTextWriterPtr
xmlWriter
);
void
dumpPolyPolygonAsElement
(
com
::
sun
::
star
::
drawing
::
PointSequenceSequence
aPolyPolygon
,
xmlTextWriterPtr
xmlWriter
);
void
dumpGeometryAsElement
(
com
::
sun
::
star
::
drawing
::
PointSequenceSequence
aGeometry
,
xmlTextWriterPtr
xmlWriter
);
void
dumpGeometryAsElement
(
com
::
sun
::
star
::
drawing
::
PointSequenceSequence
aGeometry
,
xmlTextWriterPtr
xmlWriter
);
// TextProperties.idl
void
dumpIsNumberingAsAttribute
(
sal_Bool
bIsNumbering
,
xmlTextWriterPtr
xmlWriter
);
// XShape.idl
void
dumpPositionAsAttribute
(
const
com
::
sun
::
star
::
awt
::
Point
&
rPoint
,
xmlTextWriterPtr
xmlWriter
);
void
dumpPositionAsAttribute
(
const
com
::
sun
::
star
::
awt
::
Point
&
rPoint
,
xmlTextWriterPtr
xmlWriter
);
void
dumpSizeAsAttribute
(
const
com
::
sun
::
star
::
awt
::
Size
&
rSize
,
xmlTextWriterPtr
xmlWriter
);
void
dumpSizeAsAttribute
(
const
com
::
sun
::
star
::
awt
::
Size
&
rSize
,
xmlTextWriterPtr
xmlWriter
);
void
dumpShapeDescriptorAsAttribute
(
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
drawing
::
XShapeDescriptor
>
xDescr
,
xmlTextWriterPtr
xmlWriter
);
void
dumpShapeDescriptorAsAttribute
(
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
drawing
::
XShapeDescriptor
>
xDescr
,
xmlTextWriterPtr
xmlWriter
);
...
...
drawinglayer/source/dumper/XShapeDumper.cxx
Dosyayı görüntüle @
cace1220
...
@@ -594,6 +594,22 @@ namespace {
...
@@ -594,6 +594,22 @@ namespace {
xmlTextWriterEndElement
(
xmlWriter
);
xmlTextWriterEndElement
(
xmlWriter
);
}
}
// ----------------------------------------
// ---------- TextProperties.idl ----------
// ----------------------------------------
void
XShapeDumper
::
dumpIsNumberingAsAttribute
(
sal_Bool
bIsNumbering
,
xmlTextWriterPtr
xmlWriter
)
{
if
(
bIsNumbering
)
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"isNumbering"
),
"%s"
,
"true"
);
else
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"isNumbering"
),
"%s"
,
"false"
);
}
// --------------------------------
// ---------- XShape.idl ----------
// --------------------------------
void
XShapeDumper
::
dumpPositionAsAttribute
(
const
awt
::
Point
&
rPoint
,
xmlTextWriterPtr
xmlWriter
)
void
XShapeDumper
::
dumpPositionAsAttribute
(
const
awt
::
Point
&
rPoint
,
xmlTextWriterPtr
xmlWriter
)
{
{
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"positionX"
),
"%"
SAL_PRIdINT32
,
rPoint
.
X
);
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"positionX"
),
"%"
SAL_PRIdINT32
,
rPoint
.
X
);
...
@@ -642,6 +658,15 @@ namespace {
...
@@ -642,6 +658,15 @@ namespace {
if
(
!
aText
.
isEmpty
())
if
(
!
aText
.
isEmpty
())
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"text"
),
"%s"
,
rtl
::
OUStringToOString
(
aText
,
RTL_TEXTENCODING_UTF8
).
getStr
());
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"text"
),
"%s"
,
rtl
::
OUStringToOString
(
aText
,
RTL_TEXTENCODING_UTF8
).
getStr
());
}
}
else
if
(
xServiceInfo
->
supportsService
(
"com.sun.star.drawing.TextProperties"
))
{
{
uno
::
Any
anotherAny
=
xPropSet
->
getPropertyValue
(
"IsNumbering"
);
sal_Bool
bIsNumbering
;
if
(
anotherAny
>>=
bIsNumbering
)
dumpIsNumberingAsAttribute
(
bIsNumbering
,
xmlWriter
);
}
}
else
if
(
xServiceInfo
->
supportsService
(
"com.sun.star.drawing.GroupShape"
))
else
if
(
xServiceInfo
->
supportsService
(
"com.sun.star.drawing.GroupShape"
))
{
{
uno
::
Reference
<
drawing
::
XShapes
>
xShapes
(
xShape
,
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
drawing
::
XShapes
>
xShapes
(
xShape
,
uno
::
UNO_QUERY_THROW
);
...
...
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