openoffice-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Regina Henschel <rb.hensc...@t-online.de>
Subject Need help to understand code "moVert.get( XML_horz ) != XML_horz"
Date Thu, 24 Apr 2014 16:36:26 GMT
Hi all,

in file trunk\main\oox\source\drawingml\textbodyproperties.cxx
there is the part

void TextBodyProperties::pushToPropMap( PropertyMap& rPropMap ) const
{
     rPropMap.insert( maPropertyMap.begin(), maPropertyMap.end() );

     // #160799# fake different vertical text modes by top-bottom 
writing mode
     if( moVert.get( XML_horz ) != XML_horz )
         rPropMap[ PROP_TextWritingMode ] <<= 
::com::sun::star::text::WritingMode_TB_RL;
}

moVert is a member in
struct TextBodyProperties
{
     PropertyMap         maPropertyMap;
     OptValue< sal_Int32 > moRotation;
     OptValue< sal_Int32 > moVert;

     explicit            TextBodyProperties();

     void                pushToPropMap( PropertyMap& rPropMap ) const;
};
in file trunk\main\oox\inc\oox\drawingml\textbodyproperties.hxx

Why is it not simple
if (moVert != XML_horz)

Kind regards
Regina

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Mime
View raw message