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
5022553e
Kaydet (Commit)
5022553e
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
Added dumping TextAutoGrowHeight & TextAutoGrowWidth properties
Change-Id: I03c8786d1cfce2f05ead5fabd58f5f24cd567aff
üst
cace1220
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
XShapeDumper.hxx
drawinglayer/inc/drawinglayer/XShapeDumper.hxx
+2
-0
XShapeDumper.cxx
drawinglayer/source/dumper/XShapeDumper.cxx
+28
-0
No files found.
drawinglayer/inc/drawinglayer/XShapeDumper.hxx
Dosyayı görüntüle @
5022553e
...
@@ -110,6 +110,8 @@ private:
...
@@ -110,6 +110,8 @@ private:
// TextProperties.idl
// TextProperties.idl
void
dumpIsNumberingAsAttribute
(
sal_Bool
bIsNumbering
,
xmlTextWriterPtr
xmlWriter
);
void
dumpIsNumberingAsAttribute
(
sal_Bool
bIsNumbering
,
xmlTextWriterPtr
xmlWriter
);
void
dumpTextAutoGrowHeightAsAttribute
(
sal_Bool
bTextAutoGrowHeight
,
xmlTextWriterPtr
xmlWriter
);
void
dumpTextAutoGrowWidthAsAttribute
(
sal_Bool
bTextAutoGrowWidth
,
xmlTextWriterPtr
xmlWriter
);
// XShape.idl
// XShape.idl
void
dumpPositionAsAttribute
(
const
com
::
sun
::
star
::
awt
::
Point
&
rPoint
,
xmlTextWriterPtr
xmlWriter
);
void
dumpPositionAsAttribute
(
const
com
::
sun
::
star
::
awt
::
Point
&
rPoint
,
xmlTextWriterPtr
xmlWriter
);
...
...
drawinglayer/source/dumper/XShapeDumper.cxx
Dosyayı görüntüle @
5022553e
...
@@ -606,6 +606,22 @@ namespace {
...
@@ -606,6 +606,22 @@ namespace {
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"isNumbering"
),
"%s"
,
"false"
);
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"isNumbering"
),
"%s"
,
"false"
);
}
}
void
XShapeDumper
::
dumpTextAutoGrowHeightAsAttribute
(
sal_Bool
bTextAutoGrowHeight
,
xmlTextWriterPtr
xmlWriter
)
{
if
(
bTextAutoGrowHeight
)
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"textAutoGrowHeight"
),
"%s"
,
"true"
);
else
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"textAutoGrowHeight"
),
"%s"
,
"false"
);
}
void
XShapeDumper
::
dumpTextAutoGrowWidthAsAttribute
(
sal_Bool
bTextAutoGrowWidth
,
xmlTextWriterPtr
xmlWriter
)
{
if
(
bTextAutoGrowWidth
)
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"textAutoGrowWidth"
),
"%s"
,
"true"
);
else
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"textAutoGrowWidth"
),
"%s"
,
"false"
);
}
// --------------------------------
// --------------------------------
// ---------- XShape.idl ----------
// ---------- XShape.idl ----------
// --------------------------------
// --------------------------------
...
@@ -666,6 +682,18 @@ namespace {
...
@@ -666,6 +682,18 @@ namespace {
if
(
anotherAny
>>=
bIsNumbering
)
if
(
anotherAny
>>=
bIsNumbering
)
dumpIsNumberingAsAttribute
(
bIsNumbering
,
xmlWriter
);
dumpIsNumberingAsAttribute
(
bIsNumbering
,
xmlWriter
);
}
}
{
uno
::
Any
anotherAny
=
xPropSet
->
getPropertyValue
(
"TextAutoGrowHeight"
);
sal_Bool
bTextAutoGrowHeight
;
if
(
anotherAny
>>=
bTextAutoGrowHeight
)
dumpTextAutoGrowHeightAsAttribute
(
bTextAutoGrowHeight
,
xmlWriter
);
}
{
uno
::
Any
anotherAny
=
xPropSet
->
getPropertyValue
(
"TextAutoGrowWidth"
);
sal_Bool
bTextAutoGrowWidth
;
if
(
anotherAny
>>=
bTextAutoGrowWidth
)
dumpTextAutoGrowWidthAsAttribute
(
bTextAutoGrowWidth
,
xmlWriter
);
}
}
}
else
if
(
xServiceInfo
->
supportsService
(
"com.sun.star.drawing.GroupShape"
))
else
if
(
xServiceInfo
->
supportsService
(
"com.sun.star.drawing.GroupShape"
))
{
{
...
...
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