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
e7a0a1fd
Kaydet (Commit)
e7a0a1fd
authored
Kas 18, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
DOCX drawingML shape import: handle position
Change-Id: I9a0cb95d875328dab21950ead06d56c4dac8305d
üst
4e593d69
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
ooxmlimport.cxx
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+5
-1
GraphicImport.cxx
writerfilter/source/dmapper/GraphicImport.cxx
+1
-1
No files found.
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
Dosyayı görüntüle @
e7a0a1fd
...
@@ -1508,8 +1508,12 @@ DECLARE_OOXMLIMPORT_TEST(testFdo69548, "fdo69548.docx")
...
@@ -1508,8 +1508,12 @@ DECLARE_OOXMLIMPORT_TEST(testFdo69548, "fdo69548.docx")
DECLARE_OOXMLIMPORT_TEST
(
testWpsOnly
,
"wps-only.docx"
)
DECLARE_OOXMLIMPORT_TEST
(
testWpsOnly
,
"wps-only.docx"
)
{
{
// Document has wp:anchor, not wp:inline, so handle it accordingly.
// Document has wp:anchor, not wp:inline, so handle it accordingly.
text
::
TextContentAnchorType
eValue
=
getProperty
<
text
::
TextContentAnchorType
>
(
getShape
(
1
),
"AnchorType"
);
uno
::
Reference
<
drawing
::
XShape
>
xShape
=
getShape
(
1
);
text
::
TextContentAnchorType
eValue
=
getProperty
<
text
::
TextContentAnchorType
>
(
xShape
,
"AnchorType"
);
CPPUNIT_ASSERT_EQUAL
(
text
::
TextContentAnchorType_AT_CHARACTER
,
eValue
);
CPPUNIT_ASSERT_EQUAL
(
text
::
TextContentAnchorType_AT_CHARACTER
,
eValue
);
// Check position, it was 0. This is a shape, so use getPosition(), not a property.
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
EMU_TO_MM100
(
671830
)),
xShape
->
getPosition
().
X
);
}
}
DECLARE_OOXMLIMPORT_TEST
(
testFdo70457
,
"fdo70457.docx"
)
DECLARE_OOXMLIMPORT_TEST
(
testFdo70457
,
"fdo70457.docx"
)
...
...
writerfilter/source/dmapper/GraphicImport.cxx
Dosyayı görüntüle @
e7a0a1fd
...
@@ -999,7 +999,7 @@ void GraphicImport::lcl_attribute(Id nName, Value & val)
...
@@ -999,7 +999,7 @@ void GraphicImport::lcl_attribute(Id nName, Value & val)
uno
::
Reference
<
beans
::
XPropertySet
>
xShapeProps
(
m_xShape
,
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
beans
::
XPropertySet
>
xShapeProps
(
m_xShape
,
uno
::
UNO_QUERY_THROW
);
xShapeProps
->
setPropertyValue
(
"AnchorType"
,
uno
::
makeAny
(
text
::
TextContentAnchorType_AT_CHARACTER
));
xShapeProps
->
setPropertyValue
(
"AnchorType"
,
uno
::
makeAny
(
text
::
TextContentAnchorType_AT_CHARACTER
));
// TODO handle more properties here like HoriOrientPosition, etc.
m_xShape
->
setPosition
(
awt
::
Point
(
m_pImpl
->
nLeftPosition
,
m_pImpl
->
nTopPosition
));
}
}
}
}
}
}
...
...
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