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

#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< 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 27 of file istyleaccess.hxx.

Member Enumeration Documentation

◆ SwAutoStyleFamily

Enumerator
AUTO_STYLE_CHAR 
AUTO_STYLE_RUBY 
AUTO_STYLE_PARA 
AUTO_STYLE_NOTXT 

Definition at line 30 of file istyleaccess.hxx.

Constructor & Destructor Documentation

◆ ~IStyleAccess()

virtual IStyleAccess::~IStyleAccess ( )
inlinevirtual

Definition at line 38 of file istyleaccess.hxx.

Member Function Documentation

◆ cacheAutomaticStyle()

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)

Referenced by PropValuesToAutoStyleItemSet().

◆ clearCaches()

virtual void IStyleAccess::clearCaches ( )
pure virtual

To release the cached styles (shared_pointer!)

Referenced by XMLReader::Read().

◆ getAllStyles()

virtual void IStyleAccess::getAllStyles ( std::vector< std::shared_ptr< SfxItemSet > > &  rStyles,
SwAutoStyleFamily  eFamily 
)
pure virtual

◆ getAutomaticStyle()

virtual std::shared_ptr< SfxItemSet > IStyleAccess::getAutomaticStyle ( const SfxItemSet rSet,
SwAutoStyleFamily  eFamily,
const OUString *  pParentName = nullptr 
)
pure virtual

◆ getByName()

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.

Referenced by lcl_setAutoStyle().


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