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
a234804c
Kaydet (Commit)
a234804c
authored
Haz 15, 2012
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw/qa: move getStyles from rtftok to base class, to be used by ooxmltok
Change-Id: I137c0a42ab8413213d93f1bbd868077e2c042ce0
üst
47e4a33a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
rtftok.cxx
sw/qa/extras/rtftok/rtftok.cxx
+0
-10
swmodeltestbase.hxx
sw/qa/extras/swmodeltestbase.hxx
+10
-0
No files found.
sw/qa/extras/rtftok/rtftok.cxx
Dosyayı görüntüle @
a234804c
...
@@ -33,7 +33,6 @@
...
@@ -33,7 +33,6 @@
#include <com/sun/star/style/CaseMap.hpp>
#include <com/sun/star/style/CaseMap.hpp>
#include <com/sun/star/style/LineSpacing.hpp>
#include <com/sun/star/style/LineSpacing.hpp>
#include <com/sun/star/style/LineSpacingMode.hpp>
#include <com/sun/star/style/LineSpacingMode.hpp>
#include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
#include <com/sun/star/table/BorderLine2.hpp>
#include <com/sun/star/table/BorderLine2.hpp>
#include <com/sun/star/table/BorderLineStyle.hpp>
#include <com/sun/star/table/BorderLineStyle.hpp>
#include <com/sun/star/text/RelOrientation.hpp>
#include <com/sun/star/text/RelOrientation.hpp>
...
@@ -144,7 +143,6 @@ private:
...
@@ -144,7 +143,6 @@ private:
void
load
(
const
OUString
&
rURL
);
void
load
(
const
OUString
&
rURL
);
/// Get page count.
/// Get page count.
int
getPages
();
int
getPages
();
uno
::
Reference
<
container
::
XNameAccess
>
getStyles
(
OUString
aFamily
);
};
};
void
Test
::
load
(
const
OUString
&
rFilename
)
void
Test
::
load
(
const
OUString
&
rFilename
)
...
@@ -161,14 +159,6 @@ int Test::getPages()
...
@@ -161,14 +159,6 @@ int Test::getPages()
return
xCursor
->
getPage
();
return
xCursor
->
getPage
();
}
}
uno
::
Reference
<
container
::
XNameAccess
>
Test
::
getStyles
(
OUString
aFamily
)
{
uno
::
Reference
<
style
::
XStyleFamiliesSupplier
>
xStyleFamiliesSupplier
(
mxComponent
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
container
::
XNameAccess
>
xStyles
(
xStyleFamiliesSupplier
->
getStyleFamilies
(),
uno
::
UNO_QUERY
);
uno
::
Reference
<
container
::
XNameAccess
>
xPageStyles
(
xStyles
->
getByName
(
aFamily
),
uno
::
UNO_QUERY
);
return
xPageStyles
;
}
void
Test
::
testFdo45553
()
void
Test
::
testFdo45553
()
{
{
load
(
"fdo45553.rtf"
);
load
(
"fdo45553.rtf"
);
...
...
sw/qa/extras/swmodeltestbase.hxx
Dosyayı görüntüle @
a234804c
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
* instead of those above.
* instead of those above.
*/
*/
#include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
#include <com/sun/star/text/XTextDocument.hpp>
#include <com/sun/star/text/XTextDocument.hpp>
#include <test/bootstrapfixture.hxx>
#include <test/bootstrapfixture.hxx>
...
@@ -74,6 +75,15 @@ protected:
...
@@ -74,6 +75,15 @@ protected:
return
aBuf
.
getLength
();
return
aBuf
.
getLength
();
}
}
/// Get a family of styles, see com.sun.star.style.StyleFamilies for possible values.
uno
::
Reference
<
container
::
XNameAccess
>
getStyles
(
rtl
::
OUString
aFamily
)
{
uno
::
Reference
<
style
::
XStyleFamiliesSupplier
>
xStyleFamiliesSupplier
(
mxComponent
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
container
::
XNameAccess
>
xStyleFamilies
(
xStyleFamiliesSupplier
->
getStyleFamilies
(),
uno
::
UNO_QUERY
);
uno
::
Reference
<
container
::
XNameAccess
>
xStyleFamily
(
xStyleFamilies
->
getByName
(
aFamily
),
uno
::
UNO_QUERY
);
return
xStyleFamily
;
}
uno
::
Reference
<
lang
::
XComponent
>
mxComponent
;
uno
::
Reference
<
lang
::
XComponent
>
mxComponent
;
};
};
...
...
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