LibreOffice Module ucb (master) 1
Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
hierarchy_ucp::HierarchyContent Class Reference

#include <hierarchycontent.hxx>

Inheritance diagram for hierarchy_ucp::HierarchyContent:
[legend]
Collaboration diagram for hierarchy_ucp::HierarchyContent:
[legend]

Public Member Functions

virtual ~HierarchyContent () override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual OUString SAL_CALL getContentType () override
 
virtual css::uno::Reference< css::ucb::XContentIdentifier > SAL_CALL getIdentifier () override
 
virtual css::uno::Any SAL_CALL execute (const css::ucb::Command &aCommand, sal_Int32 CommandId, const css::uno::Reference< css::ucb::XCommandEnvironment > &Environment) override
 
virtual void SAL_CALL abort (sal_Int32 CommandId) override
 
virtual css::uno::Sequence< css::ucb::ContentInfo > SAL_CALL queryCreatableContentsInfo () override
 
virtual css::uno::Reference< css::ucb::XContent > SAL_CALL createNewContent (const css::ucb::ContentInfo &Info) override
 
- Public Member Functions inherited from ucbhelper::ContentImplHelper
 ContentImplHelper (css::uno::Reference< css::uno::XComponentContext > xContext, rtl::Reference< ContentProviderImplHelper > xProvider, css::uno::Reference< css::ucb::XContentIdentifier > Identifier)
 
virtual ~ContentImplHelper () override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual OUString SAL_CALL getImplementationName () override=0
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override=0
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &Listener) override
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &Listener) override
 
virtual css::uno::Reference< css::ucb::XContentIdentifier > SAL_CALL getIdentifier () override
 
virtual OUString SAL_CALL getContentType () override=0
 
virtual void SAL_CALL addContentEventListener (const css::uno::Reference< css::ucb::XContentEventListener > &Listener) override
 
virtual void SAL_CALL removeContentEventListener (const css::uno::Reference< css::ucb::XContentEventListener > &Listener) override
 
virtual sal_Int32 SAL_CALL createCommandIdentifier () override
 
virtual css::uno::Any SAL_CALL execute (const css::ucb::Command &aCommand, sal_Int32 CommandId, const css::uno::Reference< css::ucb::XCommandEnvironment > &Environment) override=0
 
virtual void SAL_CALL abort (sal_Int32 CommandId) override=0
 
virtual void SAL_CALL addPropertiesChangeListener (const css::uno::Sequence< OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) override
 
virtual void SAL_CALL removePropertiesChangeListener (const css::uno::Sequence< OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) override
 
virtual void SAL_CALL addCommandInfoChangeListener (const css::uno::Reference< css::ucb::XCommandInfoChangeListener > &Listener) override
 
virtual void SAL_CALL removeCommandInfoChangeListener (const css::uno::Reference< css::ucb::XCommandInfoChangeListener > &Listener) override
 
virtual void SAL_CALL addProperty (const OUString &Name, sal_Int16 Attributes, const css::uno::Any &DefaultValue) override
 
virtual void SAL_CALL removeProperty (const OUString &Name) override
 
virtual void SAL_CALL addPropertySetInfoChangeListener (const css::uno::Reference< css::beans::XPropertySetInfoChangeListener > &Listener) override
 
virtual void SAL_CALL removePropertySetInfoChangeListener (const css::uno::Reference< css::beans::XPropertySetInfoChangeListener > &Listener) override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getParent () override
 
virtual void SAL_CALL setParent (const css::uno::Reference< css::uno::XInterface > &Parent) override
 
const rtl::Reference< ContentProviderImplHelper > & getProvider () const
 

Static Public Member Functions

static rtl::Reference< HierarchyContentcreate (const css::uno::Reference< css::uno::XComponentContext > &rxContext, HierarchyContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier)
 
static rtl::Reference< HierarchyContentcreate (const css::uno::Reference< css::uno::XComponentContext > &rxContext, HierarchyContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier, const css::ucb::ContentInfo &Info)
 
static css::uno::Reference< css::sdbc::XRow > getPropertyValues (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Sequence< css::beans::Property > &rProperties, const HierarchyContentProperties &rData, HierarchyContentProvider *pProvider, const OUString &rContentId)
 

Private Types

enum  ContentKind {
  LINK ,
  FOLDER ,
  ROOT
}
 
