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
49279e75
Kaydet (Commit)
49279e75
authored
Eki 09, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: include SwNumRule in doc model xml dump
Change-Id: I1f3ef757f76c88243c4be1f1a86042040eb524e8
üst
4e7495ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
7 deletions
+21
-7
numrule.hxx
sw/inc/numrule.hxx
+2
-0
nodedump.cxx
sw/source/core/docnode/nodedump.cxx
+19
-7
No files found.
sw/inc/numrule.hxx
Dosyayı görüntüle @
49279e75
...
...
@@ -29,6 +29,7 @@
#include <hints.hxx>
#include <boost/unordered_map.hpp>
#include <SwNumberTreeTypes.hxx>
#include <ndarr.hxx>
#include <vector>
class
SwTxtFmtColl
;
...
...
@@ -269,6 +270,7 @@ public:
void
SetIndentOfFirstListLevelAndChangeOthers
(
const
short
nNewIndent
);
void
Validate
();
void
dumpAsXml
(
xmlTextWriterPtr
w
);
};
/// namespace for static functions and methods for numbering and bullets
...
...
sw/source/core/docnode/nodedump.cxx
Dosyayı görüntüle @
49279e75
...
...
@@ -296,13 +296,14 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
boost
::
optional
<
sal_Int32
>
oValue
;
switch
(
pItem
->
Which
())
{
case
RES_CHRATR_POSTURE
:
pWhich
=
"posture"
;
break
;
case
RES_CHRATR_WEIGHT
:
pWhich
=
"weight"
;
break
;
case
RES_CHRATR_CJK_POSTURE
:
pWhich
=
"cjk posture"
;
break
;
case
RES_CHRATR_CJK_WEIGHT
:
pWhich
=
"cjk weight"
;
break
;
case
RES_CHRATR_CTL_POSTURE
:
pWhich
=
"ctl posture"
;
break
;
case
RES_CHRATR_CTL_WEIGHT
:
pWhich
=
"ctl weight"
;
break
;
case
RES_PARATR_OUTLINELEVEL
:
pWhich
=
"outline level"
;
oValue
=
static_cast
<
const
SfxUInt16Item
*>
(
pItem
)
->
GetValue
();
break
;
case
RES_CHRATR_POSTURE
:
pWhich
=
"character posture"
;
break
;
case
RES_CHRATR_WEIGHT
:
pWhich
=
"character weight"
;
break
;
case
RES_CHRATR_CJK_POSTURE
:
pWhich
=
"character cjk posture"
;
break
;
case
RES_CHRATR_CJK_WEIGHT
:
pWhich
=
"character cjk weight"
;
break
;
case
RES_CHRATR_CTL_POSTURE
:
pWhich
=
"character ctl posture"
;
break
;
case
RES_CHRATR_CTL_WEIGHT
:
pWhich
=
"character ctl weight"
;
break
;
case
RES_CHRATR_RSID
:
pWhich
=
"character rsid"
;
break
;
case
RES_PARATR_OUTLINELEVEL
:
pWhich
=
"paragraph outline level"
;
oValue
=
static_cast
<
const
SfxUInt16Item
*>
(
pItem
)
->
GetValue
();
break
;
}
if
(
pWhich
)
writer
.
writeFormatAttribute
(
"which"
,
"%s"
,
BAD_CAST
(
pWhich
));
...
...
@@ -333,6 +334,15 @@ void SwTxtFmtColls::dumpAsXml(xmlTextWriterPtr w)
}
}
void
SwNumRule
::
dumpAsXml
(
xmlTextWriterPtr
w
)
{
WriterHelper
writer
(
w
);
writer
.
startElement
(
"swnumrule"
);
OString
aName
=
OUStringToOString
(
GetName
(),
RTL_TEXTENCODING_UTF8
);
writer
.
writeFormatAttribute
(
"name"
,
"%s"
,
BAD_CAST
(
aName
.
getStr
()));
writer
.
endElement
();
}
void
SwTxtNode
::
dumpAsXml
(
xmlTextWriterPtr
w
)
{
WriterHelper
writer
(
w
);
...
...
@@ -382,6 +392,8 @@ void SwTxtNode::dumpAsXml( xmlTextWriterPtr w )
}
writer
.
endElement
();
}
if
(
GetNumRule
())
GetNumRule
()
->
dumpAsXml
(
w
);
writer
.
endElement
();
}
...
...
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