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
dc08157d
Kaydet (Commit)
dc08157d
authored
Ara 20, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Factor out SwFmtFrmSize::dumpAsXml() from nodedump
Change-Id: Idcf24d40876230a0e34f2f816dfe414b4a143f53
üst
b1e0d30e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
8 deletions
+24
-8
fmtfsize.hxx
sw/inc/fmtfsize.hxx
+2
-0
nodedump.cxx
sw/source/core/docnode/nodedump.cxx
+3
-8
atrfrm.cxx
sw/source/core/layout/atrfrm.cxx
+19
-0
No files found.
sw/inc/fmtfsize.hxx
Dosyayı görüntüle @
dc08157d
...
@@ -97,6 +97,8 @@ public:
...
@@ -97,6 +97,8 @@ public:
void
SetHeightPercentRelation
(
sal_Int16
n
)
{
m_eHeightPercentRelation
=
n
;
}
void
SetHeightPercentRelation
(
sal_Int16
n
)
{
m_eHeightPercentRelation
=
n
;
}
void
SetWidthPercent
(
sal_uInt8
n
)
{
m_nWidthPercent
=
n
;
}
void
SetWidthPercent
(
sal_uInt8
n
)
{
m_nWidthPercent
=
n
;
}
void
SetWidthPercentRelation
(
sal_Int16
n
)
{
m_eWidthPercentRelation
=
n
;
}
void
SetWidthPercentRelation
(
sal_Int16
n
)
{
m_eWidthPercentRelation
=
n
;
}
void
dumpAsXml
(
struct
_xmlTextWriter
*
pWriter
)
const
;
};
};
inline
const
SwFmtFrmSize
&
SwAttrSet
::
GetFrmSize
(
bool
bInP
)
const
inline
const
SwFmtFrmSize
&
SwAttrSet
::
GetFrmSize
(
bool
bInP
)
const
...
...
sw/source/core/docnode/nodedump.cxx
Dosyayı görüntüle @
dc08157d
...
@@ -426,6 +426,9 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
...
@@ -426,6 +426,9 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
case
RES_CNTNT
:
case
RES_CNTNT
:
static_cast
<
const
SwFmtCntnt
*>
(
pItem
)
->
dumpAsXml
(
writer
);
static_cast
<
const
SwFmtCntnt
*>
(
pItem
)
->
dumpAsXml
(
writer
);
break
;
break
;
case
RES_FRM_SIZE
:
static_cast
<
const
SwFmtFrmSize
*>
(
pItem
)
->
dumpAsXml
(
writer
);
break
;
default
:
bDone
=
false
;
break
;
default
:
bDone
=
false
;
break
;
}
}
if
(
bDone
)
if
(
bDone
)
...
@@ -440,14 +443,6 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
...
@@ -440,14 +443,6 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
boost
::
optional
<
OString
>
oValue
;
boost
::
optional
<
OString
>
oValue
;
switch
(
pItem
->
Which
())
switch
(
pItem
->
Which
())
{
{
case
RES_FRM_SIZE
:
{
pWhich
=
"frame size"
;
const
SwFmtFrmSize
*
pSize
=
static_cast
<
const
SwFmtFrmSize
*>
(
pItem
);
oValue
=
"height size type: "
+
OString
::
number
(
pSize
->
GetHeightSizeType
())
+
", height: "
+
OString
::
number
(
pSize
->
GetHeight
())
+
", width size type: "
+
OString
::
number
(
pSize
->
GetWidthSizeType
())
+
", width: "
+
OString
::
number
(
pSize
->
GetWidth
());
break
;
}
case
RES_VERT_ORIENT
:
case
RES_VERT_ORIENT
:
{
{
pWhich
=
"frame vertical orientation"
;
pWhich
=
"frame vertical orientation"
;
...
...
sw/source/core/layout/atrfrm.cxx
Dosyayı görüntüle @
dc08157d
...
@@ -411,6 +411,25 @@ bool SwFmtFrmSize::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
...
@@ -411,6 +411,25 @@ bool SwFmtFrmSize::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
return
bRet
;
return
bRet
;
}
}
void
SwFmtFrmSize
::
dumpAsXml
(
xmlTextWriterPtr
pWriter
)
const
{
xmlTextWriterStartElement
(
pWriter
,
BAD_CAST
(
"swFmtFrmSize"
));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"whichId"
),
BAD_CAST
(
OString
::
number
(
Which
()).
getStr
()));
std
::
stringstream
aSize
;
aSize
<<
m_aSize
;
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"size"
),
BAD_CAST
(
aSize
.
str
().
c_str
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"eFrmHeightType"
),
BAD_CAST
(
OString
::
number
(
m_eFrmHeightType
).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"eFrmWidthType"
),
BAD_CAST
(
OString
::
number
(
m_eFrmWidthType
).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"nWidthPercent"
),
BAD_CAST
(
OString
::
number
(
m_nWidthPercent
).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"eWidthPercentRelation"
),
BAD_CAST
(
OString
::
number
(
m_eWidthPercentRelation
).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"nHeightPercent"
),
BAD_CAST
(
OString
::
number
(
m_nHeightPercent
).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"eHeightPercentRelation"
),
BAD_CAST
(
OString
::
number
(
m_eHeightPercentRelation
).
getStr
()));
xmlTextWriterEndElement
(
pWriter
);
}
// Partially implemented inline in hxx
// Partially implemented inline in hxx
SwFmtFillOrder
::
SwFmtFillOrder
(
SwFillOrder
nFO
)
SwFmtFillOrder
::
SwFmtFillOrder
(
SwFillOrder
nFO
)
:
SfxEnumItem
(
RES_FILL_ORDER
,
sal_uInt16
(
nFO
)
)
:
SfxEnumItem
(
RES_FILL_ORDER
,
sal_uInt16
(
nFO
)
)
...
...
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