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
7c5d35a6
Kaydet (Commit)
7c5d35a6
authored
Ock 31, 2013
tarafından
Radek Doulik
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
export subpath sizes (these are for example in pptx custom shape presets)
Change-Id: Iab21d0845d0cb6e4dadeffb5f7b9ebab1e4b955a
üst
ec1c30d3
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
64 additions
and
0 deletions
+64
-0
EnhancedCustomShapeToken.hxx
xmloff/inc/EnhancedCustomShapeToken.hxx
+2
-0
xmltoken.hxx
xmloff/inc/xmloff/xmltoken.hxx
+1
-0
xmltoken.cxx
xmloff/source/core/xmltoken.cxx
+1
-0
EnhancedCustomShapeToken.cxx
xmloff/source/draw/EnhancedCustomShapeToken.cxx
+2
-0
shapeexport4.cxx
xmloff/source/draw/shapeexport4.cxx
+18
-0
ximpcustomshape.cxx
xmloff/source/draw/ximpcustomshape.cxx
+40
-0
No files found.
xmloff/inc/EnhancedCustomShapeToken.hxx
Dosyayı görüntüle @
7c5d35a6
...
@@ -84,6 +84,7 @@ namespace xmloff { namespace EnhancedCustomShapeToken {
...
@@ -84,6 +84,7 @@ namespace xmloff { namespace EnhancedCustomShapeToken {
EAS_handle_polar
,
EAS_handle_polar
,
EAS_handle_radius_range_minimum
,
EAS_handle_radius_range_minimum
,
EAS_handle_radius_range_maximum
,
EAS_handle_radius_range_maximum
,
EAS_sub_view_size
,
EAS_CustomShapeEngine
,
EAS_CustomShapeEngine
,
EAS_CustomShapeData
,
EAS_CustomShapeData
,
...
@@ -145,6 +146,7 @@ namespace xmloff { namespace EnhancedCustomShapeToken {
...
@@ -145,6 +146,7 @@ namespace xmloff { namespace EnhancedCustomShapeToken {
EAS_SameLetterHeights
,
EAS_SameLetterHeights
,
EAS_Position
,
EAS_Position
,
EAS_AdjustmentValues
,
EAS_AdjustmentValues
,
EAS_SubViewSize
,
EAS_Last
,
EAS_Last
,
EAS_NotFound
EAS_NotFound
...
...
xmloff/inc/xmloff/xmltoken.hxx
Dosyayı görüntüle @
7c5d35a6
...
@@ -1732,6 +1732,7 @@ namespace xmloff { namespace token {
...
@@ -1732,6 +1732,7 @@ namespace xmloff { namespace token {
XML_SUBTOTAL_FIELD
,
XML_SUBTOTAL_FIELD
,
XML_SUBTOTAL_RULE
,
XML_SUBTOTAL_RULE
,
XML_SUBTOTAL_RULES
,
XML_SUBTOTAL_RULES
,
XML_SUB_VIEW_SIZE
,
XML_SUFFIX
,
XML_SUFFIX
,
XML_SUM
,
XML_SUM
,
XML_SWISS
,
XML_SWISS
,
...
...
xmloff/source/core/xmltoken.cxx
Dosyayı görüntüle @
7c5d35a6
...
@@ -1737,6 +1737,7 @@ namespace xmloff { namespace token {
...
@@ -1737,6 +1737,7 @@ namespace xmloff { namespace token {
TOKEN
(
"subtotal-field"
,
XML_SUBTOTAL_FIELD
),
TOKEN
(
"subtotal-field"
,
XML_SUBTOTAL_FIELD
),
TOKEN
(
"subtotal-rule"
,
XML_SUBTOTAL_RULE
),
TOKEN
(
"subtotal-rule"
,
XML_SUBTOTAL_RULE
),
TOKEN
(
"subtotal-rules"
,
XML_SUBTOTAL_RULES
),
TOKEN
(
"subtotal-rules"
,
XML_SUBTOTAL_RULES
),
TOKEN
(
"sub-view-size"
,
XML_SUB_VIEW_SIZE
),
TOKEN
(
"suffix"
,
XML_SUFFIX
),
TOKEN
(
"suffix"
,
XML_SUFFIX
),
TOKEN
(
"sum"
,
XML_SUM
),
TOKEN
(
"sum"
,
XML_SUM
),
TOKEN
(
"swiss"
,
XML_SWISS
),
TOKEN
(
"swiss"
,
XML_SWISS
),
...
...
xmloff/source/draw/EnhancedCustomShapeToken.cxx
Dosyayı görüntüle @
7c5d35a6
...
@@ -112,6 +112,7 @@ static const TokenTable pTokenTableArray[] =
...
@@ -112,6 +112,7 @@ static const TokenTable pTokenTableArray[] =
{
"handle-polar"
,
EAS_handle_polar
},
{
"handle-polar"
,
EAS_handle_polar
},
{
"handle-radius-range-minimum"
,
EAS_handle_radius_range_minimum
},
{
"handle-radius-range-minimum"
,
EAS_handle_radius_range_minimum
},
{
"handle-radius-range-maximum"
,
EAS_handle_radius_range_maximum
},
{
"handle-radius-range-maximum"
,
EAS_handle_radius_range_maximum
},
{
"sub-view-size"
,
EAS_sub_view_size
},
{
"CustomShapeEngine"
,
EAS_CustomShapeEngine
},
{
"CustomShapeEngine"
,
EAS_CustomShapeEngine
},
{
"CustomShapeData"
,
EAS_CustomShapeData
},
{
"CustomShapeData"
,
EAS_CustomShapeData
},
...
@@ -173,6 +174,7 @@ static const TokenTable pTokenTableArray[] =
...
@@ -173,6 +174,7 @@ static const TokenTable pTokenTableArray[] =
{
"SameLetterHeights"
,
EAS_SameLetterHeights
},
{
"SameLetterHeights"
,
EAS_SameLetterHeights
},
{
"Position"
,
EAS_Position
},
{
"Position"
,
EAS_Position
},
{
"AdjustmentValues"
,
EAS_AdjustmentValues
},
{
"AdjustmentValues"
,
EAS_AdjustmentValues
},
{
"SubViewSize"
,
EAS_SubViewSize
},
{
"Last"
,
EAS_Last
},
{
"Last"
,
EAS_Last
},
{
"NotFound"
,
EAS_NotFound
}
{
"NotFound"
,
EAS_NotFound
}
...
...
xmloff/source/draw/shapeexport4.cxx
Dosyayı görüntüle @
7c5d35a6
...
@@ -908,8 +908,26 @@ void ImpExportEnhancedGeometry( SvXMLExport& rExport, const uno::Reference< bean
...
@@ -908,8 +908,26 @@ void ImpExportEnhancedGeometry( SvXMLExport& rExport, const uno::Reference< bean
for
(
i
=
0
;
i
<
nCount
;
i
++
)
for
(
i
=
0
;
i
<
nCount
;
i
++
)
{
{
const
beans
::
PropertyValue
&
rProp
=
aPathPropSeq
[
i
];
const
beans
::
PropertyValue
&
rProp
=
aPathPropSeq
[
i
];
switch
(
EASGet
(
rProp
.
Name
)
)
switch
(
EASGet
(
rProp
.
Name
)
)
{
{
case
EAS_SubViewSize
:
{
uno
::
Sequence
<
awt
::
Size
>
aSubViewSizes
;
rProp
.
Value
>>=
aSubViewSizes
;
for
(
int
nIdx
=
0
;
nIdx
<
aSubViewSizes
.
getLength
();
nIdx
++
)
{
if
(
nIdx
)
aStrBuffer
.
append
(
' '
);
::
sax
::
Converter
::
convertNumber
(
aStrBuffer
,
aSubViewSizes
[
nIdx
].
Width
);
aStrBuffer
.
append
(
' '
);
::
sax
::
Converter
::
convertNumber
(
aStrBuffer
,
aSubViewSizes
[
nIdx
].
Height
);
}
aStr
=
aStrBuffer
.
makeStringAndClear
();
rExport
.
AddAttribute
(
XML_NAMESPACE_DRAW_EXT
,
XML_SUB_VIEW_SIZE
,
aStr
);
}
break
;
case
EAS_ExtrusionAllowed
:
case
EAS_ExtrusionAllowed
:
{
{
sal_Bool
bExtrusionAllowed
=
sal_Bool
();
sal_Bool
bExtrusionAllowed
=
sal_Bool
();
...
...
xmloff/source/draw/ximpcustomshape.cxx
Dosyayı görüntüle @
7c5d35a6
...
@@ -472,6 +472,43 @@ void GetDoubleSequence( std::vector< com::sun::star::beans::PropertyValue >& rDe
...
@@ -472,6 +472,43 @@ void GetDoubleSequence( std::vector< com::sun::star::beans::PropertyValue >& rDe
}
}
}
}
void
GetSizeSequence
(
std
::
vector
<
com
::
sun
::
star
::
beans
::
PropertyValue
>&
rDest
,
const
rtl
::
OUString
&
rValue
,
const
EnhancedCustomShapeTokenEnum
eDestProp
)
{
std
::
vector
<
sal_Int32
>
vNum
;
sal_Int32
nIndex
=
0
;
do
{
sal_Int32
n
;
rtl
::
OUString
aToken
(
rValue
.
getToken
(
0
,
' '
,
nIndex
)
);
if
(
!::
sax
::
Converter
::
convertNumber
(
n
,
aToken
))
break
;
else
vNum
.
push_back
(
n
);
}
while
(
nIndex
>=
0
);
if
(
!
vNum
.
empty
()
)
{
uno
::
Sequence
<
awt
::
Size
>
aSizeSeq
(
vNum
.
size
()
/
2
);
std
::
vector
<
sal_Int32
>::
const_iterator
aIter
=
vNum
.
begin
();
std
::
vector
<
sal_Int32
>::
const_iterator
aEnd
=
vNum
.
end
();
awt
::
Size
*
pValues
=
aSizeSeq
.
getArray
();
while
(
aIter
!=
aEnd
)
{
pValues
->
Width
=
*
aIter
++
;
if
(
aIter
!=
aEnd
)
pValues
->
Height
=
*
aIter
++
;
pValues
++
;
}
beans
::
PropertyValue
aProp
;
aProp
.
Name
=
EASGet
(
eDestProp
);
aProp
.
Value
<<=
aSizeSeq
;
rDest
.
push_back
(
aProp
);
}
}
void
GetEnhancedParameter
(
std
::
vector
<
com
::
sun
::
star
::
beans
::
PropertyValue
>&
rDest
,
// e.g. draw:handle-position
void
GetEnhancedParameter
(
std
::
vector
<
com
::
sun
::
star
::
beans
::
PropertyValue
>&
rDest
,
// e.g. draw:handle-position
const
rtl
::
OUString
&
rValue
,
const
EnhancedCustomShapeTokenEnum
eDestProp
)
const
rtl
::
OUString
&
rValue
,
const
EnhancedCustomShapeTokenEnum
eDestProp
)
{
{
...
@@ -860,6 +897,9 @@ void XMLEnhancedCustomShapeContext::StartElement( const uno::Reference< xml::sax
...
@@ -860,6 +897,9 @@ void XMLEnhancedCustomShapeContext::StartElement( const uno::Reference< xml::sax
mrCustomShapeGeometry
.
push_back
(
aProp
);
mrCustomShapeGeometry
.
push_back
(
aProp
);
}
}
break
;
break
;
case
EAS_sub_view_size
:
GetSizeSequence
(
maPath
,
rValue
,
EAS_SubViewSize
);
break
;
case
EAS_text_rotate_angle
:
case
EAS_text_rotate_angle
:
GetDouble
(
mrCustomShapeGeometry
,
rValue
,
EAS_TextRotateAngle
);
GetDouble
(
mrCustomShapeGeometry
,
rValue
,
EAS_TextRotateAngle
);
break
;
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