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
27ad84a9
Kaydet (Commit)
27ad84a9
authored
Eyl 17, 2012
tarafından
Cédric Bosdonnat
Kaydeden (comit)
Cédric Bosdonnat
Eyl 20, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
n#779627: support for arcsize value in VML
Change-Id: If03f36d30a7861f5d14ed3142e339d52da0bdce0
üst
7539a695
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
1 deletion
+23
-1
vmlshape.hxx
oox/inc/oox/vml/vmlshape.hxx
+1
-0
properties.txt
oox/source/token/properties.txt
+1
-0
vmlshape.cxx
oox/source/vml/vmlshape.cxx
+18
-1
vmlshapecontext.cxx
oox/source/vml/vmlshapecontext.cxx
+3
-0
No files found.
oox/inc/oox/vml/vmlshape.hxx
Dosyayı görüntüle @
27ad84a9
...
@@ -77,6 +77,7 @@ struct ShapeTypeModel
...
@@ -77,6 +77,7 @@ struct ShapeTypeModel
sal_Bool
mbAutoHeight
;
///< If true, the height value is a minimum value (mostly used for textboxes)
sal_Bool
mbAutoHeight
;
///< If true, the height value is a minimum value (mostly used for textboxes)
sal_Bool
mbVisible
;
///< Visible or Hidden
sal_Bool
mbVisible
;
///< Visible or Hidden
::
rtl
::
OUString
maWrapStyle
;
///< Wrapping mode for text.
::
rtl
::
OUString
maWrapStyle
;
///< Wrapping mode for text.
::
rtl
::
OUString
maArcsize
;
///< round rectangles arc size
StrokeModel
maStrokeModel
;
///< Border line formatting.
StrokeModel
maStrokeModel
;
///< Border line formatting.
FillModel
maFillModel
;
///< Shape fill formatting.
FillModel
maFillModel
;
///< Shape fill formatting.
...
...
oox/source/token/properties.txt
Dosyayı görüntüle @
27ad84a9
...
@@ -101,6 +101,7 @@ CopyBack
...
@@ -101,6 +101,7 @@ CopyBack
CopyFormulas
CopyFormulas
CopyOutputData
CopyOutputData
CopyStyles
CopyStyles
CornerRadius
CrossoverPosition
CrossoverPosition
CrossoverValue
CrossoverValue
CursorPositionX
CursorPositionX
...
...
oox/source/vml/vmlshape.cxx
Dosyayı görüntüle @
27ad84a9
...
@@ -17,6 +17,8 @@
...
@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
*/
#include <algorithm>
#include "oox/vml/vmlshape.hxx"
#include "oox/vml/vmlshape.hxx"
#include <com/sun/star/beans/PropertyValues.hpp>
#include <com/sun/star/beans/PropertyValues.hpp>
...
@@ -502,7 +504,22 @@ Reference<XShape> RectangleShape::implConvertAndInsert(const Reference<XShapes>&
...
@@ -502,7 +504,22 @@ Reference<XShape> RectangleShape::implConvertAndInsert(const Reference<XShapes>&
return
SimpleShape
::
createPictureObject
(
rxShapes
,
rShapeRect
,
aGraphicPath
);
return
SimpleShape
::
createPictureObject
(
rxShapes
,
rShapeRect
,
aGraphicPath
);
// default: try to create a rectangle shape
// default: try to create a rectangle shape
return
SimpleShape
::
implConvertAndInsert
(
rxShapes
,
rShapeRect
);
Reference
<
XShape
>
xShape
=
SimpleShape
::
implConvertAndInsert
(
rxShapes
,
rShapeRect
);
rtl
::
OUString
sArcsize
=
maTypeModel
.
maArcsize
;
if
(
!
sArcsize
.
isEmpty
(
)
)
{
sal_Unicode
cLastChar
=
sArcsize
[
sArcsize
.
getLength
()
-
1
];
sal_Int32
nValue
=
sArcsize
.
copy
(
0
,
sArcsize
.
getLength
()
-
1
).
toInt32
(
);
// Get the smallest half-side
double
size
=
std
::
min
(
rShapeRect
.
Height
,
rShapeRect
.
Width
)
/
2.0
;
sal_Int32
nRadius
=
0
;
if
(
cLastChar
==
'f'
)
nRadius
=
size
*
nValue
/
65536
;
else
if
(
cLastChar
==
'%'
)
nRadius
=
size
*
nValue
/
100
;
PropertySet
(
xShape
).
setAnyProperty
(
PROP_CornerRadius
,
makeAny
(
nRadius
)
);
}
return
xShape
;
}
}
// ============================================================================
// ============================================================================
...
...
oox/source/vml/vmlshapecontext.cxx
Dosyayı görüntüle @
27ad84a9
...
@@ -280,6 +280,9 @@ ShapeTypeContext::ShapeTypeContext( ContextHandler2Helper& rParent, ShapeType& r
...
@@ -280,6 +280,9 @@ ShapeTypeContext::ShapeTypeContext( ContextHandler2Helper& rParent, ShapeType& r
// fill settings (may be overridden by v:fill element later)
// fill settings (may be overridden by v:fill element later)
mrTypeModel
.
maFillModel
.
moFilled
=
lclDecodeBool
(
rAttribs
,
XML_filled
);
mrTypeModel
.
maFillModel
.
moFilled
=
lclDecodeBool
(
rAttribs
,
XML_filled
);
mrTypeModel
.
maFillModel
.
moColor
=
rAttribs
.
getString
(
XML_fillcolor
);
mrTypeModel
.
maFillModel
.
moColor
=
rAttribs
.
getString
(
XML_fillcolor
);
// For roundrect we may have a arcsize attribute to read
mrTypeModel
.
maArcsize
=
rAttribs
.
getString
(
XML_arcsize
,
rtl
::
OUString
(
)
);
}
}
ContextHandlerRef
ShapeTypeContext
::
onCreateContext
(
sal_Int32
nElement
,
const
AttributeList
&
rAttribs
)
ContextHandlerRef
ShapeTypeContext
::
onCreateContext
(
sal_Int32
nElement
,
const
AttributeList
&
rAttribs
)
...
...
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