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
94698d89
Kaydet (Commit)
94698d89
authored
Şub 23, 2012
tarafından
Cédric Bosdonnat
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#45560: Fixed docx textbox position and size import
üst
f0a0b8fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
4 deletions
+22
-4
vmldrawing.cxx
oox/source/vml/vmldrawing.cxx
+22
-4
No files found.
oox/source/vml/vmldrawing.cxx
Dosyayı görüntüle @
94698d89
...
...
@@ -29,9 +29,13 @@
#include "oox/vml/vmldrawing.hxx"
#include <algorithm>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/drawing/XControlShape.hpp>
#include <com/sun/star/drawing/XShapes.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/text/HoriOrientation.hpp>
#include <com/sun/star/text/VertOrientation.hpp>
#include <rtl/oustringostreaminserter.hxx>
#include "oox/core/xmlfilterbase.hxx"
#include "oox/helper/containerhelper.hxx"
#include "oox/ole/axcontrol.hxx"
...
...
@@ -44,8 +48,10 @@ namespace vml {
// ============================================================================
using
namespace
::
com
::
sun
::
star
::
awt
;
using
namespace
::
com
::
sun
::
star
::
beans
;
using
namespace
::
com
::
sun
::
star
::
drawing
;
using
namespace
::
com
::
sun
::
star
::
lang
;
using
namespace
::
com
::
sun
::
star
::
text
;
using
namespace
::
com
::
sun
::
star
::
uno
;
using
::
oox
::
core
::
XmlFilterBase
;
...
...
@@ -217,13 +223,25 @@ Reference< XShape > Drawing::createAndInsertXShape( const OUString& rService,
{
Reference
<
XMultiServiceFactory
>
xModelFactory
(
mrFilter
.
getModelFactory
(),
UNO_SET_THROW
);
xShape
.
set
(
xModelFactory
->
createInstance
(
rService
),
UNO_QUERY_THROW
);
// insert shape into passed shape collection (maybe drawpage or group shape)
rxShapes
->
add
(
xShape
);
xShape
->
setPosition
(
Point
(
rShapeRect
.
X
,
rShapeRect
.
Y
)
);
if
(
!
rService
.
equalsAscii
(
"com.sun.star.text.TextFrame"
)
)
{
// insert shape into passed shape collection (maybe drawpage or group shape)
rxShapes
->
add
(
xShape
);
xShape
->
setPosition
(
Point
(
rShapeRect
.
X
,
rShapeRect
.
Y
)
);
}
else
{
Reference
<
XPropertySet
>
xPropSet
(
xShape
,
UNO_QUERY_THROW
);
xPropSet
->
setPropertyValue
(
OUString
::
createFromAscii
(
"HoriOrient"
),
makeAny
(
HoriOrientation
::
NONE
)
);
xPropSet
->
setPropertyValue
(
OUString
::
createFromAscii
(
"VertOrient"
),
makeAny
(
VertOrientation
::
NONE
)
);
xPropSet
->
setPropertyValue
(
OUString
::
createFromAscii
(
"HoriOrientPosition"
),
makeAny
(
rShapeRect
.
X
)
);
xPropSet
->
setPropertyValue
(
OUString
::
createFromAscii
(
"VertOrientPosition"
),
makeAny
(
rShapeRect
.
Y
)
);
}
xShape
->
setSize
(
Size
(
rShapeRect
.
Width
,
rShapeRect
.
Height
)
);
}
catch
(
Exception
&
)
catch
(
Exception
&
e
)
{
SAL_WARN
(
"oox"
,
"Drawing::createAndInsertXShape - error during shape object creation: "
<<
e
.
Message
);
}
OSL_ENSURE
(
xShape
.
is
(),
"Drawing::createAndInsertXShape - cannot instanciate shape object"
);
return
xShape
;
...
...
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