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
9a7d2e0f
Kaydet (Commit)
9a7d2e0f
authored
Mar 20, 2013
tarafından
Yifan J
Kaydeden (comit)
Miklos Vajna
Mar 20, 2013
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ooxmlimport line numbering check
Change-Id: Ifa9d4cb45950a378dd0d82d4d262ffd9511d7f44
üst
19802872
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
0 deletions
+37
-0
tools-line-numbering.docx
sw/qa/extras/ooxmlimport/data/tools-line-numbering.docx
+0
-0
ooxmlimport.cxx
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+37
-0
No files found.
sw/qa/extras/ooxmlimport/data/tools-line-numbering.docx
0 → 100644
Dosyayı görüntüle @
9a7d2e0f
File added
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
Dosyayı görüntüle @
9a7d2e0f
...
...
@@ -120,6 +120,7 @@ public:
void
testFdo53985
();
void
testFdo59638
();
void
testFdo61343
();
void
testToolsLineNumbering
();
CPPUNIT_TEST_SUITE
(
Test
);
#if !defined(MACOSX) && !defined(WNT)
...
...
@@ -191,6 +192,7 @@ void Test::run()
{
"fdo53985.docx"
,
&
Test
::
testFdo53985
},
{
"fdo59638.docx"
,
&
Test
::
testFdo59638
},
{
"fdo61343.docx"
,
&
Test
::
testFdo61343
},
{
"tools-line-numbering.docx"
,
&
Test
::
testToolsLineNumbering
},
};
header
();
for
(
unsigned
int
i
=
0
;
i
<
SAL_N_ELEMENTS
(
aMethods
);
++
i
)
...
...
@@ -1243,6 +1245,41 @@ void Test::testFdo61343()
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
1
),
xDraws
->
getCount
());
}
void
Test
::
testToolsLineNumbering
()
{
/*
* Test the line numbering feature import (Tools->Line Numbering ...)
*
* xray ThisComponent.getLineNumberingProperties().IsOn == True
* xray ThisComponent.getLineNumberingProperties().CountEmptyLines == True
* xray ThisComponent.getLineNumberingProperties().NumberPosition == 0
* xray ThisComponent.getLineNumberingProperties().NumberingType == 4
* xray ThisComponent.getLineNumberingProperties().SeparatorInterval == 3
*/
sal_Bool
bValue
=
sal_False
;
sal_Int32
nValue
=
-
1
;
uno
::
Reference
<
text
::
XTextDocument
>
xtextDocument
(
mxComponent
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
text
::
XLineNumberingProperties
>
xLineProperties
(
xtextDocument
,
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
beans
::
XPropertySet
>
xPropertySet
=
xLineProperties
->
getLineNumberingProperties
();
xPropertySet
->
getPropertyValue
(
"IsOn"
)
>>=
bValue
;
CPPUNIT_ASSERT_EQUAL
(
sal_True
,
bValue
);
xPropertySet
->
getPropertyValue
(
"CountEmptyLines"
)
>>=
bValue
;
CPPUNIT_ASSERT_EQUAL
(
sal_True
,
bValue
);
xPropertySet
->
getPropertyValue
(
"NumberPosition"
)
>>=
nValue
;
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
0
),
nValue
);
xPropertySet
->
getPropertyValue
(
"NumberingType"
)
>>=
nValue
;
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
4
),
nValue
);
xPropertySet
->
getPropertyValue
(
"SeparatorInterval"
)
>>=
nValue
;
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
3
),
nValue
);
}
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