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
40a8b1f9
Kaydet (Commit)
40a8b1f9
authored
Ock 17, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
VML import: fix rotation of simple shapes inside group shapes
Change-Id: I28d2e2d801b06b92b5348123d88604fb4d10d828
üst
683764db
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
vmlshape.cxx
oox/source/vml/vmlshape.cxx
+7
-3
groupshape-child-rotation.docx
sw/qa/extras/ooxmlimport/data/groupshape-child-rotation.docx
+0
-0
ooxmlimport.cxx
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+11
-0
No files found.
oox/source/vml/vmlshape.cxx
Dosyayı görüntüle @
40a8b1f9
...
@@ -642,9 +642,13 @@ Reference< XShape > SimpleShape::implConvertAndInsert( const Reference< XShapes
...
@@ -642,9 +642,13 @@ Reference< XShape > SimpleShape::implConvertAndInsert( const Reference< XShapes
if
(
oRotation
)
if
(
oRotation
)
{
{
lcl_SetRotation
(
aPropertySet
,
*
oRotation
);
lcl_SetRotation
(
aPropertySet
,
*
oRotation
);
// If rotation is used, simple setPosition() is not enough.
uno
::
Reference
<
lang
::
XServiceInfo
>
xServiceInfo
(
rxShapes
,
uno
::
UNO_QUERY
);
aPropertySet
.
setAnyProperty
(
PROP_HoriOrientPosition
,
makeAny
(
aShapeRect
.
X
)
);
if
(
!
xServiceInfo
->
supportsService
(
"com.sun.star.drawing.GroupShape"
))
aPropertySet
.
setAnyProperty
(
PROP_VertOrientPosition
,
makeAny
(
aShapeRect
.
Y
)
);
{
// If rotation is used, simple setPosition() is not enough.
aPropertySet
.
setAnyProperty
(
PROP_HoriOrientPosition
,
makeAny
(
aShapeRect
.
X
));
aPropertySet
.
setAnyProperty
(
PROP_VertOrientPosition
,
makeAny
(
aShapeRect
.
Y
));
}
}
}
// When flip has 'x' or 'y', the associated ShapeRect will be changed but direction change doesn't occur.
// When flip has 'x' or 'y', the associated ShapeRect will be changed but direction change doesn't occur.
...
...
sw/qa/extras/ooxmlimport/data/groupshape-child-rotation.docx
0 → 100644
Dosyayı görüntüle @
40a8b1f9
File added
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
Dosyayı görüntüle @
40a8b1f9
...
@@ -962,6 +962,17 @@ DECLARE_OOXMLIMPORT_TEST(testGroupshapeLine, "groupshape-line.docx")
...
@@ -962,6 +962,17 @@ DECLARE_OOXMLIMPORT_TEST(testGroupshapeLine, "groupshape-line.docx")
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
0
),
xShape
->
getSize
().
Height
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
0
),
xShape
->
getSize
().
Height
);
}
}
DECLARE_OOXMLIMPORT_TEST
(
testGroupshapeChildRotation
,
"groupshape-child-rotation.docx"
)
{
// The problem was that (due to incorrect handling of rotation inside
// groupshapes), the first child wasn't in the top left corner of an inline
// groupshape.
uno
::
Reference
<
drawing
::
XShapes
>
xGroupShape
(
getShape
(
1
),
uno
::
UNO_QUERY
);
uno
::
Reference
<
drawing
::
XShape
>
xShape
(
xGroupShape
->
getByIndex
(
0
),
uno
::
UNO_QUERY
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
0
),
xShape
->
getPosition
().
X
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
0
),
xShape
->
getPosition
().
Y
);
}
DECLARE_OOXMLIMPORT_TEST
(
testN793262
,
"n793262.docx"
)
DECLARE_OOXMLIMPORT_TEST
(
testN793262
,
"n793262.docx"
)
{
{
uno
::
Reference
<
container
::
XEnumerationAccess
>
xHeaderText
=
getProperty
<
uno
::
Reference
<
container
::
XEnumerationAccess
>
>
(
getStyles
(
"PageStyles"
)
->
getByName
(
DEFAULT_STYLE
),
"HeaderText"
);
uno
::
Reference
<
container
::
XEnumerationAccess
>
xHeaderText
=
getProperty
<
uno
::
Reference
<
container
::
XEnumerationAccess
>
>
(
getStyles
(
"PageStyles"
)
->
getByName
(
DEFAULT_STYLE
),
"HeaderText"
);
...
...
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