LibreOffice Module sc (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ScScenariosObj Class Referencefinal

#include <docuno.hxx>

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

Public Member Functions

 ScScenariosObj (ScDocShell *pDocSh, SCTAB nT)
 
virtual ~ScScenariosObj () override
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 
virtual void SAL_CALL addNewByName (const OUString &aName, const css::uno::Sequence< css::table::CellRangeAddress > &aRanges, const OUString &aComment) override
 XScenarios. More...
 
virtual void SAL_CALL removeByName (const OUString &aName) override
 
virtual css::uno::Any SAL_CALL getByName (const OUString &aName) override
 XNameAccess. More...
 
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames () override
 
virtual sal_Bool SAL_CALL hasByName (const OUString &aName) override
 
virtual sal_Int32 SAL_CALL getCount () override
 XIndexAccess. More...
 
virtual css::uno::Any SAL_CALL getByIndex (sal_Int32 Index) override
 
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration () override
 XEnumerationAccess. More...
 
virtual css::uno::Type SAL_CALL getElementType () override
 XElementAccess. More...
 
virtual sal_Bool SAL_CALL hasElements () override
 
virtual OUString SAL_CALL getImplementationName () override
 XServiceInfo. More...
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
- Public Member Functions inherited from SfxListener
 SfxListener ()
 
 SfxListener (const SfxListener &rCopy)
 
virtual ~SfxListener () COVERITY_NOEXCEPT_FALSE
 
void StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
 
void EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
 
void EndListeningAll ()
 
bool IsListening (SfxBroadcaster &rBroadcaster) const
 
sal_uInt16 GetBroadcasterCount () const
 
SfxBroadcasterGetBroadcasterJOE (sal_uInt16 nNo) const
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 

Private Member Functions

bool GetScenarioIndex_Impl (const OUString &rName, SCTAB &rIndex)
 
ScTableSheetObjGetObjectByIndex_Impl (sal_Int32 nIndex)
 
ScTableSheetObjGetObjectByName_Impl (const OUString &aName)
 

Private Attributes

ScDocShellpDocShell
 
SCTAB nTab
 

Detailed Description

Definition at line 703 of file docuno.hxx.

Constructor & Destructor Documentation

ScScenariosObj::ScScenariosObj ( ScDocShell pDocSh,
SCTAB  nT 
)

Definition at line 4534 of file docuno.cxx.

References ScDocument::AddUnoObject(), ScDocShell::GetDocument(), and pDocShell.

ScScenariosObj::~ScScenariosObj ( )
overridevirtual

Definition at line 4541 of file docuno.cxx.

References ScDocShell::GetDocument(), pDocShell, and ScDocument::RemoveUnoObject().

Member Function Documentation

void SAL_CALL ScScenariosObj::addNewByName ( const OUString &  aName,
const css::uno::Sequence< css::table::CellRangeAddress > &  aRanges,
const OUString &  aComment 
)
overridevirtual
uno::Reference< container::XEnumeration > SAL_CALL ScScenariosObj::createEnumeration ( )
overridevirtual

XEnumerationAccess.

Definition at line 4638 of file docuno.cxx.

uno::Any SAL_CALL ScScenariosObj::getByIndex ( sal_Int32  Index)
overridevirtual

Definition at line 4667 of file docuno.cxx.

References GetObjectByIndex_Impl().

uno::Any SAL_CALL ScScenariosObj::getByName ( const OUString &  aName)
overridevirtual

XNameAccess.

Definition at line 4689 of file docuno.cxx.

References GetObjectByName_Impl().

sal_Int32 SAL_CALL ScScenariosObj::getCount ( )
overridevirtual
uno::Sequence< OUString > SAL_CALL ScScenariosObj::getElementNames ( )
overridevirtual
uno::Type SAL_CALL ScScenariosObj::getElementType ( )
overridevirtual

XElementAccess.

Definition at line 4677 of file docuno.cxx.

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

virtual OUString SAL_CALL ScScenariosObj::getImplementationName ( )
overridevirtual

XServiceInfo.

ScTableSheetObj * ScScenariosObj::GetObjectByIndex_Impl ( sal_Int32  nIndex)
private

Definition at line 4584 of file docuno.cxx.

References getCount(), nCount, nTab, and pDocShell.

Referenced by getByIndex().

ScTableSheetObj * ScScenariosObj::GetObjectByName_Impl ( const OUString &  aName)
private

Definition at line 4593 of file docuno.cxx.

References GetScenarioIndex_Impl(), nIndex, nTab, and pDocShell.

Referenced by getByName().

bool ScScenariosObj::GetScenarioIndex_Impl ( const OUString &  rName,
SCTAB rIndex 
)
private

Case-insensitive ????

Definition at line 4563 of file docuno.cxx.

References getCount(), ScDocShell::GetDocument(), ScDocument::GetName(), i, nCount, nTab, and pDocShell.

Referenced by GetObjectByName_Impl(), hasByName(), and removeByName().

virtual css::uno::Sequence< OUString > SAL_CALL ScScenariosObj::getSupportedServiceNames ( )
overridevirtual
sal_Bool SAL_CALL ScScenariosObj::hasByName ( const OUString &  aName)
overridevirtual

Definition at line 4718 of file docuno.cxx.

References GetScenarioIndex_Impl(), and nIndex.

sal_Bool SAL_CALL ScScenariosObj::hasElements ( )
overridevirtual

Definition at line 4683 of file docuno.cxx.

References getCount().

void ScScenariosObj::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overridevirtual

update of references for sheet and its start/end

Reimplemented from SfxListener.

Definition at line 4549 of file docuno.cxx.

References SfxHint::GetId(), and pDocShell.

void SAL_CALL ScScenariosObj::removeByName ( const OUString &  aName)
overridevirtual
virtual sal_Bool SAL_CALL ScScenariosObj::supportsService ( const OUString &  ServiceName)
overridevirtual

Member Data Documentation

SCTAB ScScenariosObj::nTab
private
ScDocShell* ScScenariosObj::pDocShell
private

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