diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-08-08 14:09:10 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-08-08 15:27:31 +0200 |
commit | b32539d065be7bc73154a52c6492b10050cadb9b (patch) | |
tree | c7c6c2ea8ea8618032af11c3b10e4d7118948e28 /sw | |
parent | 2ba698a293cd20e25da2f8417b46d3d9ec32a9b7 (diff) |
sw: improve doc model xml dump of SwFmtAnchor
Change-Id: Icdfc370c4b525fd43d9d5935ff461534cf535233
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/docnode/nodedump.cxx | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/sw/source/core/docnode/nodedump.cxx b/sw/source/core/docnode/nodedump.cxx index 159cdcd2e375..e082caffbff4 100644 --- a/sw/source/core/docnode/nodedump.cxx +++ b/sw/source/core/docnode/nodedump.cxx @@ -438,9 +438,30 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet) { pWhich = "frame anchor"; const SwFmtAnchor* pAnchor = static_cast<const SwFmtAnchor*>(pItem); + switch (pAnchor->GetAnchorId()) + { + case FLY_AT_PARA: + oValue = "anchor type: at-para"; + break; + case FLY_AS_CHAR: + oValue = "anchor type: as-char"; + break; + case FLY_AT_PAGE: + oValue = "anchor type: at-page"; + break; + case FLY_AT_FLY: + oValue = "anchor type: at-fly"; + break; + case FLY_AT_CHAR: + oValue = "anchor type: at-char"; + break; + default: + oValue = "anchor type: " + OString::number(pAnchor->GetAnchorId()); + break; + } const SwPosition* pPosition = pAnchor->GetCntntAnchor(); if (pPosition) - oValue = "node index: " + OString::number(pPosition->nNode.GetNode().GetIndex()) + ", index: " + OString::number(pPosition->nContent.GetIndex()); + oValue = *oValue + ", node index: " + OString::number(pPosition->nNode.GetNode().GetIndex()) + ", index: " + OString::number(pPosition->nContent.GetIndex()); break; } case RES_SURROUND: |