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
793c1b17
Kaydet (Commit)
793c1b17
authored
Şub 19, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
writerfilter: get rid of these hardcoded values
Change-Id: I381266cbc9eb2a6d95b7bdc5e80a1e486112dbbe
üst
b23887e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
DomainMapperTableManager.cxx
writerfilter/source/dmapper/DomainMapperTableManager.cxx
+5
-6
No files found.
writerfilter/source/dmapper/DomainMapperTableManager.cxx
Dosyayı görüntüle @
793c1b17
...
...
@@ -30,6 +30,7 @@
#include <com/sun/star/text/SizeType.hpp>
#include <com/sun/star/text/TableColumnSeparator.hpp>
#include <com/sun/star/text/VertOrientation.hpp>
#include <com/sun/star/text/WritingMode2.hpp>
#include <ooxml/resourceids.hxx>
#include <doctok/sprmids.hxx>
#include <dmapperLoggers.hxx>
...
...
@@ -251,28 +252,26 @@ bool DomainMapperTableManager::sprm(Sprm & rSprm)
case
NS_ooxml
:
:
LN_CT_TcPrBase_textDirection
:
{
TablePropertyMapPtr
pPropMap
(
new
TablePropertyMap
);
const
sal_Int16
HORI_LEFT_TOP
=
0
;
const
sal_Int16
VERT_TOP_RIGHT
=
2
;
bool
bInsertCellProps
=
true
;
switch
(
nIntValue
)
{
case
1
:
// tbRl
// Binary filter takes BiDirection into account ( but I have no idea about that here )
// or even what it is. But... here's where to handle it if it becomes an issue
pPropMap
->
Insert
(
PROP_FRM_DIRECTION
,
false
,
uno
::
makeAny
(
VERT_TOP_RIGHT
));
pPropMap
->
Insert
(
PROP_FRM_DIRECTION
,
false
,
uno
::
makeAny
(
text
::
WritingMode2
::
TB_RL
));
SAL_INFO
(
"writerfilter"
,
"Have inserted textDirection "
<<
nIntValue
);
break
;
case
3
:
// btLr
// We have to fake this text direction
pPropMap
->
Insert
(
PROP_FRM_DIRECTION
,
false
,
uno
::
makeAny
(
HORI_LEFT_TOP
));
pPropMap
->
Insert
(
PROP_FRM_DIRECTION
,
false
,
uno
::
makeAny
(
text
::
WritingMode2
::
LR_TB
));
pPropMap
->
Insert
(
PROP_CHAR_ROTATION
,
false
,
uno
::
makeAny
(
sal_Int16
(
900
)
));
SAL_INFO
(
"writerfilter"
,
"Have inserted textDirection "
<<
nIntValue
);
break
;
case
4
:
// lrTbV
pPropMap
->
Insert
(
PROP_FRM_DIRECTION
,
false
,
uno
::
makeAny
(
HORI_LEFT_TOP
));
pPropMap
->
Insert
(
PROP_FRM_DIRECTION
,
false
,
uno
::
makeAny
(
text
::
WritingMode2
::
LR_TB
));
break
;
case
5
:
// tbRlV
pPropMap
->
Insert
(
PROP_FRM_DIRECTION
,
false
,
uno
::
makeAny
(
VERT_TOP_RIGHT
));
pPropMap
->
Insert
(
PROP_FRM_DIRECTION
,
false
,
uno
::
makeAny
(
text
::
WritingMode2
::
TB_RL
));
break
;
case
0
:
// lrTb
case
NS_ooxml
:
:
LN_Value_ST_TextDirection_tbLrV
:
...
...
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