enum  ContentState {
  TRANSIENT ,
  PERSISTENT ,
  DEAD
}
 
typedef rtl::Reference< HierarchyContentHierarchyContentRef
 
typedef std::vector< HierarchyContentRefHierarchyContentRefVector
 

Private Member Functions

 HierarchyContent (const css::uno::Reference< css::uno::XComponentContext > &rxContext, HierarchyContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier, HierarchyContentProperties aProps)
 
 HierarchyContent (const css::uno::Reference< css::uno::XComponentContext > &rxContext, HierarchyContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier, const css::ucb::ContentInfo &Info)
 
virtual css::uno::Sequence< css::beans::Property > getProperties (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) override
 
virtual css::uno::Sequence< css::ucb::CommandInfo > getCommands (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) override
 
virtual OUString getParentURL () override
 
bool hasData (const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier)
 
bool storeData ()
 
void renameData (const css::uno::Reference< css::ucb::XContentIdentifier > &xOldId, const css::uno::Reference< css::ucb::XContentIdentifier > &xNewId)
 
bool removeData ()
 
void setKind (const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier)
 
bool isReadOnly ()
 
bool isFolder () const
 
css::uno::Reference< css::ucb::XContentIdentifier > makeNewIdentifier (const OUString &rTitle)
 
void queryChildren (HierarchyContentRefVector &rChildren)
 
bool exchangeIdentity (const css::uno::Reference< css::ucb::XContentIdentifier > &xNewId)
 
css::uno::Reference< css::sdbc::XRow > getPropertyValues (const css::uno::Sequence< css::beans::Property > &rProperties)
 
css::uno::Sequence< css::uno::Any > setPropertyValues (const css::uno::Sequence< css::beans::PropertyValue > &rValues, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
void insert (sal_Int32 nNameClashResolve, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
void destroy (bool bDeletePhysical, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
void transfer (const css::ucb::TransferInfo &rInfo, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 

Static Private Member Functions

static bool hasData (const css::uno::Reference< css::uno::XComponentContext > &rxContext, HierarchyContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier)
 
static bool loadData (const css::uno::Reference< css::uno::XComponentContext > &rxContext, HierarchyContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier, HierarchyContentProperties &rProps)
 

Private Attributes

HierarchyContentProperties m_aProps
 
ContentKind m_eKind
 
ContentState m_eState
 
HierarchyContentProviderm_pProvider
 
bool m_bCheckedReadOnly
 
bool m_bIsReadOnly
 

Additional Inherited Members

- Protected Member Functions inherited from ucbhelper::ContentImplHelper
css::uno::Reference< css::beans::XPropertySetInfo > getPropertySetInfo (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv, bool bCache=true)
 
css::uno::Reference< css::ucb::XCommandInfo > getCommandInfo (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv, bool bCache=true)
 
void notifyPropertiesChange (const css::uno::Sequence< css::beans::PropertyChangeEvent > &evt) const
 
void notifyPropertySetInfoChange (const css::beans::PropertySetInfoChangeEvent &evt) const
 
void notifyContentEvent (const css::ucb::ContentEvent &evt) const
 
void inserted ()
 
void deleted ()
 
bool exchange (const css::uno::Reference< css::ucb::XContentIdentifier > &rNewId)
 
css::uno::Reference< css::ucb::XPersistentPropertySet > getAdditionalPropertySet (bool bCreate)
 
bool renameAdditionalPropertySet (const OUString &rOldKey, const OUString &rNewKey)
 
bool copyAdditionalPropertySet (const OUString &rSourceKey, const OUString &rTargetKey)
 
bool removeAdditionalPropertySet ()
 
- Protected Attributes inherited from ucbhelper::ContentImplHelper
osl::Mutex m_aMutex
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
css::uno::Reference< css::ucb::XContentIdentifier > m_xIdentifier
 
rtl::Reference< ContentProviderImplHelperm_xProvider
 
sal_uInt32 m_nCommandId
 

Detailed Description

Definition at line 95 of file hierarchycontent.hxx.

Member Typedef Documentation

◆ HierarchyContentRef

Definition at line 156 of file hierarchycontent.hxx.

◆ HierarchyContentRefVector

Definition at line 157 of file hierarchycontent.hxx.

Member Enumeration Documentation

◆ ContentKind

Enumerator
LINK 
FOLDER 
ROOT 

Definition at line 98 of file hierarchycontent.hxx.

◆ ContentState

Enumerator
TRANSIENT 
PERSISTENT 
DEAD 

Definition at line 99 of file hierarchycontent.hxx.

Constructor & Destructor Documentation

◆ HierarchyContent() [1/2]

hierarchy_ucp::HierarchyContent::HierarchyContent ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
HierarchyContentProvider pProvider,
const css::uno::Reference< css::ucb::XContentIdentifier > &  Identifier,
HierarchyContentProperties  aProps 
)
private

◆ HierarchyContent() [2/2]

hierarchy_ucp::HierarchyContent::HierarchyContent ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
HierarchyContentProvider pProvider,
const css::uno::Reference< css::ucb::XContentIdentifier > &  Identifier,
const css::ucb::ContentInfo &  Info 
)
private

◆ ~HierarchyContent()

HierarchyContent::~HierarchyContent ( )
overridevirtual

Definition at line 148 of file hierarchycontent.cxx.

Member Function Documentation

◆ abort()

void SAL_CALL HierarchyContent::abort ( sal_Int32  CommandId)
overridevirtual

Implements ucbhelper::ContentImplHelper.

Definition at line 509 of file hierarchycontent.cxx.

◆ acquire()

void SAL_CALL HierarchyContent::acquire ( )
overridevirtualnoexcept

Reimplemented from ucbhelper::ContentImplHelper.

Definition at line 157 of file hierarchycontent.cxx.

◆ create() [1/2]

static rtl::Reference< HierarchyContent > hierarchy_ucp::HierarchyContent::create ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
HierarchyContentProvider pProvider,
const css::uno::Reference< css::ucb::XContentIdentifier > &  Identifier 
)
static

◆ create() [2/2]

static rtl::Reference< HierarchyContent > hierarchy_ucp::HierarchyContent::create ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
HierarchyContentProvider pProvider,
const css::uno::Reference< css::ucb::XContentIdentifier > &  Identifier,
const css::ucb::ContentInfo &  Info 
)
static

