Kaydet (Commit) b32539d0 authored tarafından Miklos Vajna's avatar Miklos Vajna

sw: improve doc model xml dump of SwFmtAnchor

Change-Id: Icdfc370c4b525fd43d9d5935ff461534cf535233
üst 2ba698a2
...@@ -438,9 +438,30 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet) ...@@ -438,9 +438,30 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
{ {
pWhich = "frame anchor"; pWhich = "frame anchor";
const SwFmtAnchor* pAnchor = static_cast<const SwFmtAnchor*>(pItem); 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(); const SwPosition* pPosition = pAnchor->GetCntntAnchor();
if (pPosition) 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; break;
} }
case RES_SURROUND: case RES_SURROUND:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment