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
718f155c
Kaydet (Commit)
718f155c
authored
Eki 25, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
DOCX export: table style export: initial cell hangling
Change-Id: I83ca33d87a016f8634ca6a87b81df20f6b4e0e30
üst
a2799e77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
1 deletion
+39
-1
docxattributeoutput.cxx
sw/source/filter/ww8/docxattributeoutput.cxx
+39
-1
No files found.
sw/source/filter/ww8/docxattributeoutput.cxx
Dosyayı görüntüle @
718f155c
...
@@ -2717,6 +2717,22 @@ void lcl_TableStyleTblCellMar(sax_fastparser::FSHelperPtr pSerializer, uno::Sequ
...
@@ -2717,6 +2717,22 @@ void lcl_TableStyleTblCellMar(sax_fastparser::FSHelperPtr pSerializer, uno::Sequ
pSerializer
->
endElementNS
(
XML_w
,
XML_tblCellMar
);
pSerializer
->
endElementNS
(
XML_w
,
XML_tblCellMar
);
}
}
/// Export of w:shd in a table style.
void
lcl_TableStyleShd
(
sax_fastparser
::
FSHelperPtr
pSerializer
,
uno
::
Sequence
<
beans
::
PropertyValue
>&
rShd
)
{
if
(
!
rShd
.
hasElements
())
return
;
sax_fastparser
::
FastAttributeList
*
pAttributeList
=
pSerializer
->
createAttrList
();
for
(
sal_Int32
i
=
0
;
i
<
rShd
.
getLength
();
++
i
)
{
if
(
rShd
[
i
].
Name
==
"val"
)
pAttributeList
->
add
(
FSNS
(
XML_w
,
XML_val
),
OUStringToOString
(
rShd
[
i
].
Value
.
get
<
OUString
>
(),
RTL_TEXTENCODING_UTF8
).
getStr
());
}
XFastAttributeListRef
xAttributeList
(
pAttributeList
);
pSerializer
->
singleElementNS
(
XML_w
,
XML_shd
,
xAttributeList
);
}
/// Export of w:tblInd in a table style.
/// Export of w:tblInd in a table style.
void
lcl_TableStyleTblInd
(
sax_fastparser
::
FSHelperPtr
pSerializer
,
uno
::
Sequence
<
beans
::
PropertyValue
>&
rTblInd
)
void
lcl_TableStyleTblInd
(
sax_fastparser
::
FSHelperPtr
pSerializer
,
uno
::
Sequence
<
beans
::
PropertyValue
>&
rTblInd
)
{
{
...
@@ -2770,12 +2786,31 @@ void lcl_TableStyleTblPr(sax_fastparser::FSHelperPtr pSerializer, uno::Sequence<
...
@@ -2770,12 +2786,31 @@ void lcl_TableStyleTblPr(sax_fastparser::FSHelperPtr pSerializer, uno::Sequence<
pSerializer
->
endElementNS
(
XML_w
,
XML_tblPr
);
pSerializer
->
endElementNS
(
XML_w
,
XML_tblPr
);
}
}
/// Export of w:tcPr in a table style.
void
lcl_TableStyleTcPr
(
sax_fastparser
::
FSHelperPtr
pSerializer
,
uno
::
Sequence
<
beans
::
PropertyValue
>&
rTcPr
)
{
if
(
!
rTcPr
.
hasElements
())
return
;
pSerializer
->
startElementNS
(
XML_w
,
XML_tcPr
,
FSEND
);
uno
::
Sequence
<
beans
::
PropertyValue
>
aShd
;
for
(
sal_Int32
i
=
0
;
i
<
rTcPr
.
getLength
();
++
i
)
{
if
(
rTcPr
[
i
].
Name
==
"shd"
)
aShd
=
rTcPr
[
i
].
Value
.
get
<
uno
::
Sequence
<
beans
::
PropertyValue
>
>
();
}
lcl_TableStyleShd
(
pSerializer
,
aShd
);
pSerializer
->
endElementNS
(
XML_w
,
XML_tcPr
);
}
void
DocxAttributeOutput
::
TableStyle
(
uno
::
Sequence
<
beans
::
PropertyValue
>&
rStyle
)
void
DocxAttributeOutput
::
TableStyle
(
uno
::
Sequence
<
beans
::
PropertyValue
>&
rStyle
)
{
{
bool
bDefault
=
false
,
bCustomStyle
=
false
,
bQFormat
=
false
;
bool
bDefault
=
false
,
bCustomStyle
=
false
,
bQFormat
=
false
;
OUString
aStyleId
,
aName
,
aBasedOn
;
OUString
aStyleId
,
aName
,
aBasedOn
;
sal_Int32
nUiPriority
=
0
,
nRsid
=
0
;
sal_Int32
nUiPriority
=
0
,
nRsid
=
0
;
uno
::
Sequence
<
beans
::
PropertyValue
>
aTblPr
;
uno
::
Sequence
<
beans
::
PropertyValue
>
aTblPr
,
aTcPr
;
for
(
sal_Int32
i
=
0
;
i
<
rStyle
.
getLength
();
++
i
)
for
(
sal_Int32
i
=
0
;
i
<
rStyle
.
getLength
();
++
i
)
{
{
if
(
rStyle
[
i
].
Name
==
"default"
)
if
(
rStyle
[
i
].
Name
==
"default"
)
...
@@ -2796,6 +2831,8 @@ void DocxAttributeOutput::TableStyle(uno::Sequence<beans::PropertyValue>& rStyle
...
@@ -2796,6 +2831,8 @@ void DocxAttributeOutput::TableStyle(uno::Sequence<beans::PropertyValue>& rStyle
nRsid
=
rStyle
[
i
].
Value
.
get
<
sal_Int32
>
();
nRsid
=
rStyle
[
i
].
Value
.
get
<
sal_Int32
>
();
else
if
(
rStyle
[
i
].
Name
==
"tblPr"
)
else
if
(
rStyle
[
i
].
Name
==
"tblPr"
)
aTblPr
=
rStyle
[
i
].
Value
.
get
<
uno
::
Sequence
<
beans
::
PropertyValue
>
>
();
aTblPr
=
rStyle
[
i
].
Value
.
get
<
uno
::
Sequence
<
beans
::
PropertyValue
>
>
();
else
if
(
rStyle
[
i
].
Name
==
"tcPr"
)
aTcPr
=
rStyle
[
i
].
Value
.
get
<
uno
::
Sequence
<
beans
::
PropertyValue
>
>
();
}
}
sax_fastparser
::
FastAttributeList
*
pAttributeList
=
m_pSerializer
->
createAttrList
();
sax_fastparser
::
FastAttributeList
*
pAttributeList
=
m_pSerializer
->
createAttrList
();
...
@@ -2835,6 +2872,7 @@ void DocxAttributeOutput::TableStyle(uno::Sequence<beans::PropertyValue>& rStyle
...
@@ -2835,6 +2872,7 @@ void DocxAttributeOutput::TableStyle(uno::Sequence<beans::PropertyValue>& rStyle
}
}
lcl_TableStyleTblPr
(
m_pSerializer
,
aTblPr
);
lcl_TableStyleTblPr
(
m_pSerializer
,
aTblPr
);
lcl_TableStyleTcPr
(
m_pSerializer
,
aTcPr
);
m_pSerializer
->
endElementNS
(
XML_w
,
XML_style
);
m_pSerializer
->
endElementNS
(
XML_w
,
XML_style
);
}
}
...
...
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