◆ createNewContent()

uno::Reference< ucb::XContent > SAL_CALL HierarchyContent::createNewContent ( const css::ucb::ContentInfo &  Info)
overridevirtual

◆ destroy()

void HierarchyContent::destroy ( bool  bDeletePhysical,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
private

◆ exchangeIdentity()

bool HierarchyContent::exchangeIdentity ( const css::uno::Reference< css::ucb::XContentIdentifier > &  xNewId)
private

◆ execute()

uno::Any SAL_CALL HierarchyContent::execute ( const css::ucb::Command &  aCommand,
sal_Int32  CommandId,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  Environment 
)
overridevirtual

◆ getCommands()

uno::Sequence< ucb::CommandInfo > HierarchyContent::getCommands ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv)
overrideprivatevirtual

◆ getContentType()

OUString SAL_CALL HierarchyContent::getContentType ( )
overridevirtual

◆ getIdentifier()

uno::Reference< ucb::XContentIdentifier > SAL_CALL HierarchyContent::getIdentifier ( )
overridevirtual

Reimplemented from ucbhelper::ContentImplHelper.

Definition at line 279 of file hierarchycontent.cxx.

References m_eState, and TRANSIENT.

◆ getImplementationId()

virtual css::uno::Sequence< sal_Int8 > SAL_CALL hierarchy_ucp::HierarchyContent::getImplementationId ( )
overridevirtual

Reimplemented from ucbhelper::ContentImplHelper.

◆ getImplementationName()

OUString SAL_CALL HierarchyContent::getImplementationName ( )
overridevirtual

Implements ucbhelper::ContentImplHelper.

Definition at line 244 of file hierarchycontent.cxx.

◆ getParentURL()

OUString HierarchyContent::getParentURL ( )
overrideprivatevirtual

◆ getProperties()

uno::Sequence< beans::Property > HierarchyContent::getProperties ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv)
overrideprivatevirtual

◆ getPropertyValues() [1/2]

static css::uno::Reference< css::sdbc::XRow > hierarchy_ucp::HierarchyContent::getPropertyValues ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
const css::uno::Sequence< css::beans::Property > &  rProperties,
const HierarchyContentProperties rData,
HierarchyContentProvider pProvider,
const OUString &  rContentId 
)
static

◆ getPropertyValues() [2/2]

