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
5c2f78cd
Kaydet (Commit)
5c2f78cd
authored
Ara 04, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Prefer STL container to manual realloc
Change-Id: Id586934c8ff635b1ec2b645b0956cc60960f6078
üst
2ffe2b0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
30 deletions
+12
-30
vmlshape.cxx
oox/source/vml/vmlshape.cxx
+12
-30
No files found.
oox/source/vml/vmlshape.cxx
Dosyayı görüntüle @
5c2f78cd
...
@@ -61,6 +61,8 @@
...
@@ -61,6 +61,8 @@
#include "svx/EnhancedCustomShapeTypeNames.hxx"
#include "svx/EnhancedCustomShapeTypeNames.hxx"
#include <svx/unoapi.hxx>
#include <svx/unoapi.hxx>
#include <svx/svdoashp.hxx>
#include <svx/svdoashp.hxx>
#include <comphelper/sequence.hxx>
#include <comphelper/propertyvalue.hxx>
using
::
com
::
sun
::
star
::
beans
::
XPropertySet
;
using
::
com
::
sun
::
star
::
beans
::
XPropertySet
;
using
::
com
::
sun
::
star
::
uno
::
Any
;
using
::
com
::
sun
::
star
::
uno
::
Any
;
...
@@ -335,46 +337,26 @@ Reference< XShape > ShapeBase::convertAndInsert( const Reference< XShapes >& rxS
...
@@ -335,46 +337,26 @@ Reference< XShape > ShapeBase::convertAndInsert( const Reference< XShapes >& rxS
if
(
xSInfo
->
supportsService
(
"com.sun.star.text.TextFrame"
))
if
(
xSInfo
->
supportsService
(
"com.sun.star.text.TextFrame"
))
{
{
uno
::
Sequence
<
beans
::
PropertyValue
>
aGrabBag
;
uno
::
Reference
<
beans
::
XPropertySet
>
propertySet
(
xShape
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
beans
::
XPropertySet
>
propertySet
(
xShape
,
uno
::
UNO_QUERY
);
propertySet
->
getPropertyValue
(
"FrameInteropGrabBag"
)
>>=
aGrabBag
;
uno
::
Any
aAny
=
propertySet
->
getPropertyValue
(
"FrameInteropGrabBag"
)
;
sal_Int32
length
;
auto
aGrabBag
=
comphelper
::
sequenceToContainer
<
std
::
vector
<
beans
::
PropertyValue
>
>
(
aAny
.
get
<
uno
::
Sequence
<
beans
::
PropertyValue
>
>
())
;
length
=
aGrabBag
.
getLength
();
aGrabBag
.
push_back
(
comphelper
::
makePropertyValue
(
"VML-Z-ORDER"
,
maTypeModel
.
maZIndex
.
toInt32
()));
aGrabBag
.
realloc
(
length
+
1
);
aGrabBag
[
length
].
Name
=
"VML-Z-ORDER"
;
aGrabBag
[
length
].
Value
=
uno
::
makeAny
(
maTypeModel
.
maZIndex
.
toInt32
()
);
if
(
!
s_mso_next_textbox
.
isEmpty
()
)
if
(
!
s_mso_next_textbox
.
isEmpty
()
)
{
aGrabBag
.
push_back
(
comphelper
::
makePropertyValue
(
"mso-next-textbox"
,
s_mso_next_textbox
));
length
=
aGrabBag
.
getLength
();
aGrabBag
.
realloc
(
length
+
1
);
aGrabBag
[
length
].
Name
=
"mso-next-textbox"
;
aGrabBag
[
length
].
Value
=
uno
::
makeAny
(
s_mso_next_textbox
);
}
if
(
!
sLinkChainName
.
isEmpty
()
)
if
(
!
sLinkChainName
.
isEmpty
()
)
{
{
length
=
aGrabBag
.
getLength
();
aGrabBag
.
push_back
(
comphelper
::
makePropertyValue
(
"TxbxHasLink"
,
true
));
aGrabBag
.
realloc
(
length
+
4
);
aGrabBag
.
push_back
(
comphelper
::
makePropertyValue
(
"Txbx-Id"
,
id
));
aGrabBag
[
length
].
Name
=
"TxbxHasLink"
;
aGrabBag
.
push_back
(
comphelper
::
makePropertyValue
(
"Txbx-Seq"
,
seq
));
aGrabBag
[
length
].
Value
=
uno
::
makeAny
(
true
);
aGrabBag
.
push_back
(
comphelper
::
makePropertyValue
(
"LinkChainName"
,
sLinkChainName
));
aGrabBag
[
length
+
1
].
Name
=
"Txbx-Id"
;
aGrabBag
[
length
+
1
].
Value
=
uno
::
makeAny
(
id
);
aGrabBag
[
length
+
2
].
Name
=
"Txbx-Seq"
;
aGrabBag
[
length
+
2
].
Value
=
uno
::
makeAny
(
seq
);
aGrabBag
[
length
+
3
].
Name
=
"LinkChainName"
;
aGrabBag
[
length
+
3
].
Value
=
uno
::
makeAny
(
sLinkChainName
);
}
}
if
(
!
(
maTypeModel
.
maRotation
).
isEmpty
())
if
(
!
(
maTypeModel
.
maRotation
).
isEmpty
())
{
aGrabBag
.
push_back
(
comphelper
::
makePropertyValue
(
"mso-rotation-angle"
,
sal_Int32
(
NormAngle360
((
maTypeModel
.
maRotation
.
toInt32
())
*
-
100
))));
length
=
aGrabBag
.
getLength
();
propertySet
->
setPropertyValue
(
"FrameInteropGrabBag"
,
uno
::
makeAny
(
comphelper
::
containerToSequence
(
aGrabBag
)));
aGrabBag
.
realloc
(
length
+
1
);
aGrabBag
[
length
].
Name
=
"mso-rotation-angle"
;
aGrabBag
[
length
].
Value
=
uno
::
makeAny
(
sal_Int32
(
NormAngle360
((
maTypeModel
.
maRotation
.
toInt32
())
*
-
100
)));
}
propertySet
->
setPropertyValue
(
"FrameInteropGrabBag"
,
uno
::
makeAny
(
aGrabBag
)
);
sal_Int32
backColorTransparency
=
0
;
sal_Int32
backColorTransparency
=
0
;
propertySet
->
getPropertyValue
(
"BackColorTransparency"
)
propertySet
->
getPropertyValue
(
"BackColorTransparency"
)
>>=
backColorTransparency
;
>>=
backColorTransparency
;
...
...
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