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
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint)
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 
virtual bool IsSdrView () const
 

Private Member Functions

bool GetScenarioIndex_Impl (std::u16string_view rName, SCTAB &rIndex)
 
rtl::Reference< ScTableSheetObjGetObjectByIndex_Impl (sal_Int32 nIndex)
 
rtl::Reference< ScTableSheetObjGetObjectByName_Impl (std::u16string_view aName)
 

Private Attributes

ScDocShellpDocShell
 
SCTAB nTab
 

Detailed Description

Definition at line 715 of file docuno.hxx.

Constructor & Destructor Documentation

◆ ScScenariosObj()

ScScenariosObj::ScScenariosObj ( ScDocShell pDocSh,
SCTAB  nT 
)

Definition at line 4766 of file docuno.cxx.

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

◆ ~ScScenariosObj()

ScScenariosObj::~ScScenariosObj ( )
overridevirtual

Definition at line 4773 of file docuno.cxx.

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

Member Function Documentation

◆ addNewByName()

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

◆ createEnumeration()

uno::Reference< container::XEnumeration > SAL_CALL ScScenariosObj::createEnumeration ( )
overridevirtual

XEnumerationAccess.

Definition at line 4870 of file docuno.cxx.

◆ getByIndex()

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

Definition at line 4899 of file docuno.cxx.

References GetObjectByIndex_Impl(), and nIndex.

◆ getByName()

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

XNameAccess.

Definition at line 4920 of file docuno.cxx.

References aName, and GetObjectByName_Impl().

◆ getCount()

sal_Int32 SAL_CALL ScScenariosObj::getCount ( )
overridevirtual

◆ getElementNames()

uno::Sequence< OUString > SAL_CALL ScScenariosObj::getElementNames ( )
overridevirtual

◆ getElementType()

uno::Type SAL_CALL ScScenariosObj::getElementType ( )
overridevirtual

XElementAccess.

Definition at line 4909 of file docuno.cxx.

References cppu::UnoType< typename T >::get().

◆ getImplementationName()

virtual OUString SAL_CALL ScScenariosObj::getImplementationName ( )
overridevirtual

XServiceInfo.

◆ GetObjectByIndex_Impl()

rtl::Reference< ScTableSheetObj > ScScenariosObj::GetObjectByIndex_Impl ( sal_Int32  nIndex)
private

Definition at line 4816 of file docuno.cxx.

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

Referenced by getByIndex().

◆ GetObjectByName_Impl()

rtl::Reference< ScTableSheetObj > ScScenariosObj::GetObjectByName_Impl ( std::u16string_view  aName)
private

Definition at line 4825 of file docuno.cxx.

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

Referenced by getByName().

◆ GetScenarioIndex_Impl()

bool ScScenariosObj::GetScenarioIndex_Impl ( std::u16string_view  rName,
SCTAB rIndex 
)
private

Case-insensitive ????

Definition at line 4795 of file docuno.cxx.

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

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

◆ getSupportedServiceNames()

virtual css::uno::Sequence< OUString > SAL_CALL ScScenariosObj::getSupportedServiceNames ( )
overridevirtual

◆ hasByName()

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

Definition at line 4949 of file docuno.cxx.

References aName, GetScenarioIndex_Impl(), and nIndex.

◆ hasElements()

sal_Bool SAL_CALL ScScenariosObj::hasElements ( )
overridevirtual

Definition at line 4914 of file docuno.cxx.

References getCount().

◆ Notify()

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

update of references for sheet and its start/end

Reimplemented from SfxListener.

Definition at line 4781 of file docuno.cxx.

References SfxHint::GetId(), and pDocShell.

◆ removeByName()

void SAL_CALL ScScenariosObj::removeByName ( const OUString &  aName)
overridevirtual

◆ supportsService()

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

Member Data Documentation

◆ nTab

SCTAB ScScenariosObj::nTab
private

◆ pDocShell

ScDocShell* ScScenariosObj::pDocShell
private

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