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
3501827a
Kaydet (Commit)
3501827a
authored
Tem 03, 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 properties Specularity & ProjectionMode
Change-Id: I9e614c571f8d8db1cf00d3251cc4b09ff1dde278
üst
39becd1a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
EnhancedShapeDumper.hxx
drawinglayer/inc/drawinglayer/EnhancedShapeDumper.hxx
+3
-0
EnhancedShapeDumper.cxx
drawinglayer/source/dumper/EnhancedShapeDumper.cxx
+32
-0
No files found.
drawinglayer/inc/drawinglayer/EnhancedShapeDumper.hxx
Dosyayı görüntüle @
3501827a
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
#include <com/sun/star/drawing/EnhancedCustomShapeParameterPair.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeParameterPair.hpp>
#include <com/sun/star/drawing/Direction3D.hpp>
#include <com/sun/star/drawing/Direction3D.hpp>
#include <com/sun/star/drawing/ShadeMode.hpp>
#include <com/sun/star/drawing/ShadeMode.hpp>
#include <com/sun/star/drawing/ProjectionMode.hpp>
#ifndef EnhancedShapeDumper_hxx
#ifndef EnhancedShapeDumper_hxx
#define EnhancedShapeDumper_hxx
#define EnhancedShapeDumper_hxx
...
@@ -70,6 +71,8 @@ public:
...
@@ -70,6 +71,8 @@ public:
void
dumpRotationCenterAsElement
(
com
::
sun
::
star
::
drawing
::
Direction3D
aRotationCenter
);
void
dumpRotationCenterAsElement
(
com
::
sun
::
star
::
drawing
::
Direction3D
aRotationCenter
);
void
dumpShininessAsAttribute
(
double
aShininess
);
void
dumpShininessAsAttribute
(
double
aShininess
);
void
dumpSkewAsElement
(
com
::
sun
::
star
::
drawing
::
EnhancedCustomShapeParameterPair
aSkew
);
void
dumpSkewAsElement
(
com
::
sun
::
star
::
drawing
::
EnhancedCustomShapeParameterPair
aSkew
);
void
dumpSpecularityAsAttribute
(
double
aSpecularity
);
void
dumpProjectionModeAsAttribute
(
com
::
sun
::
star
::
drawing
::
ProjectionMode
eProjectionMode
);
private
:
private
:
xmlTextWriterPtr
xmlWriter
;
xmlTextWriterPtr
xmlWriter
;
...
...
drawinglayer/source/dumper/EnhancedShapeDumper.cxx
Dosyayı görüntüle @
3501827a
...
@@ -146,6 +146,18 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeExtrusionService(uno::Reference
...
@@ -146,6 +146,18 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeExtrusionService(uno::Reference
if
(
anotherAny
>>=
aSkew
)
if
(
anotherAny
>>=
aSkew
)
dumpSkewAsElement
(
aSkew
);
dumpSkewAsElement
(
aSkew
);
}
}
{
uno
::
Any
anotherAny
=
xPropSet
->
getPropertyValue
(
"Specularity"
);
double
aSpecularity
;
if
(
anotherAny
>>=
aSpecularity
)
dumpSpecularityAsAttribute
(
aSpecularity
);
}
{
uno
::
Any
anotherAny
=
xPropSet
->
getPropertyValue
(
"ProjectionMode"
);
drawing
::
ProjectionMode
eProjectionMode
;
if
(
anotherAny
>>=
eProjectionMode
)
dumpProjectionModeAsAttribute
(
eProjectionMode
);
}
}
}
void
EnhancedShapeDumper
::
dumpExtrusionAsAttribute
(
sal_Bool
bExtrusion
)
void
EnhancedShapeDumper
::
dumpExtrusionAsAttribute
(
sal_Bool
bExtrusion
)
{
{
...
@@ -315,4 +327,24 @@ void EnhancedShapeDumper::dumpSkewAsElement(drawing::EnhancedCustomShapeParamete
...
@@ -315,4 +327,24 @@ void EnhancedShapeDumper::dumpSkewAsElement(drawing::EnhancedCustomShapeParamete
xmlTextWriterEndElement
(
xmlWriter
);
xmlTextWriterEndElement
(
xmlWriter
);
}
}
void
EnhancedShapeDumper
::
dumpSpecularityAsAttribute
(
double
aSpecularity
)
{
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"specularity"
),
"%f"
,
aSpecularity
);
}
void
EnhancedShapeDumper
::
dumpProjectionModeAsAttribute
(
drawing
::
ProjectionMode
eProjectionMode
)
{
switch
(
eProjectionMode
)
{
case
drawing
:
:
ProjectionMode_PARALLEL
:
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"projectionMode"
),
"%s"
,
"PARALLEL"
);
break
;
case
drawing
:
:
ProjectionMode_PERSPECTIVE
:
xmlTextWriterWriteFormatAttribute
(
xmlWriter
,
BAD_CAST
(
"projectionMode"
),
"%s"
,
"PERSPECTIVE"
);
break
;
default
:
break
;
}
}
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