css::uno::Reference< css::sdbc::XRow > hierarchy_ucp::HierarchyContent::getPropertyValues ( const css::uno::Sequence< css::beans::Property > &  rProperties)
private

◆ getSupportedServiceNames()

uno::Sequence< OUString > SAL_CALL HierarchyContent::getSupportedServiceNames ( )
overridevirtual

Implements ucbhelper::ContentImplHelper.

Definition at line 252 of file hierarchycontent.cxx.

References FOLDER, LINK, and m_eKind.

◆ getTypes()

uno::Sequence< uno::Type > SAL_CALL HierarchyContent::getTypes ( )
overridevirtual

◆ hasData() [1/2]

bool hierarchy_ucp::HierarchyContent::hasData ( const css::uno::Reference< css::ucb::XContentIdentifier > &  Identifier)
inlineprivate

◆ hasData() [2/2]

static bool hierarchy_ucp::HierarchyContent::hasData ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
HierarchyContentProvider pProvider,
const css::uno::Reference< css::ucb::XContentIdentifier > &  Identifier 
)
staticprivate

Referenced by exchangeIdentity(), hasData(), and insert().

◆ insert()

void HierarchyContent::insert ( sal_Int32  nNameClashResolve,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
private

◆ isFolder()

bool hierarchy_ucp::HierarchyContent::isFolder ( ) const
inlineprivate

Definition at line 151 of file hierarchycontent.hxx.

References LINK, and m_eKind.

Referenced by createNewContent(), execute(), getTypes(), and queryInterface().

◆ isReadOnly()

bool HierarchyContent::isReadOnly ( )
private

◆ loadData()

bool HierarchyContent::loadData ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
HierarchyContentProvider pProvider,
const css::uno::Reference< css::ucb::XContentIdentifier > &  Identifier,
HierarchyContentProperties rProps 
)
staticprivate

◆ makeNewIdentifier()

uno::Reference< ucb::XContentIdentifier > HierarchyContent::makeNewIdentifier ( const OUString &  rTitle)
private

◆ queryChildren()

void HierarchyContent::queryChildren ( HierarchyContentRefVector rChildren)
private

◆ queryCreatableContentsInfo()

uno::Sequence< ucb::ContentInfo > SAL_CALL HierarchyContent::queryCreatableContentsInfo ( )
overridevirtual

◆ queryInterface()

uno::Any SAL_CALL HierarchyContent::queryInterface ( const css::uno::Type &  rType)
overridevirtual

◆ release()

void SAL_CALL HierarchyContent::release ( )
overridevirtualnoexcept

Reimplemented from ucbhelper::ContentImplHelper.

Definition at line 165 of file hierarchycontent.cxx.

◆ removeData()

bool HierarchyContent::removeData ( )
private

◆ renameData()

void HierarchyContent::renameData ( const css::uno::Reference< css::ucb::XContentIdentifier > &  xOldId,
const css::uno::Reference< css::ucb::XContentIdentifier > &  xNewId 
)
private

◆ setKind()

void HierarchyContent::setKind ( const css::uno::Reference< css::ucb::XContentIdentifier > &  Identifier)
private

◆ setPropertyValues()

uno::Sequence< uno::Any > HierarchyContent::setPropertyValues ( const css::uno::Sequence< css::beans::PropertyValue > &  rValues,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
private

◆ storeData()

bool HierarchyContent::storeData ( )
private

◆ transfer()

void HierarchyContent::transfer ( const css::ucb::TransferInfo &  rInfo,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
private

Member Data Documentation

◆ m_aProps

HierarchyContentProperties hierarchy_ucp::HierarchyContent::m_aProps
private

◆ m_bCheckedReadOnly

bool hierarchy_ucp::HierarchyContent::m_bCheckedReadOnly
private

Definition at line 109 of file hierarchycontent.hxx.

Referenced by isReadOnly().

◆ m_bIsReadOnly

bool hierarchy_ucp::HierarchyContent::m_bIsReadOnly
private

Definition at line 110 of file hierarchycontent.hxx.

Referenced by isReadOnly().

◆ m_eKind

ContentKind hierarchy_ucp::HierarchyContent::m_eKind
private

◆ m_eState

ContentState hierarchy_ucp::HierarchyContent::m_eState
private

◆ m_pProvider

HierarchyContentProvider* hierarchy_ucp::HierarchyContent::m_pProvider
private

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