LibreOffice Module sw (master)  1
Public Types | Public Member Functions | List of all members
IStyleAccess Class Referenceabstract

#include <istyleaccess.hxx>

Inheritance diagram for IStyleAccess:
[legend]

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< SfxItemSetgetAutomaticStyle (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< SfxItemSetgetByName (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< SfxItemSetcacheAutomaticStyle (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...
 

Detailed Description

Definition at line 25 of file istyleaccess.hxx.

Member Enumeration Documentation

Enumerator
AUTO_STYLE_CHAR 
AUTO_STYLE_RUBY 
AUTO_STYLE_PARA 
AUTO_STYLE_NOTXT 

Definition at line 28 of file istyleaccess.hxx.

Constructor & Destructor Documentation

virtual IStyleAccess::~IStyleAccess ( )
inlinevirtual

Definition at line 36 of file istyleaccess.hxx.

Member Function Documentation

virtual std::shared_ptr<SfxItemSet> IStyleAccess::cacheAutomaticStyle ( const SfxItemSet rSet,
SwAutoStyleFamily  eFamily 
)
pure virtual

insert the style to the pool and the cache (used during import)

Implemented in SwStyleManager.

Referenced by SwXAutoStyleFamily::insertStyle().

virtual void IStyleAccess::clearCaches ( )
pure virtual

To release the cached styles (shared_pointer!)

Implemented in SwStyleManager.

Referenced by XMLReader::Read().

virtual void IStyleAccess::getAllStyles ( std::vector< std::shared_ptr< SfxItemSet >> &  rStyles,
SwAutoStyleFamily  eFamily 
)
pure virtual
virtual std::shared_ptr<SfxItemSet> IStyleAccess::getAutomaticStyle ( const SfxItemSet rSet,
SwAutoStyleFamily  eFamily,
const OUString *  pParentName = nullptr 
)
pure virtual
virtual std::shared_ptr<SfxItemSet> IStyleAccess::getByName ( const OUString &  rName,
SwAutoStyleFamily  eFamily 
)
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.

Implemented in SwStyleManager.

Referenced by lcl_setAutoStyle().


The documentation for this class was generated from the following file: