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
b32272d8
Kaydet (Commit)
b32272d8
authored
Haz 07, 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 [property] FillBitmapLogicalSize
Change-Id: Ie3e225d87afab4e725e16eb28096df54b421cce5
üst
7e2f9315
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
XShapeDumper.hxx
drawinglayer/inc/drawinglayer/XShapeDumper.hxx
+1
-0
XShapeDumper.cxx
drawinglayer/source/dumper/XShapeDumper.cxx
+16
-2
No files found.
drawinglayer/inc/drawinglayer/XShapeDumper.hxx
Dosyayı görüntüle @
b32272d8
...
@@ -66,6 +66,7 @@ private:
...
@@ -66,6 +66,7 @@ private:
void
dumpFillBitmapOffsetXAsAttribute
(
sal_Int32
aBitmapOffsetX
,
xmlTextWriterPtr
xmlWriter
);
void
dumpFillBitmapOffsetXAsAttribute
(
sal_Int32
aBitmapOffsetX
,
xmlTextWriterPtr
xmlWriter
);
void
dumpFillBitmapOffsetYAsAttribute
(
sal_Int32
aBitmapOffsetY
,
xmlTextWriterPtr
xmlWriter
);
void
dumpFillBitmapOffsetYAsAttribute
(
sal_Int32
aBitmapOffsetY
,
xmlTextWriterPtr
xmlWriter
);
void
dumpFillBitmapRectanglePointAsAttribute
(
com
::
sun
::
star
::
drawing
::
RectanglePoint
eBitmapRectanglePoint
,
xmlTextWriterPtr
xmlWriter
);
void
dumpFillBitmapRectanglePointAsAttribute
(
com
::
sun
::
star
::
drawing
::
RectanglePoint
eBitmapRectanglePoint
,
xmlTextWriterPtr
xmlWriter
);
void
dumpFillBitmapLogicalSizeAsAttribute
(
sal_Bool
aBitmapLogicalSize
,
xmlTextWriterPtr
xmlWriter
);
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
);
...
...
drawinglayer/source/dumper/XShapeDumper.cxx
Dosyayı görüntüle @
b32272d8
...
@@ -188,9 +188,9 @@ namespace {
...
@@ -188,9 +188,9 @@ namespace {
xmlTextWriterEndElement
(
xmlWriter
);
xmlTextWriterEndElement
(
xmlWriter
);
}
}
void
XShapeDumper
::
dumpFillBackgroundAsAttribute
(
sal_Bool
a
Background
,
xmlTextWriterPtr
xmlWriter
)
void
XShapeDumper
::
dumpFillBackgroundAsAttribute
(
sal_Bool
b
Background
,
xmlTextWriterPtr
xmlWriter
)
{
{
if
(
a
Background
)
if
(
b
Background
)
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"fillBackground"
),
"%s"
,
"true"
);
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"fillBackground"
),
"%s"
,
"true"
);
else
else
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"fillBackground"
),
"%s"
,
"false"
);
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"fillBackground"
),
"%s"
,
"false"
);
...
@@ -276,6 +276,14 @@ namespace {
...
@@ -276,6 +276,14 @@ namespace {
}
}
}
}
void
XShapeDumper
::
dumpFillBitmapLogicalSizeAsAttribute
(
sal_Bool
bBitmapLogicalSize
,
xmlTextWriterPtr
xmlWriter
)
{
if
(
bBitmapLogicalSize
)
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"fillBitmapLogicalSize"
),
"%s"
,
"true"
);
else
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"fillBitmapLogicalSize"
),
"%s"
,
"false"
);
}
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
);
...
@@ -439,6 +447,12 @@ namespace {
...
@@ -439,6 +447,12 @@ namespace {
if
(
anotherAny
>>=
eBitmapRectanglePoint
)
if
(
anotherAny
>>=
eBitmapRectanglePoint
)
dumpFillBitmapRectanglePointAsAttribute
(
eBitmapRectanglePoint
,
xmlWriter
);
dumpFillBitmapRectanglePointAsAttribute
(
eBitmapRectanglePoint
,
xmlWriter
);
}
}
{
uno
::
Any
anotherAny
=
xPropSet
->
getPropertyValue
(
"FillBitmapLogicalSize"
);
sal_Bool
bBitmapLogicalSize
;
if
(
anotherAny
>>=
bBitmapLogicalSize
)
dumpFillBitmapLogicalSizeAsAttribute
(
bBitmapLogicalSize
,
xmlWriter
);
}
}
}
#if DEBUG_DUMPER
#if DEBUG_DUMPER
...
...
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