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
65facd8c
Kaydet (Commit)
65facd8c
authored
Agu 04, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
writerfilter: tokenize all attributes of CT_TblLook
Change-Id: I0dcaef56804a6998f83afe73d01eb0d5b21a210a
üst
e59420dd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
8 deletions
+63
-8
DomainMapper.cxx
writerfilter/source/dmapper/DomainMapper.cxx
+10
-0
DomainMapperTableManager.cxx
writerfilter/source/dmapper/DomainMapperTableManager.cxx
+19
-7
DomainMapperTableManager.hxx
writerfilter/source/dmapper/DomainMapperTableManager.hxx
+1
-0
model.xml
writerfilter/source/ooxml/model.xml
+33
-1
No files found.
writerfilter/source/dmapper/DomainMapper.cxx
Dosyayı görüntüle @
65facd8c
...
@@ -179,6 +179,9 @@ DomainMapper::~DomainMapper()
...
@@ -179,6 +179,9 @@ DomainMapper::~DomainMapper()
void
DomainMapper
::
lcl_attribute
(
Id
nName
,
Value
&
val
)
void
DomainMapper
::
lcl_attribute
(
Id
nName
,
Value
&
val
)
{
{
if
(
m_pImpl
->
getTableManager
().
attribute
(
nName
,
val
))
return
;
static
OUString
sLocalBookmarkName
;
static
OUString
sLocalBookmarkName
;
sal_Int32
nIntValue
=
val
.
getInt
();
sal_Int32
nIntValue
=
val
.
getInt
();
OUString
sStringValue
=
val
.
getString
();
OUString
sStringValue
=
val
.
getString
();
...
@@ -2451,6 +2454,13 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, PropertyMapPtr rContext )
...
@@ -2451,6 +2454,13 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, PropertyMapPtr rContext )
m_pImpl
->
m_pSdtHelper
->
getInteropGrabBagAndClear
();
m_pImpl
->
m_pSdtHelper
->
getInteropGrabBagAndClear
();
}
}
break
;
break
;
case
NS_ooxml
:
:
LN_CT_TblPrBase_tblLook
:
{
writerfilter
::
Reference
<
Properties
>::
Pointer_t
pProperties
=
rSprm
.
getProps
();
if
(
pProperties
.
get
())
pProperties
->
resolve
(
*
this
);
}
break
;
default
:
default
:
{
{
#ifdef DEBUG_DOMAINMAPPER
#ifdef DEBUG_DOMAINMAPPER
...
...
writerfilter/source/dmapper/DomainMapperTableManager.cxx
Dosyayı görüntüle @
65facd8c
...
@@ -74,6 +74,25 @@ DomainMapperTableManager::~DomainMapperTableManager()
...
@@ -74,6 +74,25 @@ DomainMapperTableManager::~DomainMapperTableManager()
delete
m_pTablePropsHandler
,
m_pTablePropsHandler
=
NULL
;
delete
m_pTablePropsHandler
,
m_pTablePropsHandler
=
NULL
;
}
}
bool
DomainMapperTableManager
::
attribute
(
Id
nName
,
Value
&
rValue
)
{
bool
bRet
=
true
;
switch
(
nName
)
{
case
NS_ooxml
:
:
LN_CT_TblLook_val
:
{
TablePropertyMapPtr
pPropMap
(
new
TablePropertyMap
());
pPropMap
->
Insert
(
PROP_TBL_LOOK
,
uno
::
makeAny
(
rValue
.
getInt
()));
insertTableProps
(
pPropMap
);
}
break
;
default
:
bRet
=
false
;
}
return
bRet
;
}
bool
DomainMapperTableManager
::
sprm
(
Sprm
&
rSprm
)
bool
DomainMapperTableManager
::
sprm
(
Sprm
&
rSprm
)
{
{
...
@@ -318,13 +337,6 @@ bool DomainMapperTableManager::sprm(Sprm & rSprm)
...
@@ -318,13 +337,6 @@ bool DomainMapperTableManager::sprm(Sprm & rSprm)
m_nGridSpan
=
nIntValue
;
m_nGridSpan
=
nIntValue
;
}
}
break
;
break
;
case
NS_ooxml
:
:
LN_CT_TblPrBase_tblLook
:
{
TablePropertyMapPtr
pPropMap
(
new
TablePropertyMap
);
pPropMap
->
Insert
(
PROP_TBL_LOOK
,
uno
::
makeAny
(
nIntValue
));
insertTableProps
(
pPropMap
);
}
break
;
case
NS_ooxml
:
:
LN_CT_TcPrBase_textDirection
:
case
NS_ooxml
:
:
LN_CT_TcPrBase_textDirection
:
{
{
TablePropertyMapPtr
pPropMap
(
new
TablePropertyMap
);
TablePropertyMapPtr
pPropMap
(
new
TablePropertyMap
);
...
...
writerfilter/source/dmapper/DomainMapperTableManager.hxx
Dosyayı görüntüle @
65facd8c
...
@@ -81,6 +81,7 @@ public:
...
@@ -81,6 +81,7 @@ public:
inline
void
SetStyleProperties
(
PropertyMapPtr
pProperties
)
{
m_pStyleProps
=
pProperties
;
};
inline
void
SetStyleProperties
(
PropertyMapPtr
pProperties
)
{
m_pStyleProps
=
pProperties
;
};
virtual
bool
sprm
(
Sprm
&
rSprm
)
SAL_OVERRIDE
;
virtual
bool
sprm
(
Sprm
&
rSprm
)
SAL_OVERRIDE
;
bool
attribute
(
Id
nName
,
Value
&
val
);
virtual
void
startLevel
(
)
SAL_OVERRIDE
;
virtual
void
startLevel
(
)
SAL_OVERRIDE
;
virtual
void
endLevel
(
)
SAL_OVERRIDE
;
virtual
void
endLevel
(
)
SAL_OVERRIDE
;
...
...
writerfilter/source/ooxml/model.xml
Dosyayı görüntüle @
65facd8c
...
@@ -18377,7 +18377,7 @@
...
@@ -18377,7 +18377,7 @@
</optional>
</optional>
<optional>
<optional>
<element
name=
"tblLook"
>
<element
name=
"tblLook"
>
<ref
name=
"CT_
ShortHexNumber
"
/>
<ref
name=
"CT_
TblLook
"
/>
</element>
</element>
</optional>
</optional>
</define>
</define>
...
@@ -18458,6 +18458,29 @@
...
@@ -18458,6 +18458,29 @@
<ref
name=
"EG_ContentRowContent"
/>
<ref
name=
"EG_ContentRowContent"
/>
</zeroOrMore>
</zeroOrMore>
</define>
</define>
<define
name=
"CT_TblLook"
>
<attribute
name=
"firstRow"
>
<ref
name=
"ST_OnOff"
/>
</attribute>
<attribute
name=
"lastRow"
>
<ref
name=
"ST_OnOff"
/>
</attribute>
<attribute
name=
"firstColumn"
>
<ref
name=
"ST_OnOff"
/>
</attribute>
<attribute
name=
"lastColumn"
>
<ref
name=
"ST_OnOff"
/>
</attribute>
<attribute
name=
"noHBand"
>
<ref
name=
"ST_OnOff"
/>
</attribute>
<attribute
name=
"noVBand"
>
<ref
name=
"ST_OnOff"
/>
</attribute>
<attribute
name=
"val"
>
<ref
name=
"ST_ShortHexNumber"
/>
</attribute>
</define>
<define
name=
"ST_FtnPos"
>
<define
name=
"ST_FtnPos"
>
<choice>
<choice>
<!-- Footnotes Positioned at Page Bottom -->
<!-- Footnotes Positioned at Page Bottom -->
...
@@ -23171,6 +23194,15 @@
...
@@ -23171,6 +23194,15 @@
<action
name=
"end"
action=
"clearProps"
/>
<action
name=
"end"
action=
"clearProps"
/>
</resource>
</resource>
<resource
name=
"CT_Tbl"
resource=
"TextTable"
/>
<resource
name=
"CT_Tbl"
resource=
"TextTable"
/>
<resource
name=
"CT_TblLook"
resource=
"Properties"
>
<attribute
name=
"firstRow"
tokenid=
"ooxml:CT_TblLook_firstRow"
/>
<attribute
name=
"lastRow"
tokenid=
"ooxml:CT_TblLook_lastRow"
/>
<attribute
name=
"firstColumn"
tokenid=
"ooxml:CT_TblLook_firstColumn"
/>
<attribute
name=
"lastColumn"
tokenid=
"ooxml:CT_TblLook_lastColumn"
/>
<attribute
name=
"noHBand"
tokenid=
"ooxml:CT_TblLook_noHBand"
/>
<attribute
name=
"noVBand"
tokenid=
"ooxml:CT_TblLook_noVBand"
/>
<attribute
name=
"val"
tokenid=
"ooxml:CT_TblLook_val"
/>
</resource>
<resource
name=
"ST_FtnPos"
resource=
"List"
>
<resource
name=
"ST_FtnPos"
resource=
"List"
>
<value
tokenid=
"ooxml:Value_ST_FtnPos_pageBottom"
>
pageBottom
</value>
<value
tokenid=
"ooxml:Value_ST_FtnPos_pageBottom"
>
pageBottom
</value>
<value
tokenid=
"ooxml:Value_ST_FtnPos_beneathText"
>
beneathText
</value>
<value
tokenid=
"ooxml:Value_ST_FtnPos_beneathText"
>
beneathText
</value>
...
...
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