void GeomX::CopyAttributes ( GeomX& src ) { GeomAttr* attr; ClearAttributes (); int a; for (int n = 0; n < src.GetNumAttr(); n++) { attr = src.GetAttribute ( n ); a = AddAttribute ( (uchar) attr->buf, attr->name, attr->stride, false ); mAttribute[a].offset = attr->offset; } }
/* sText is UTF-8. If not all of the characters in sText are available in the * font, sAlternateText will be used instead. If there are unavailable characters * in sAlternateText, too, just use sText. */ void BitmapText::SetText( const RString& _sText, const RString& _sAlternateText, int iWrapWidthPixels ) { ASSERT( m_pFont != NULL ); RString sNewText = StringWillUseAlternate(_sText,_sAlternateText) ? _sAlternateText : _sText; if( m_bUppercase ) sNewText.MakeUpper(); if( iWrapWidthPixels == -1 ) // wrap not specified iWrapWidthPixels = m_iWrapWidthPixels; if( m_sText == sNewText && iWrapWidthPixels==m_iWrapWidthPixels ) return; m_sText = sNewText; m_iWrapWidthPixels = iWrapWidthPixels; ClearAttributes(); SetTextInternal(); }
wxSimpleHtmlTag::~wxSimpleHtmlTag() { ClearAttributes(); ClearChildren(); }
Entity::~Entity() { ClearAttributes(); }