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
dce20aa0
Kaydet (Commit)
dce20aa0
authored
Kas 07, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
writerfilter: handle ooxml:CT_TblPrBase_bidiVisual
Change-Id: I619a6b161e5ed7e902406b288552b06fe7da487e
üst
d156dd49
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
table-rtl.docx
sw/qa/extras/ooxmlexport/data/table-rtl.docx
+0
-0
ooxmlexport.cxx
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+10
-0
DomainMapperTableManager.cxx
writerfilter/source/dmapper/DomainMapperTableManager.cxx
+7
-0
No files found.
sw/qa/extras/ooxmlexport/data/table-rtl.docx
0 → 100644
Dosyayı görüntüle @
dce20aa0
File added
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Dosyayı görüntüle @
dce20aa0
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
#include <com/sun/star/text/FontEmphasis.hpp>
#include <com/sun/star/text/FontEmphasis.hpp>
#include <com/sun/star/text/HoriOrientation.hpp>
#include <com/sun/star/text/HoriOrientation.hpp>
#include <com/sun/star/text/XTextRangeCompare.hpp>
#include <com/sun/star/text/XTextRangeCompare.hpp>
#include <com/sun/star/text/WritingMode2.hpp>
#include <string>
#include <string>
...
@@ -503,6 +504,15 @@ DECLARE_OOXMLEXPORT_TEST(testPageBreakBefore, "page-break-before.docx")
...
@@ -503,6 +504,15 @@ DECLARE_OOXMLEXPORT_TEST(testPageBreakBefore, "page-break-before.docx")
CPPUNIT_ASSERT_EQUAL
(
style
::
BreakType_NONE
,
getProperty
<
style
::
BreakType
>
(
getParagraph
(
2
),
"BreakType"
));
CPPUNIT_ASSERT_EQUAL
(
style
::
BreakType_NONE
,
getProperty
<
style
::
BreakType
>
(
getParagraph
(
2
),
"BreakType"
));
}
}
DECLARE_OOXMLEXPORT_TEST
(
testTableRtl
,
"table-rtl.docx"
)
{
uno
::
Reference
<
text
::
XTextTablesSupplier
>
xTablesSupplier
(
mxComponent
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
container
::
XIndexAccess
>
xTables
(
xTablesSupplier
->
getTextTables
(),
uno
::
UNO_QUERY
);
uno
::
Reference
<
text
::
XTextTable
>
xTable
(
xTables
->
getByIndex
(
0
),
uno
::
UNO_QUERY
);
// This was text::WritingMode2::LR_TB, i.e. direction of the table was ignored.
CPPUNIT_ASSERT_EQUAL
(
text
::
WritingMode2
::
RL_TB
,
getProperty
<
sal_Int16
>
(
xTable
,
"WritingMode"
));
}
CPPUNIT_PLUGIN_IMPLEMENT
();
CPPUNIT_PLUGIN_IMPLEMENT
();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
writerfilter/source/dmapper/DomainMapperTableManager.cxx
Dosyayı görüntüle @
dce20aa0
...
@@ -463,6 +463,13 @@ bool DomainMapperTableManager::sprm(Sprm & rSprm)
...
@@ -463,6 +463,13 @@ bool DomainMapperTableManager::sprm(Sprm & rSprm)
case
NS_ooxml
:
:
LN_CT_TblPrBase_tblCellSpacing
:
case
NS_ooxml
:
:
LN_CT_TblPrBase_tblCellSpacing
:
// To-Do: Not yet preserved
// To-Do: Not yet preserved
break
;
break
;
case
NS_ooxml
:
:
LN_CT_TblPrBase_bidiVisual
:
{
TablePropertyMapPtr
pPropMap
(
new
TablePropertyMap
());
pPropMap
->
Insert
(
PROP_WRITING_MODE
,
uno
::
makeAny
(
nIntValue
?
text
::
WritingMode2
::
RL_TB
:
text
::
WritingMode2
::
LR_TB
));
insertTableProps
(
pPropMap
);
break
;
}
default
:
default
:
bRet
=
false
;
bRet
=
false
;
...
...
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