LibreOffice Module sw (master) 1
|
#include <istyleaccess.hxx>
Public Types | |
enum | SwAutoStyleFamily { AUTO_STYLE_CHAR , AUTO_STYLE_RUBY , AUTO_STYLE_PARA , AUTO_STYLE_NOTXT } |
Public Member Functions | |
virtual | ~IStyleAccess () |
virtual std::shared_ptr< SfxItemSet > | getAutomaticStyle (const SfxItemSet &rSet, SwAutoStyleFamily eFamily, const OUString *pParentName=nullptr)=0 |
virtual void | getAllStyles (std::vector< std::shared_ptr< SfxItemSet > > &rStyles, SwAutoStyleFamily eFamily)=0 |
virtual std::shared_ptr< SfxItemSet > | getByName (const OUString &rName, SwAutoStyleFamily eFamily)=0 |
It's slow to iterate through a stylepool looking for a special name, but if the style has been inserted via "cacheAutomaticStyle" instead of "getAutomaticStyle", it's faster. More... | |
virtual std::shared_ptr< SfxItemSet > | cacheAutomaticStyle (const SfxItemSet &rSet, SwAutoStyleFamily eFamily)=0 |
insert the style to the pool and the cache (used during import) More... | |
virtual void | clearCaches ()=0 |
To release the cached styles (shared_pointer!) More... | |
Definition at line 27 of file istyleaccess.hxx.
Enumerator | |
---|---|
AUTO_STYLE_CHAR | |
AUTO_STYLE_RUBY | |
AUTO_STYLE_PARA | |
AUTO_STYLE_NOTXT |
Definition at line 30 of file istyleaccess.hxx.
|
inlinevirtual |
Definition at line 38 of file istyleaccess.hxx.
|
pure virtual |
insert the style to the pool and the cache (used during import)
Referenced by PropValuesToAutoStyleItemSet().
|
pure virtual |
To release the cached styles (shared_pointer!)
Referenced by XMLReader::Read().
|
pure virtual |
Referenced by SwXTextDocument::getDocumentLanguages(), and SwAutoStylesEnumImpl::SwAutoStylesEnumImpl().
|
pure virtual |
|
pure virtual |
It's slow to iterate through a stylepool looking for a special name, but if the style has been inserted via "cacheAutomaticStyle" instead of "getAutomaticStyle", it's faster.
Referenced by lcl_setAutoStyle().