70 :m_strStyleNamePrefix(
std::move(strStyleNamePrefix))
94 if( pStyle->GetStyleName().isEmpty() )
106 if( pStyle->GetStyleName().isEmpty() )
109 pStyle->SetStyleName(
name);
113 name = pStyle->GetStyleName();
118 pStyle->SetStyleName(
name);
134 if( style->Equal(pStyle) )
146 if( style->GetStyleName() ==
name )
184 if( !pStyleFont.is() )
190 if( pFactoryFont.is() )
196 pFontFactory->
AddFont(pStyleFont);
203 if( !pStyleFont.is() )
209 if( pFactoryFont.is() )
215 pFontFactory->
AddFont(pStyleFont);
235 if( !pS1->
Equal(pS2) )
Stream wrapper for sax writer.
@descr Interface for all style object.
virtual enumXFStyle GetStyleFamily()=0
@descr: return the style family.
virtual bool Equal(IXFStyle *pStyle)=0
@descr: Compare whatever two style object are the same.
static LwpGlobalMgr * GetInstance(LwpSvStream *pSvStream=nullptr)
XFFontFactory * GetXFFontFactory()
void AddFont(rtl::Reference< XFFont > const &pFont)
@descr Add a font.
rtl::Reference< XFFont > FindSameFont(rtl::Reference< XFFont > const &pFont)
@descr Find whether same font object exists.
Style object for aragraph.
const rtl::Reference< XFFont > & GetFont() const
@descr get the font object.
void SetFont(rtl::Reference< XFFont > const &font)
@descr set the paragraph default font.
@descr container object for styles.
OUString m_strStyleNamePrefix
IXFStyle * FindSameStyle(IXFStyle *pStyle)
@descr Find the same style.
IXFStyleRet AddStyle(std::unique_ptr< IXFStyle > pStyle)
@descr Add style to container.
std::vector< std::unique_ptr< IXFStyle > > m_aStyles
void Reset()
@descr clear container.
virtual void ToXml(IXFStream *pStrm)
@descr Output all style.
const IXFStyle * Item(size_t index) const
@descr get style by index.
virtual ~XFStyleContainer()
static void ManageStyleFont(IXFStyle *pStyle)
IXFStyle * FindStyle(std::u16string_view name)
@descr get style by name.
void SetFont(rtl::Reference< XFFont > const &font)
@descr: set the font for the text span.
const rtl::Reference< XFFont > & GetFont() const
bool operator==(XFStyleContainer &b1, XFStyleContainer &b2)
bool operator!=(XFStyleContainer &b1, XFStyleContainer &b2)