LibreOffice Module sw (master)  1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
SwXStyleFamilies Class Reference

#include <unostyle.hxx>

Inheritance diagram for SwXStyleFamilies:
[legend]
Collaboration diagram for SwXStyleFamilies:
[legend]

Public Member Functions

 SwXStyleFamilies (SwDocShell &rDocShell)
 
virtual css::uno::Any SAL_CALL getByName (const OUString &Name) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames () override
 
virtual sal_Bool SAL_CALL hasByName (const OUString &Name) override
 
virtual sal_Int32 SAL_CALL getCount () override
 
virtual css::uno::Any SAL_CALL getByIndex (sal_Int32 nIndex) override
 
virtual css::uno::Type SAL_CALL getElementType () override
 
virtual sal_Bool SAL_CALL hasElements () override
 
virtual void SAL_CALL loadStylesFromURL (const OUString &rURL, const css::uno::Sequence< css::beans::PropertyValue > &aOptions) override
 
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getStyleLoaderOptions () override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
- Public Member Functions inherited from SwUnoCollection
 SwUnoCollection (SwDoc *p)
 
virtual ~SwUnoCollection ()
 
virtual void Invalidate ()
 
bool IsValid () const
 
SwDocGetDoc () const
 

Static Public Member Functions

static css::uno::Reference< css::style::XStyle > CreateStyle (SfxStyleFamily eFamily, SwDoc &rDoc)
 
static css::uno::Reference< css::style::XStyle > CreateStyleCondParagraph (SwDoc &rDoc)
 

Protected Member Functions

virtual ~SwXStyleFamilies () override
 

Private Attributes

SwDocShellm_pDocShell
 
std::map< SfxStyleFamily, css::uno::Reference< css::container::XNameContainer > > m_vFamilies
 

Detailed Description

Definition at line 47 of file unostyle.hxx.

Constructor & Destructor Documentation

SwXStyleFamilies::~SwXStyleFamilies ( )
overrideprotectedvirtual

Definition at line 476 of file unostyle.cxx.

SwXStyleFamilies::SwXStyleFamilies ( SwDocShell rDocShell)

Definition at line 471 of file unostyle.cxx.

Member Function Documentation

uno::Reference< css::style::XStyle > SwXStyleFamilies::CreateStyle ( SfxStyleFamily  eFamily,
SwDoc rDoc 
)
static

Definition at line 776 of file unostyle.cxx.

References SwDoc::GetDocShell(), and lcl_GetStyleFamilyEntries().

Referenced by SwXServiceProvider::MakeInstance().

uno::Reference< css::style::XStyle > SwXStyleFamilies::CreateStyleCondParagraph ( SwDoc rDoc)
static

Definition at line 785 of file unostyle.cxx.

Referenced by SwXServiceProvider::MakeInstance().

uno::Any SwXStyleFamilies::getByIndex ( sal_Int32  nIndex)
overridevirtual

Definition at line 513 of file unostyle.cxx.

References SwUnoCollection::IsValid(), lcl_GetStyleFamilyEntries(), m_pDocShell, and m_vFamilies.

Referenced by getByName().

uno::Any SAL_CALL SwXStyleFamilies::getByName ( const OUString &  Name)
overridevirtual
sal_Int32 SwXStyleFamilies::getCount ( )
overridevirtual

Definition at line 508 of file unostyle.cxx.

References lcl_GetStyleFamilyEntries().

uno::Sequence< OUString > SwXStyleFamilies::getElementNames ( )
overridevirtual

Definition at line 492 of file unostyle.cxx.

References lcl_GetStyleFamilyEntries().

uno::Type SwXStyleFamilies::getElementType ( )
overridevirtual

Definition at line 529 of file unostyle.cxx.

References cppu::UnoType< class >::get().

OUString SwXStyleFamilies::getImplementationName ( )
overridevirtual

Definition at line 460 of file unostyle.cxx.

uno::Sequence< beans::PropertyValue > SwXStyleFamilies::getStyleLoaderOptions ( )
overridevirtual
uno::Sequence< OUString > SwXStyleFamilies::getSupportedServiceNames ( )
overridevirtual

Definition at line 468 of file unostyle.cxx.

sal_Bool SwXStyleFamilies::hasByName ( const OUString &  Name)
overridevirtual

Definition at line 501 of file unostyle.cxx.

References lcl_GetStyleFamilyEntries().

sal_Bool SwXStyleFamilies::hasElements ( )
overridevirtual

Definition at line 534 of file unostyle.cxx.

void SwXStyleFamilies::loadStylesFromURL ( const OUString &  rURL,
const css::uno::Sequence< css::beans::PropertyValue > &  aOptions 
)
overridevirtual
sal_Bool SwXStyleFamilies::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 463 of file unostyle.cxx.

References cppu::supportsService().

Member Data Documentation

SwDocShell* SwXStyleFamilies::m_pDocShell
private

Definition at line 56 of file unostyle.hxx.

Referenced by getByIndex(), and loadStylesFromURL().

std::map<SfxStyleFamily, css::uno::Reference<css::container::XNameContainer> > SwXStyleFamilies::m_vFamilies
private

Definition at line 58 of file unostyle.hxx.

Referenced by getByIndex().


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