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
fd2e3ff7
Kaydet (Commit)
fd2e3ff7
authored
Eyl 19, 2012
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
DOCX ink testcase
Change-Id: I0d38edfe1bac8a6db0227d9bbd0d9fbf9cdd93fd
üst
24f9a186
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
ink.docx
sw/qa/extras/ooxmlimport/data/ink.docx
+0
-0
ooxmlimport.cxx
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+16
-4
No files found.
sw/qa/extras/ooxmlimport/data/ink.docx
0 → 100644
Dosyayı görüntüle @
fd2e3ff7
File added
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
Dosyayı görüntüle @
fd2e3ff7
...
...
@@ -52,10 +52,6 @@
#define TWIP_TO_MM100(TWIP) ((TWIP) >= 0 ? (((TWIP)*127L+36L)/72L) : (((TWIP)*127L-36L)/72L))
using
rtl
::
OString
;
using
rtl
::
OUString
;
using
rtl
::
OUStringBuffer
;
class
Test
:
public
SwModelTestBase
...
...
@@ -92,6 +88,7 @@ public:
void
testN778836
();
void
testN778140
();
void
testN778828
();
void
testInk
();
CPPUNIT_TEST_SUITE
(
Test
);
#if !defined(MACOSX) && !defined(WNT)
...
...
@@ -126,6 +123,7 @@ public:
CPPUNIT_TEST
(
testN778836
);
CPPUNIT_TEST
(
testN778140
);
CPPUNIT_TEST
(
testN778828
);
CPPUNIT_TEST
(
testInk
);
#endif
CPPUNIT_TEST_SUITE_END
();
...
...
@@ -847,6 +845,20 @@ void Test::testN778828()
CPPUNIT_ASSERT_EQUAL
(
sal_Int16
(
2
),
xCursor
->
getPage
());
}
void
Test
::
testInk
()
{
/*
* The problem was that ~nothing was imported, except an empty CustomShape.
*
* xray ThisComponent.DrawPage(0).supportsService("com.sun.star.drawing.OpenBezierShape")
*/
load
(
"ink.docx"
);
uno
::
Reference
<
drawing
::
XDrawPageSupplier
>
xDrawPageSupplier
(
mxComponent
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
container
::
XIndexAccess
>
xDraws
(
xDrawPageSupplier
->
getDrawPage
(),
uno
::
UNO_QUERY
);
uno
::
Reference
<
lang
::
XServiceInfo
>
xServiceInfo
(
xDraws
->
getByIndex
(
0
),
uno
::
UNO_QUERY
);
CPPUNIT_ASSERT
(
xServiceInfo
->
supportsService
(
"com.sun.star.drawing.OpenBezierShape"
));
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
Test
);
CPPUNIT_PLUGIN_IMPLEMENT
();
...
...
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