diff options
Diffstat (limited to 'sw/source/core/docnode/nodedump.cxx')
-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: |