LibreOffice Module xmlhelp (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
treeview::TVChildTarget Class Reference

#include <tvread.hxx>

Inheritance diagram for treeview::TVChildTarget:
[legend]
Collaboration diagram for treeview::TVChildTarget:
[legend]

Public Member Functions

 TVChildTarget (const ConfigData &configData, TVDom *tvDom)
 
 TVChildTarget (const css::uno::Reference< css::uno::XComponentContext > &xContext)
 
virtual ~TVChildTarget () override
 
virtual css::uno::Any SAL_CALL getByName (const OUString &aName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames () override
 
virtual sal_Bool SAL_CALL hasByName (const OUString &aName) override
 
virtual css::uno::Any SAL_CALL getByHierarchicalName (const OUString &aName) override
 
virtual sal_Bool SAL_CALL hasByHierarchicalName (const OUString &aName) override
 
- Public Member Functions inherited from treeview::TVBase
virtual css::uno::Type SAL_CALL getElementType () override
 
virtual sal_Bool SAL_CALL hasElements () override
 
virtual void SAL_CALL addChangesListener (const css::uno::Reference< css::util::XChangesListener > &) override
 
virtual void SAL_CALL removeChangesListener (const css::uno::Reference< css::util::XChangesListener > &) override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &) override
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &) override
 
virtual css::uno::Any SAL_CALL getByName (const OUString &aName) override=0
 
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames () override=0
 
virtual sal_Bool SAL_CALL hasByName (const OUString &aName) override=0
 
virtual css::uno::Any SAL_CALL getByHierarchicalName (const OUString &aName) override=0
 
virtual sal_Bool SAL_CALL hasByHierarchicalName (const OUString &aName) override=0
 

Private Member Functions

std::unique_ptr< TVDomSearchAndInsert (std::unique_ptr< TVDom > p, TVDom *tvDom)
 
void Check (TVDom *tvDom)
 

Static Private Member Functions

static ConfigData init (const css::uno::Reference< css::uno::XComponentContext > &xContext)
 
static css::uno::Reference< css::lang::XMultiServiceFactory > getConfiguration (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
static css::uno::Reference< css::container::XHierarchicalNameAccess > getHierAccess (const css::uno::Reference< css::lang::XMultiServiceFactory > &rxProvider, const char *file)
 
static OUString getKey (const css::uno::Reference< css::container::XHierarchicalNameAccess > &xHierAccess, const char *key)
 
static bool getBooleanKey (const css::uno::Reference< css::container::XHierarchicalNameAccess > &xHierAccess, const char *key)
 
static void subst (OUString &instpath)
 

Private Attributes

std::vector< rtl::Reference< TVRead > > Elements
 

Detailed Description

Definition at line 174 of file tvread.hxx.

Constructor & Destructor Documentation

◆ TVChildTarget() [1/2]

TVChildTarget::TVChildTarget ( const ConfigData configData,
TVDom tvDom 
)

Definition at line 363 of file tvread.cxx.

References treeview::TVDom::children, Elements, and i.

◆ TVChildTarget() [2/2]

treeview::TVChildTarget::TVChildTarget ( const css::uno::Reference< css::uno::XComponentContext > &  xContext)

◆ ~TVChildTarget()

TVChildTarget::~TVChildTarget ( )
overridevirtual

Definition at line 415 of file tvread.cxx.

Member Function Documentation

◆ Check()

void TVChildTarget::Check ( TVDom tvDom)
private

Definition at line 419 of file tvread.cxx.

References treeview::TVDom::children, h, i, p, and SearchAndInsert().

◆ getBooleanKey()

bool TVChildTarget::getBooleanKey ( const css::uno::Reference< css::container::XHierarchicalNameAccess > &  xHierAccess,
const char *  key 
)
staticprivate

Definition at line 799 of file tvread.cxx.

References Any.

Referenced by init().

◆ getByHierarchicalName()

Any SAL_CALL TVChildTarget::getByHierarchicalName ( const OUString &  aName)
overridevirtual

Implements treeview::TVBase.

Definition at line 539 of file tvread.cxx.

References aName, Elements, getByName(), idx, o3tl::make_unsigned(), and o3tl::toInt32().

◆ getByName()

Any SAL_CALL TVChildTarget::getByName ( const OUString &  aName)
overridevirtual

Implements treeview::TVBase.

Definition at line 503 of file tvread.cxx.

References aName, Any, Elements, idx, o3tl::make_unsigned(), p, and o3tl::toInt32().

Referenced by getByHierarchicalName().

◆ getConfiguration()

Reference< XMultiServiceFactory > TVChildTarget::getConfiguration ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext)
staticprivate

Definition at line 736 of file tvread.cxx.

Referenced by init().

◆ getElementNames()

Sequence< OUString > SAL_CALL TVChildTarget::getElementNames ( )
overridevirtual

Implements treeview::TVBase.

Definition at line 515 of file tvread.cxx.

References Elements, and i.

◆ getHierAccess()

Reference< XHierarchicalNameAccess > TVChildTarget::getHierAccess ( const css::uno::Reference< css::lang::XMultiServiceFactory > &  rxProvider,
const char *  file 
)
staticprivate

Definition at line 755 of file tvread.cxx.

Referenced by init().

◆ getKey()

OUString TVChildTarget::getKey ( const css::uno::Reference< css::container::XHierarchicalNameAccess > &  xHierAccess,
const char *  key 
)
staticprivate

Definition at line 778 of file tvread.cxx.

References Any.

Referenced by init().

◆ hasByHierarchicalName()

sal_Bool SAL_CALL TVChildTarget::hasByHierarchicalName ( const OUString &  aName)
overridevirtual

Implements treeview::TVBase.

Definition at line 558 of file tvread.cxx.

References aName, Elements, hasByName(), idx, o3tl::make_unsigned(), and o3tl::toInt32().

◆ hasByName()

sal_Bool SAL_CALL TVChildTarget::hasByName ( const OUString &  aName)
overridevirtual

Implements treeview::TVBase.

Definition at line 526 of file tvread.cxx.

References aName, Elements, idx, o3tl::make_unsigned(), and o3tl::toInt32().

Referenced by hasByHierarchicalName().

◆ init()

ConfigData TVChildTarget::init ( const css::uno::Reference< css::uno::XComponentContext > &  xContext)
staticprivate

◆ SearchAndInsert()

std::unique_ptr< TVDom > TVChildTarget::SearchAndInsert ( std::unique_ptr< TVDom p,
TVDom tvDom 
)
private

Definition at line 453 of file tvread.cxx.

References treeview::TVDom::children, h, i, max, p, SearchAndInsert(), and u.

Referenced by Check(), and SearchAndInsert().

◆ subst()

void TVChildTarget::subst ( OUString &  instpath)
staticprivate

Definition at line 821 of file tvread.cxx.

References SvtPathOptions::SubstituteVariable().

Referenced by init().

Member Data Documentation

◆ Elements

std::vector< rtl::Reference< TVRead > > treeview::TVChildTarget::Elements
private

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