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
b07fac2f
Kaydet (Commit)
b07fac2f
authored
Ock 05, 2017
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
oox: rename misleadingly prefixed m_pShapeStyle
Change-Id: I07fdc4fff2dd05b57d1a0635d0bed8d1afd6dc58
üst
cdff2caf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
28 deletions
+28
-28
vmlexport.hxx
include/oox/export/vmlexport.hxx
+1
-1
vmlexport.cxx
oox/source/export/vmlexport.cxx
+27
-27
No files found.
include/oox/export/vmlexport.hxx
Dosyayı görüntüle @
b07fac2f
...
@@ -99,7 +99,7 @@ class OOX_DLLPUBLIC VMLExport : public EscherEx
...
@@ -99,7 +99,7 @@ class OOX_DLLPUBLIC VMLExport : public EscherEx
sal_uInt32
m_nShapeFlags
;
sal_uInt32
m_nShapeFlags
;
/// Remember style, the most important shape attribute ;-)
/// Remember style, the most important shape attribute ;-)
OStringBuffer
m_
p
ShapeStyle
;
OStringBuffer
m_ShapeStyle
;
/// Remember which shape types we had already written.
/// Remember which shape types we had already written.
bool
*
m_pShapeTypeWritten
;
bool
*
m_pShapeTypeWritten
;
...
...
oox/source/export/vmlexport.cxx
Dosyayı görüntüle @
b07fac2f
...
@@ -64,7 +64,7 @@ VMLExport::VMLExport( ::sax_fastparser::FSHelperPtr const & pSerializer, VMLText
...
@@ -64,7 +64,7 @@ VMLExport::VMLExport( ::sax_fastparser::FSHelperPtr const & pSerializer, VMLText
,
m_pShapeAttrList
(
nullptr
)
,
m_pShapeAttrList
(
nullptr
)
,
m_nShapeType
(
ESCHER_ShpInst_Nil
)
,
m_nShapeType
(
ESCHER_ShpInst_Nil
)
,
m_nShapeFlags
(
0
)
,
m_nShapeFlags
(
0
)
,
m_
p
ShapeStyle
(
200
)
,
m_ShapeStyle
(
200
)
,
m_pShapeTypeWritten
(
new
bool
[
ESCHER_ShpInst_COUNT
]
)
,
m_pShapeTypeWritten
(
new
bool
[
ESCHER_ShpInst_COUNT
]
)
{
{
mnGroupLevel
=
1
;
mnGroupLevel
=
1
;
...
@@ -98,10 +98,10 @@ void VMLExport::OpenContainer( sal_uInt16 nEscherContainer, int nRecInstance )
...
@@ -98,10 +98,10 @@ void VMLExport::OpenContainer( sal_uInt16 nEscherContainer, int nRecInstance )
m_nShapeType
=
ESCHER_ShpInst_Nil
;
m_nShapeType
=
ESCHER_ShpInst_Nil
;
m_pShapeAttrList
=
FastSerializerHelper
::
createAttrList
();
m_pShapeAttrList
=
FastSerializerHelper
::
createAttrList
();
if
(
!
m_pShapeStyle
.
isEmpty
()
)
if
(
!
m_ShapeStyle
.
isEmpty
()
)
m_
p
ShapeStyle
.
setLength
(
0
);
m_ShapeStyle
.
setLength
(
0
);
m_
pShapeStyle
.
ensureCapacity
(
200
);
m_
ShapeStyle
.
ensureCapacity
(
200
);
// postpone the output so that we are able to write even the elements
// postpone the output so that we are able to write even the elements
// that we learn inside Commit()
// that we learn inside Commit()
...
@@ -370,7 +370,7 @@ void VMLExport::Commit( EscherPropertyContainer& rProps, const Rectangle& rRect
...
@@ -370,7 +370,7 @@ void VMLExport::Commit( EscherPropertyContainer& rProps, const Rectangle& rRect
if
(
m_nShapeType
==
ESCHER_ShpInst_Line
)
if
(
m_nShapeType
==
ESCHER_ShpInst_Line
)
AddLineDimensions
(
rRect
);
AddLineDimensions
(
rRect
);
else
else
AddRectangleDimensions
(
m_
p
ShapeStyle
,
rRect
);
AddRectangleDimensions
(
m_ShapeStyle
,
rRect
);
// properties
// properties
bool
bAlreadyWritten
[
0xFFF
];
bool
bAlreadyWritten
[
0xFFF
];
...
@@ -761,7 +761,7 @@ void VMLExport::Commit( EscherPropertyContainer& rProps, const Rectangle& rRect
...
@@ -761,7 +761,7 @@ void VMLExport::Commit( EscherPropertyContainer& rProps, const Rectangle& rRect
case
ESCHER_Prop_fHidden
:
case
ESCHER_Prop_fHidden
:
if
(
!
it
->
nPropValue
)
if
(
!
it
->
nPropValue
)
m_
p
ShapeStyle
.
append
(
";visibility:hidden"
);
m_ShapeStyle
.
append
(
";visibility:hidden"
);
break
;
break
;
case
ESCHER_Prop_shadowColor
:
case
ESCHER_Prop_shadowColor
:
case
ESCHER_Prop_fshadowObscured
:
case
ESCHER_Prop_fshadowObscured
:
...
@@ -830,7 +830,7 @@ void VMLExport::Commit( EscherPropertyContainer& rProps, const Rectangle& rRect
...
@@ -830,7 +830,7 @@ void VMLExport::Commit( EscherPropertyContainer& rProps, const Rectangle& rRect
case
ESCHER_Prop_Rotation
:
case
ESCHER_Prop_Rotation
:
{
{
// The higher half of the variable contains the angle.
// The higher half of the variable contains the angle.
m_
p
ShapeStyle
.
append
(
";rotation:"
).
append
(
double
(
it
->
nPropValue
>>
16
));
m_ShapeStyle
.
append
(
";rotation:"
).
append
(
double
(
it
->
nPropValue
>>
16
));
bAlreadyWritten
[
ESCHER_Prop_Rotation
]
=
true
;
bAlreadyWritten
[
ESCHER_Prop_Rotation
]
=
true
;
}
}
break
;
break
;
...
@@ -887,19 +887,19 @@ void VMLExport::AddFlipXY( )
...
@@ -887,19 +887,19 @@ void VMLExport::AddFlipXY( )
const
sal_uInt32
nFlipHandV
=
SHAPEFLAG_FLIPH
+
SHAPEFLAG_FLIPV
;
const
sal_uInt32
nFlipHandV
=
SHAPEFLAG_FLIPH
+
SHAPEFLAG_FLIPV
;
switch
(
m_nShapeFlags
&
nFlipHandV
)
switch
(
m_nShapeFlags
&
nFlipHandV
)
{
{
case
SHAPEFLAG_FLIPH
:
m_
p
ShapeStyle
.
append
(
";flip:x"
);
break
;
case
SHAPEFLAG_FLIPH
:
m_ShapeStyle
.
append
(
";flip:x"
);
break
;
case
SHAPEFLAG_FLIPV
:
m_
p
ShapeStyle
.
append
(
";flip:y"
);
break
;
case
SHAPEFLAG_FLIPV
:
m_ShapeStyle
.
append
(
";flip:y"
);
break
;
case
nFlipHandV
:
m_
p
ShapeStyle
.
append
(
";flip:xy"
);
break
;
case
nFlipHandV
:
m_ShapeStyle
.
append
(
";flip:xy"
);
break
;
}
}
}
}
void
VMLExport
::
AddLineDimensions
(
const
Rectangle
&
rRectangle
)
void
VMLExport
::
AddLineDimensions
(
const
Rectangle
&
rRectangle
)
{
{
// style
// style
if
(
!
m_pShapeStyle
.
isEmpty
()
)
if
(
!
m_ShapeStyle
.
isEmpty
()
)
m_
p
ShapeStyle
.
append
(
";"
);
m_ShapeStyle
.
append
(
";"
);
m_
p
ShapeStyle
.
append
(
"position:absolute"
);
m_ShapeStyle
.
append
(
"position:absolute"
);
AddFlipXY
();
AddFlipXY
();
...
@@ -1060,19 +1060,19 @@ sal_Int32 VMLExport::StartShape()
...
@@ -1060,19 +1060,19 @@ sal_Int32 VMLExport::StartShape()
switch
(
m_eHOri
)
switch
(
m_eHOri
)
{
{
case
text
:
:
HoriOrientation
::
LEFT
:
case
text
:
:
HoriOrientation
::
LEFT
:
m_
p
ShapeStyle
.
append
(
";mso-position-horizontal:left"
);
m_ShapeStyle
.
append
(
";mso-position-horizontal:left"
);
break
;
break
;
case
text
:
:
HoriOrientation
::
CENTER
:
case
text
:
:
HoriOrientation
::
CENTER
:
m_
p
ShapeStyle
.
append
(
";mso-position-horizontal:center"
);
m_ShapeStyle
.
append
(
";mso-position-horizontal:center"
);
break
;
break
;
case
text
:
:
HoriOrientation
::
RIGHT
:
case
text
:
:
HoriOrientation
::
RIGHT
:
m_
p
ShapeStyle
.
append
(
";mso-position-horizontal:right"
);
m_ShapeStyle
.
append
(
";mso-position-horizontal:right"
);
break
;
break
;
case
text
:
:
HoriOrientation
::
INSIDE
:
case
text
:
:
HoriOrientation
::
INSIDE
:
m_
p
ShapeStyle
.
append
(
";mso-position-horizontal:inside"
);
m_ShapeStyle
.
append
(
";mso-position-horizontal:inside"
);
break
;
break
;
case
text
:
:
HoriOrientation
::
OUTSIDE
:
case
text
:
:
HoriOrientation
::
OUTSIDE
:
m_
p
ShapeStyle
.
append
(
";mso-position-horizontal:outside"
);
m_ShapeStyle
.
append
(
";mso-position-horizontal:outside"
);
break
;
break
;
default
:
default
:
case
text
:
:
HoriOrientation
::
NONE
:
case
text
:
:
HoriOrientation
::
NONE
:
...
@@ -1081,15 +1081,15 @@ sal_Int32 VMLExport::StartShape()
...
@@ -1081,15 +1081,15 @@ sal_Int32 VMLExport::StartShape()
switch
(
m_eHRel
)
switch
(
m_eHRel
)
{
{
case
text
:
:
RelOrientation
::
PAGE_PRINT_AREA
:
case
text
:
:
RelOrientation
::
PAGE_PRINT_AREA
:
m_
p
ShapeStyle
.
append
(
";mso-position-horizontal-relative:margin"
);
m_ShapeStyle
.
append
(
";mso-position-horizontal-relative:margin"
);
break
;
break
;
case
text
:
:
RelOrientation
::
PAGE_FRAME
:
case
text
:
:
RelOrientation
::
PAGE_FRAME
:
case
text
:
:
RelOrientation
::
PAGE_LEFT
:
case
text
:
:
RelOrientation
::
PAGE_LEFT
:
case
text
:
:
RelOrientation
::
PAGE_RIGHT
:
case
text
:
:
RelOrientation
::
PAGE_RIGHT
:
m_
p
ShapeStyle
.
append
(
";mso-position-horizontal-relative:page"
);
m_ShapeStyle
.
append
(
";mso-position-horizontal-relative:page"
);
break
;
break
;
case
text
:
:
RelOrientation
::
CHAR
:
case
text
:
:
RelOrientation
::
CHAR
:
m_
p
ShapeStyle
.
append
(
";mso-position-horizontal-relative:char"
);
m_ShapeStyle
.
append
(
";mso-position-horizontal-relative:char"
);
break
;
break
;
default
:
default
:
break
;
break
;
...
@@ -1100,16 +1100,16 @@ sal_Int32 VMLExport::StartShape()
...
@@ -1100,16 +1100,16 @@ sal_Int32 VMLExport::StartShape()
case
text
:
:
VertOrientation
::
TOP
:
case
text
:
:
VertOrientation
::
TOP
:
case
text
:
:
VertOrientation
::
LINE_TOP
:
case
text
:
:
VertOrientation
::
LINE_TOP
:
case
text
:
:
VertOrientation
::
CHAR_TOP
:
case
text
:
:
VertOrientation
::
CHAR_TOP
:
m_
p
ShapeStyle
.
append
(
";mso-position-vertical:top"
);
m_ShapeStyle
.
append
(
";mso-position-vertical:top"
);
break
;
break
;
case
text
:
:
VertOrientation
::
CENTER
:
case
text
:
:
VertOrientation
::
CENTER
:
case
text
:
:
VertOrientation
::
LINE_CENTER
:
case
text
:
:
VertOrientation
::
LINE_CENTER
:
m_
p
ShapeStyle
.
append
(
";mso-position-vertical:center"
);
m_ShapeStyle
.
append
(
";mso-position-vertical:center"
);
break
;
break
;
case
text
:
:
VertOrientation
::
BOTTOM
:
case
text
:
:
VertOrientation
::
BOTTOM
:
case
text
:
:
VertOrientation
::
LINE_BOTTOM
:
case
text
:
:
VertOrientation
::
LINE_BOTTOM
:
case
text
:
:
VertOrientation
::
CHAR_BOTTOM
:
case
text
:
:
VertOrientation
::
CHAR_BOTTOM
:
m_
p
ShapeStyle
.
append
(
";mso-position-vertical:bottom"
);
m_ShapeStyle
.
append
(
";mso-position-vertical:bottom"
);
break
;
break
;
default
:
default
:
case
text
:
:
VertOrientation
::
NONE
:
case
text
:
:
VertOrientation
::
NONE
:
...
@@ -1118,17 +1118,17 @@ sal_Int32 VMLExport::StartShape()
...
@@ -1118,17 +1118,17 @@ sal_Int32 VMLExport::StartShape()
switch
(
m_eVRel
)
switch
(
m_eVRel
)
{
{
case
text
:
:
RelOrientation
::
PAGE_PRINT_AREA
:
case
text
:
:
RelOrientation
::
PAGE_PRINT_AREA
:
m_
p
ShapeStyle
.
append
(
";mso-position-vertical-relative:margin"
);
m_ShapeStyle
.
append
(
";mso-position-vertical-relative:margin"
);
break
;
break
;
case
text
:
:
RelOrientation
::
PAGE_FRAME
:
case
text
:
:
RelOrientation
::
PAGE_FRAME
:
m_
p
ShapeStyle
.
append
(
";mso-position-vertical-relative:page"
);
m_ShapeStyle
.
append
(
";mso-position-vertical-relative:page"
);
break
;
break
;
default
:
default
:
break
;
break
;
}
}
// add style
// add style
m_pShapeAttrList
->
add
(
XML_style
,
m_
p
ShapeStyle
.
makeStringAndClear
()
);
m_pShapeAttrList
->
add
(
XML_style
,
m_ShapeStyle
.
makeStringAndClear
()
);
OUString
sAnchorId
=
lcl_getAnchorIdFromGrabBag
(
m_pSdrObject
);
OUString
sAnchorId
=
lcl_getAnchorIdFromGrabBag
(
m_pSdrObject
);
if
(
!
sAnchorId
.
isEmpty
())
if
(
!
sAnchorId
.
isEmpty
())
...
...
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