Kaydet (Commit) 1820f9f2 authored tarafından Luboš Luňák's avatar Luboš Luňák

wp:anchor attributes do not have w: prefix

üst 57951b30
......@@ -2016,17 +2016,17 @@ void DocxAttributeOutput::FlyFrameGraphic( const SwGrfNode& rGrfNode, const Size
if( isAnchor )
{
::sax_fastparser::FastAttributeList* attrList = m_pSerializer->createAttrList();
attrList->add( FSNS( XML_w, XML_behindDoc ), rGrfNode.GetFlyFmt()->GetOpaque().GetValue() ? "0" : "1" );
attrList->add( FSNS( XML_w, XML_distT ), "0" );
attrList->add( FSNS( XML_w, XML_distB ), "0" );
attrList->add( FSNS( XML_w, XML_distL ), "0" );
attrList->add( FSNS( XML_w, XML_distR ), "0" );
attrList->add( FSNS( XML_w, XML_simplePos ), "0" );
attrList->add( FSNS( XML_w, XML_locked ), "0" );
attrList->add( FSNS( XML_w, XML_layoutInCell ), "1" );
attrList->add( FSNS( XML_w, XML_allowOverlap ), "1" ); // TODO
attrList->add( XML_behindDoc, rGrfNode.GetFlyFmt()->GetOpaque().GetValue() ? "0" : "1" );
attrList->add( XML_distT, "0" );
attrList->add( XML_distB, "0" );
attrList->add( XML_distL, "0" );
attrList->add( XML_distR, "0" );
attrList->add( XML_simplePos, "0" );
attrList->add( XML_locked, "0" );
attrList->add( XML_layoutInCell, "1" );
attrList->add( XML_allowOverlap, "1" ); // TODO
if( const SdrObject* pObj = rGrfNode.GetFlyFmt()->FindRealSdrObject())
attrList->add( FSNS( XML_w, XML_relativeHeight ), OString::valueOf( sal_Int32( pObj->GetOrdNum())));
attrList->add( XML_relativeHeight, OString::valueOf( sal_Int32( pObj->GetOrdNum())));
m_pSerializer->startElementNS( XML_wp, XML_anchor, XFastAttributeListRef( attrList ));
m_pSerializer->singleElementNS( XML_wp, XML_simplePos, XML_x, "0", XML_y, "0", FSEND ); // required, unused
const char* relativeFromH;
......
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