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
36f58d4d
Kaydet (Commit)
36f58d4d
authored
May 19, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw doc model xml dump: handle SwDoc::mpFrmFmtTbl
Change-Id: Ie15ff20524e7065323e681945bb5eaf199a2bf3a
üst
bb2f6e6c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
4 deletions
+32
-4
docary.hxx
sw/inc/docary.hxx
+1
-1
nodedump.cxx
sw/source/core/docnode/nodedump.cxx
+31
-3
No files found.
sw/inc/docary.hxx
Dosyayı görüntüle @
36f58d4d
...
@@ -81,7 +81,7 @@ public:
...
@@ -81,7 +81,7 @@ public:
virtual
SwFmt
*
GetFmt
(
size_t
idx
)
const
SAL_OVERRIDE
{
return
(
SwFmt
*
)
operator
[](
idx
);
}
virtual
SwFmt
*
GetFmt
(
size_t
idx
)
const
SAL_OVERRIDE
{
return
(
SwFmt
*
)
operator
[](
idx
);
}
sal_uInt16
GetPos
(
const
SwFrmFmt
*
pFmt
)
const
;
sal_uInt16
GetPos
(
const
SwFrmFmt
*
pFmt
)
const
;
bool
Contains
(
const
SwFrmFmt
*
pFmt
)
const
;
bool
Contains
(
const
SwFrmFmt
*
pFmt
)
const
;
void
dumpAsXml
(
xmlTextWriterPtr
w
);
void
dumpAsXml
(
xmlTextWriterPtr
w
,
const
char
*
pName
);
/// free's any remaining child objects
/// free's any remaining child objects
virtual
~
SwFrmFmts
();
virtual
~
SwFrmFmts
();
};
};
...
...
sw/source/core/docnode/nodedump.cxx
Dosyayı görüntüle @
36f58d4d
...
@@ -182,7 +182,8 @@ void SwDoc::dumpAsXml( xmlTextWriterPtr w )
...
@@ -182,7 +182,8 @@ void SwDoc::dumpAsXml( xmlTextWriterPtr w )
mpFldTypes
->
dumpAsXml
(
writer
);
mpFldTypes
->
dumpAsXml
(
writer
);
mpTxtFmtCollTbl
->
dumpAsXml
(
writer
);
mpTxtFmtCollTbl
->
dumpAsXml
(
writer
);
mpCharFmtTbl
->
dumpAsXml
(
writer
);
mpCharFmtTbl
->
dumpAsXml
(
writer
);
mpSpzFrmFmtTbl
->
dumpAsXml
(
writer
);
mpFrmFmtTbl
->
dumpAsXml
(
writer
,
"frmFmtTbl"
);
mpSpzFrmFmtTbl
->
dumpAsXml
(
writer
,
"spzFrmFmtTbl"
);
mpSectionFmtTbl
->
dumpAsXml
(
writer
);
mpSectionFmtTbl
->
dumpAsXml
(
writer
);
mpNumRuleTbl
->
dumpAsXml
(
writer
);
mpNumRuleTbl
->
dumpAsXml
(
writer
);
mpRedlineTbl
->
dumpAsXml
(
writer
);
mpRedlineTbl
->
dumpAsXml
(
writer
);
...
@@ -489,6 +490,24 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
...
@@ -489,6 +490,24 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
}
}
break
;
break
;
}
}
case
XATTR_FILLCOLOR
:
pWhich
=
"fill color"
;
break
;
case
XATTR_FILLBITMAP
:
pWhich
=
"fill bitmap"
;
break
;
case
XATTR_FILLTRANSPARENCE
:
pWhich
=
"fill transparence"
;
break
;
case
XATTR_FILLBMP_TILE
:
pWhich
=
"fill bitmap tile"
;
break
;
case
XATTR_FILLBMP_POS
:
pWhich
=
"fill bitmap position"
;
break
;
case
XATTR_FILLBMP_STRETCH
:
pWhich
=
"fill bitmap stretch"
;
break
;
case
RES_COL
:
case
RES_COL
:
{
{
pWhich
=
"columns formatting"
;
pWhich
=
"columns formatting"
;
...
@@ -505,6 +524,15 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
...
@@ -505,6 +524,15 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
case
RES_COLUMNBALANCE
:
case
RES_COLUMNBALANCE
:
pWhich
=
"column balance"
;
pWhich
=
"column balance"
;
break
;
break
;
case
RES_LR_SPACE
:
pWhich
=
"left-right space"
;
break
;
case
RES_UL_SPACE
:
pWhich
=
"upper-lower space"
;
break
;
case
RES_SHADOW
:
pWhich
=
"shadow"
;
break
;
}
}
if
(
pWhich
)
if
(
pWhich
)
writer
.
writeFormatAttribute
(
"which"
,
"%s"
,
BAD_CAST
(
pWhich
));
writer
.
writeFormatAttribute
(
"which"
,
"%s"
,
BAD_CAST
(
pWhich
));
...
@@ -515,12 +543,12 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
...
@@ -515,12 +543,12 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
}
}
}
}
void
SwFrmFmts
::
dumpAsXml
(
xmlTextWriterPtr
w
)
void
SwFrmFmts
::
dumpAsXml
(
xmlTextWriterPtr
w
,
const
char
*
pName
)
{
{
WriterHelper
writer
(
w
);
WriterHelper
writer
(
w
);
if
(
size
())
if
(
size
())
{
{
writer
.
startElement
(
"swfrmfmts"
);
writer
.
startElement
(
pName
);
for
(
size_t
i
=
0
;
i
<
size
();
++
i
)
for
(
size_t
i
=
0
;
i
<
size
();
++
i
)
{
{
SwFrmFmt
*
pFmt
=
static_cast
<
SwFrmFmt
*>
(
GetFmt
(
i
));
SwFrmFmt
*
pFmt
=
static_cast
<
SwFrmFmt
*>
(
GetFmt
(
i
));
...
...
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