Kaydet (Commit) b07fac2f authored tarafından Michael Stahl's avatar Michael Stahl

oox: rename misleadingly prefixed m_pShapeStyle

Change-Id: I07fdc4fff2dd05b57d1a0635d0bed8d1afd6dc58
üst cdff2caf
...@@ -99,7 +99,7 @@ class OOX_DLLPUBLIC VMLExport : public EscherEx ...@@ -99,7 +99,7 @@ class OOX_DLLPUBLIC VMLExport : public EscherEx
sal_uInt32 m_nShapeFlags; sal_uInt32 m_nShapeFlags;
/// Remember style, the most important shape attribute ;-) /// Remember style, the most important shape attribute ;-)
OStringBuffer m_pShapeStyle; OStringBuffer m_ShapeStyle;
/// Remember which shape types we had already written. /// Remember which shape types we had already written.
bool *m_pShapeTypeWritten; bool *m_pShapeTypeWritten;
......
...@@ -64,7 +64,7 @@ VMLExport::VMLExport( ::sax_fastparser::FSHelperPtr const & pSerializer, VMLText ...@@ -64,7 +64,7 @@ VMLExport::VMLExport( ::sax_fastparser::FSHelperPtr const & pSerializer, VMLText
, m_pShapeAttrList( nullptr ) , m_pShapeAttrList( nullptr )
, m_nShapeType( ESCHER_ShpInst_Nil ) , m_nShapeType( ESCHER_ShpInst_Nil )
, m_nShapeFlags(0) , m_nShapeFlags(0)
, m_pShapeStyle( 200 ) , m_ShapeStyle( 200 )
, m_pShapeTypeWritten( new bool[ ESCHER_ShpInst_COUNT ] ) , m_pShapeTypeWritten( new bool[ ESCHER_ShpInst_COUNT ] )
{ {
mnGroupLevel = 1; mnGroupLevel = 1;
...@@ -98,10 +98,10 @@ void VMLExport::OpenContainer( sal_uInt16 nEscherContainer, int nRecInstance ) ...@@ -98,10 +98,10 @@ void VMLExport::OpenContainer( sal_uInt16 nEscherContainer, int nRecInstance )
m_nShapeType = ESCHER_ShpInst_Nil; m_nShapeType = ESCHER_ShpInst_Nil;
m_pShapeAttrList = FastSerializerHelper::createAttrList(); m_pShapeAttrList = FastSerializerHelper::createAttrList();
if ( !m_pShapeStyle.isEmpty() ) if (!m_ShapeStyle.isEmpty())
m_pShapeStyle.setLength(0); m_ShapeStyle.setLength(0);
m_pShapeStyle.ensureCapacity( 200 ); m_ShapeStyle.ensureCapacity(200);
// postpone the output so that we are able to write even the elements // postpone the output so that we are able to write even the elements
// that we learn inside Commit() // that we learn inside Commit()
...@@ -370,7 +370,7 @@ void VMLExport::Commit( EscherPropertyContainer& rProps, const Rectangle& rRect ...@@ -370,7 +370,7 @@ void VMLExport::Commit( EscherPropertyContainer& rProps, const Rectangle& rRect
if ( m_nShapeType == ESCHER_ShpInst_Line ) if ( m_nShapeType == ESCHER_ShpInst_Line )
AddLineDimensions( rRect ); AddLineDimensions( rRect );
else else
AddRectangleDimensions( m_pShapeStyle, rRect ); AddRectangleDimensions( m_ShapeStyle, rRect );
// properties // properties
bool bAlreadyWritten[ 0xFFF ]; bool bAlreadyWritten[ 0xFFF ];
...@@ -761,7 +761,7 @@ void VMLExport::Commit( EscherPropertyContainer& rProps, const Rectangle& rRect ...@@ -761,7 +761,7 @@ void VMLExport::Commit( EscherPropertyContainer& rProps, const Rectangle& rRect
case ESCHER_Prop_fHidden: case ESCHER_Prop_fHidden:
if ( !it->nPropValue ) if ( !it->nPropValue )
m_pShapeStyle.append( ";visibility:hidden" ); m_ShapeStyle.append( ";visibility:hidden" );
break; break;
case ESCHER_Prop_shadowColor: case ESCHER_Prop_shadowColor:
case ESCHER_Prop_fshadowObscured: case ESCHER_Prop_fshadowObscured:
...@@ -830,7 +830,7 @@ void VMLExport::Commit( EscherPropertyContainer& rProps, const Rectangle& rRect ...@@ -830,7 +830,7 @@ void VMLExport::Commit( EscherPropertyContainer& rProps, const Rectangle& rRect
case ESCHER_Prop_Rotation: case ESCHER_Prop_Rotation:
{ {
// The higher half of the variable contains the angle. // The higher half of the variable contains the angle.
m_pShapeStyle.append(";rotation:").append(double(it->nPropValue >> 16)); m_ShapeStyle.append(";rotation:").append(double(it->nPropValue >> 16));
bAlreadyWritten[ESCHER_Prop_Rotation] = true; bAlreadyWritten[ESCHER_Prop_Rotation] = true;
} }
break; break;
...@@ -887,19 +887,19 @@ void VMLExport::AddFlipXY( ) ...@@ -887,19 +887,19 @@ void VMLExport::AddFlipXY( )
const sal_uInt32 nFlipHandV = SHAPEFLAG_FLIPH + SHAPEFLAG_FLIPV; const sal_uInt32 nFlipHandV = SHAPEFLAG_FLIPH + SHAPEFLAG_FLIPV;
switch ( m_nShapeFlags & nFlipHandV ) switch ( m_nShapeFlags & nFlipHandV )
{ {
case SHAPEFLAG_FLIPH: m_pShapeStyle.append( ";flip:x" ); break; case SHAPEFLAG_FLIPH: m_ShapeStyle.append( ";flip:x" ); break;
case SHAPEFLAG_FLIPV: m_pShapeStyle.append( ";flip:y" ); break; case SHAPEFLAG_FLIPV: m_ShapeStyle.append( ";flip:y" ); break;
case nFlipHandV: m_pShapeStyle.append( ";flip:xy" ); break; case nFlipHandV: m_ShapeStyle.append( ";flip:xy" ); break;
} }
} }
void VMLExport::AddLineDimensions( const Rectangle& rRectangle ) void VMLExport::AddLineDimensions( const Rectangle& rRectangle )
{ {
// style // style
if ( !m_pShapeStyle.isEmpty() ) if (!m_ShapeStyle.isEmpty())
m_pShapeStyle.append( ";" ); m_ShapeStyle.append( ";" );
m_pShapeStyle.append( "position:absolute" ); m_ShapeStyle.append( "position:absolute" );
AddFlipXY(); AddFlipXY();
...@@ -1060,19 +1060,19 @@ sal_Int32 VMLExport::StartShape() ...@@ -1060,19 +1060,19 @@ sal_Int32 VMLExport::StartShape()
switch (m_eHOri) switch (m_eHOri)
{ {
case text::HoriOrientation::LEFT: case text::HoriOrientation::LEFT:
m_pShapeStyle.append(";mso-position-horizontal:left"); m_ShapeStyle.append(";mso-position-horizontal:left");
break; break;
case text::HoriOrientation::CENTER: case text::HoriOrientation::CENTER:
m_pShapeStyle.append(";mso-position-horizontal:center"); m_ShapeStyle.append(";mso-position-horizontal:center");
break; break;
case text::HoriOrientation::RIGHT: case text::HoriOrientation::RIGHT:
m_pShapeStyle.append(";mso-position-horizontal:right"); m_ShapeStyle.append(";mso-position-horizontal:right");
break; break;
case text::HoriOrientation::INSIDE: case text::HoriOrientation::INSIDE:
m_pShapeStyle.append(";mso-position-horizontal:inside"); m_ShapeStyle.append(";mso-position-horizontal:inside");
break; break;
case text::HoriOrientation::OUTSIDE: case text::HoriOrientation::OUTSIDE:
m_pShapeStyle.append(";mso-position-horizontal:outside"); m_ShapeStyle.append(";mso-position-horizontal:outside");
break; break;
default: default:
case text::HoriOrientation::NONE: case text::HoriOrientation::NONE:
...@@ -1081,15 +1081,15 @@ sal_Int32 VMLExport::StartShape() ...@@ -1081,15 +1081,15 @@ sal_Int32 VMLExport::StartShape()
switch (m_eHRel) switch (m_eHRel)
{ {
case text::RelOrientation::PAGE_PRINT_AREA: case text::RelOrientation::PAGE_PRINT_AREA:
m_pShapeStyle.append(";mso-position-horizontal-relative:margin"); m_ShapeStyle.append(";mso-position-horizontal-relative:margin");
break; break;
case text::RelOrientation::PAGE_FRAME: case text::RelOrientation::PAGE_FRAME:
case text::RelOrientation::PAGE_LEFT: case text::RelOrientation::PAGE_LEFT:
case text::RelOrientation::PAGE_RIGHT: case text::RelOrientation::PAGE_RIGHT:
m_pShapeStyle.append(";mso-position-horizontal-relative:page"); m_ShapeStyle.append(";mso-position-horizontal-relative:page");
break; break;
case text::RelOrientation::CHAR: case text::RelOrientation::CHAR:
m_pShapeStyle.append(";mso-position-horizontal-relative:char"); m_ShapeStyle.append(";mso-position-horizontal-relative:char");
break; break;
default: default:
break; break;
...@@ -1100,16 +1100,16 @@ sal_Int32 VMLExport::StartShape() ...@@ -1100,16 +1100,16 @@ sal_Int32 VMLExport::StartShape()
case text::VertOrientation::TOP: case text::VertOrientation::TOP:
case text::VertOrientation::LINE_TOP: case text::VertOrientation::LINE_TOP:
case text::VertOrientation::CHAR_TOP: case text::VertOrientation::CHAR_TOP:
m_pShapeStyle.append(";mso-position-vertical:top"); m_ShapeStyle.append(";mso-position-vertical:top");
break; break;
case text::VertOrientation::CENTER: case text::VertOrientation::CENTER:
case text::VertOrientation::LINE_CENTER: case text::VertOrientation::LINE_CENTER:
m_pShapeStyle.append(";mso-position-vertical:center"); m_ShapeStyle.append(";mso-position-vertical:center");
break; break;
case text::VertOrientation::BOTTOM: case text::VertOrientation::BOTTOM:
case text::VertOrientation::LINE_BOTTOM: case text::VertOrientation::LINE_BOTTOM:
case text::VertOrientation::CHAR_BOTTOM: case text::VertOrientation::CHAR_BOTTOM:
m_pShapeStyle.append(";mso-position-vertical:bottom"); m_ShapeStyle.append(";mso-position-vertical:bottom");
break; break;
default: default:
case text::VertOrientation::NONE: case text::VertOrientation::NONE:
...@@ -1118,17 +1118,17 @@ sal_Int32 VMLExport::StartShape() ...@@ -1118,17 +1118,17 @@ sal_Int32 VMLExport::StartShape()
switch (m_eVRel) switch (m_eVRel)
{ {
case text::RelOrientation::PAGE_PRINT_AREA: case text::RelOrientation::PAGE_PRINT_AREA:
m_pShapeStyle.append(";mso-position-vertical-relative:margin"); m_ShapeStyle.append(";mso-position-vertical-relative:margin");
break; break;
case text::RelOrientation::PAGE_FRAME: case text::RelOrientation::PAGE_FRAME:
m_pShapeStyle.append(";mso-position-vertical-relative:page"); m_ShapeStyle.append(";mso-position-vertical-relative:page");
break; break;
default: default:
break; break;
} }
// add style // add style
m_pShapeAttrList->add( XML_style, m_pShapeStyle.makeStringAndClear() ); m_pShapeAttrList->add( XML_style, m_ShapeStyle.makeStringAndClear() );
OUString sAnchorId = lcl_getAnchorIdFromGrabBag(m_pSdrObject); OUString sAnchorId = lcl_getAnchorIdFromGrabBag(m_pSdrObject);
if (!sAnchorId.isEmpty()) if (!sAnchorId.isEmpty())
......
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