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
f48bd974
Kaydet (Commit)
f48bd974
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 TextPathMode & ScaleX properties
Change-Id: Ib31fc84424d4a57e8f3bcca2054016c5809b6f10
üst
ec5b681b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
EnhancedShapeDumper.hxx
drawinglayer/inc/drawinglayer/EnhancedShapeDumper.hxx
+4
-0
EnhancedShapeDumper.cxx
drawinglayer/source/dumper/EnhancedShapeDumper.cxx
+37
-0
No files found.
drawinglayer/inc/drawinglayer/EnhancedShapeDumper.hxx
Dosyayı görüntüle @
f48bd974
...
...
@@ -46,6 +46,8 @@
#include <com/sun/star/drawing/EnhancedCustomShapeTextFrame.hpp>
#include <com/sun/star/awt/Size.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeTextPathMode.hpp>
#ifndef EnhancedShapeDumper_hxx
#define EnhancedShapeDumper_hxx
...
...
@@ -139,6 +141,8 @@ public:
// EnhancedCustomShapePath.idl
void
dumpEnhancedCustomShapeTextPathService
(
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
beans
::
XPropertySet
>
xPropSet
);
void
dumpTextPathAsAttribute
(
sal_Bool
bTextPath
);
void
dumpTextPathModeAsAttribute
(
com
::
sun
::
star
::
drawing
::
EnhancedCustomShapeTextPathMode
eTextPathMode
);
void
dumpScaleXAsAttribute
(
sal_Bool
bScaleX
);
private
:
xmlTextWriterPtr
xmlWriter
;
...
...
drawinglayer/source/dumper/EnhancedShapeDumper.cxx
Dosyayı görüntüle @
f48bd974
...
...
@@ -1030,6 +1030,18 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeTextPathService(uno::Reference<
if
(
anotherAny
>>=
bTextPath
)
dumpTextPathAsAttribute
(
bTextPath
);
}
{
uno
::
Any
anotherAny
=
xPropSet
->
getPropertyValue
(
"TextPathMode"
);
drawing
::
EnhancedCustomShapeTextPathMode
eTextPathMode
;
if
(
anotherAny
>>=
eTextPathMode
)
dumpTextPathModeAsAttribute
(
eTextPathMode
);
}
{
uno
::
Any
anotherAny
=
xPropSet
->
getPropertyValue
(
"ScaleX"
);
sal_Bool
bScaleX
;
if
(
anotherAny
>>=
bScaleX
)
dumpScaleXAsAttribute
(
bScaleX
);
}
}
void
EnhancedShapeDumper
::
dumpTextPathAsAttribute
(
sal_Bool
bTextPath
)
...
...
@@ -1040,3 +1052,28 @@ void EnhancedShapeDumper::dumpTextPathAsAttribute(sal_Bool bTextPath)
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"textPath"
),
"%s"
,
"false"
);
}
void
EnhancedShapeDumper
::
dumpTextPathModeAsAttribute
(
drawing
::
EnhancedCustomShapeTextPathMode
eTextPathMode
)
{
switch
(
eTextPathMode
)
{
case
drawing
:
:
EnhancedCustomShapeTextPathMode_NORMAL
:
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"textPathMode"
),
"%s"
,
"NORMAL"
);
break
;
case
drawing
:
:
EnhancedCustomShapeTextPathMode_PATH
:
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"textPathMode"
),
"%s"
,
"PATH"
);
break
;
case
drawing
:
:
EnhancedCustomShapeTextPathMode_SHAPE
:
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"textPathMode"
),
"%s"
,
"SHAPE"
);
break
;
default
:
break
;
}
}
void
EnhancedShapeDumper
::
dumpScaleXAsAttribute
(
sal_Bool
bScaleX
)
{
if
(
bScaleX
)
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"scaleX"
),
"%s"
,
"true"
);
else
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"scaleX"
),
"%s"
,
"false"
);
}
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