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

#include <docuno.hxx>

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

Public Member Functions

 ScTableSheetsObj (ScDocShell *pDocSh)
 
virtual ~ScTableSheetsObj () override
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 
virtual void SAL_CALL insertNewByName (const OUString &aName, sal_Int16 nPosition) override
 XSpreadsheets. More...
 
virtual void SAL_CALL moveByName (const OUString &aName, sal_Int16 nDestination) override
 
virtual void SAL_CALL copyByName (const OUString &aName, const OUString &aCopy, sal_Int16 nDestination) override
 
virtual sal_Int32 SAL_CALL importSheet (const css::uno::Reference< css::sheet::XSpreadsheetDocument > &xDocSrc, const OUString &srcName, sal_Int32 nDestPosition) override
 XSpreadsheets2. More...
 
virtual css::uno::Reference< css::table::XCell > SAL_CALL getCellByPosition (sal_Int32 nColumn, sal_Int32 nRow, sal_Int32 nSheet) override
 XCellRangesAccess. More...
 
virtual css::uno::Reference< css::table::XCellRange > SAL_CALL getCellRangeByPosition (sal_Int32 nLeft, sal_Int32 nTop, sal_Int32 nRight, sal_Int32 nBottom, sal_Int32 nSheet) override
 
virtual css::uno::Sequence< css::uno::Reference< css::table::XCellRange > > SAL_CALL getCellRangesByName (const OUString &aRange) override
 
virtual void SAL_CALL insertByName (const OUString &aName, const css::uno::Any &aElement) override
 XNameContainer. More...
 
virtual void SAL_CALL removeByName (const OUString &Name) override
 
virtual void SAL_CALL replaceByName (const OUString &aName, const css::uno::Any &aElement) override
 XNameReplace. More...
 
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 sal_Int32 SAL_CALL getCount () override
 XIndexAccess. More...
 
virtual css::uno::Any SAL_CALL getByIndex (sal_Int32 Index) 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 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

rtl::Reference< ScTableSheetObjGetObjectByIndex_Impl (sal_Int32 nIndex) const
 
rtl::Reference< ScTableSheetObjGetObjectByName_Impl (const OUString &aName) const
 

Private Attributes

ScDocShellpDocShell
 

Detailed Description

Definition at line 441 of file docuno.hxx.

Constructor & Destructor Documentation

◆ ScTableSheetsObj()

ScTableSheetsObj::ScTableSheetsObj ( ScDocShell pDocSh)

Definition at line 3718 of file docuno.cxx.

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

◆ ~ScTableSheetsObj()

ScTableSheetsObj::~ScTableSheetsObj ( )
overridevirtual

Definition at line 3724 of file docuno.cxx.

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

Member Function Documentation

◆ copyByName()

void SAL_CALL ScTableSheetsObj::copyByName ( const OUString &  aName,
const OUString &  aCopy,
sal_Int16  nDestination 
)
overridevirtual

◆ createEnumeration()

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

XEnumerationAccess.

Definition at line 4007 of file docuno.cxx.

◆ getByIndex()

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

Definition at line 4023 of file docuno.cxx.

References GetObjectByIndex_Impl(), and nIndex.

◆ getByName()

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

XNameAccess.

Definition at line 4048 of file docuno.cxx.

References aName, and GetObjectByName_Impl().

◆ getCellByPosition()

uno::Reference< table::XCell > SAL_CALL ScTableSheetsObj::getCellByPosition ( sal_Int32  nColumn,
sal_Int32  nRow,
sal_Int32  nSheet 
)
overridevirtual

XCellRangesAccess.

Definition at line 3960 of file docuno.cxx.

References GetObjectByIndex_Impl().

◆ getCellRangeByPosition()

uno::Reference< table::XCellRange > SAL_CALL ScTableSheetsObj::getCellRangeByPosition ( sal_Int32  nLeft,
sal_Int32  nTop,
sal_Int32  nRight,
sal_Int32  nBottom,
sal_Int32  nSheet 
)
overridevirtual

Definition at line 3970 of file docuno.cxx.

References GetObjectByIndex_Impl().

◆ getCellRangesByName()

uno::Sequence< uno::Reference< table::XCellRange > > SAL_CALL ScTableSheetsObj::getCellRangesByName ( const OUString &  aRange)
overridevirtual

◆ getCount()

sal_Int32 SAL_CALL ScTableSheetsObj::getCount ( )
overridevirtual

XIndexAccess.

Definition at line 4015 of file docuno.cxx.

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

Referenced by hasElements().

◆ getElementNames()

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

◆ getElementType()

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

XElementAccess.

Definition at line 4035 of file docuno.cxx.

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

◆ getImplementationName()

virtual OUString SAL_CALL ScTableSheetsObj::getImplementationName ( )
overridevirtual

XServiceInfo.

◆ GetObjectByIndex_Impl()

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

Definition at line 3744 of file docuno.cxx.

References nIndex, and pDocShell.

Referenced by getByIndex(), getCellByPosition(), and getCellRangeByPosition().

◆ GetObjectByName_Impl()

rtl::Reference< ScTableSheetObj > ScTableSheetsObj::GetObjectByName_Impl ( const OUString &  aName) const
private

Definition at line 3752 of file docuno.cxx.

References aName, ScDocShell::GetDocument(), ScDocument::GetTable(), nIndex, and pDocShell.

Referenced by getByName().

◆ getSupportedServiceNames()

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

◆ hasByName()

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

Definition at line 4078 of file docuno.cxx.

References aName, ScDocShell::GetDocument(), ScDocument::GetTable(), nIndex, and pDocShell.

◆ hasElements()

sal_Bool SAL_CALL ScTableSheetsObj::hasElements ( )
overridevirtual

Definition at line 4040 of file docuno.cxx.

References getCount().

◆ importSheet()

sal_Int32 ScTableSheetsObj::importSheet ( const css::uno::Reference< css::sheet::XSpreadsheetDocument > &  xDocSrc,
const OUString &  srcName,
sal_Int32  nDestPosition 
)
overridevirtual

◆ insertByName()

void SAL_CALL ScTableSheetsObj::insertByName ( const OUString &  aName,
const css::uno::Any &  aElement 
)
overridevirtual

XNameContainer.

Type of aElement can be some specific interface instead of XInterface

Definition at line 3817 of file docuno.cxx.

References aName, ScDocShell::GetDocFunc(), ScDocShell::GetDocument(), ScDocument::GetTable(), ScDocument::GetTableCount(), ScTableSheetObj::InitInsertSheet(), ScDocFunc::InsertTable(), and pDocShell.

◆ insertNewByName()

void SAL_CALL ScTableSheetsObj::insertNewByName ( const OUString &  aName,
sal_Int16  nPosition 
)
overridevirtual

XSpreadsheets.

Definition at line 3763 of file docuno.cxx.

References aName, ScDocShell::GetDocFunc(), ScDocFunc::InsertTable(), and pDocShell.

◆ moveByName()

void SAL_CALL ScTableSheetsObj::moveByName ( const OUString &  aName,
sal_Int16  nDestination 
)
overridevirtual

◆ Notify()

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

Reimplemented from SfxListener.

Definition at line 3732 of file docuno.cxx.

References SfxHint::GetId(), and pDocShell.

◆ removeByName()

void SAL_CALL ScTableSheetsObj::removeByName ( const OUString &  Name)
overridevirtual

◆ replaceByName()

void SAL_CALL ScTableSheetsObj::replaceByName ( const OUString &  aName,
const css::uno::Any &  aElement 
)
overridevirtual

XNameReplace.

Type of aElement can be some specific interface instead of XInterface

Definition at line 3863 of file docuno.cxx.

References aName, ScDocFunc::DeleteTable(), ScDocShell::GetDocFunc(), ScDocShell::GetDocument(), ScDocument::GetTable(), ScTableSheetObj::InitInsertSheet(), ScDocFunc::InsertTable(), and pDocShell.

◆ supportsService()

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

Member Data Documentation

◆ pDocShell

ScDocShell* ScTableSheetsObj::pDocShell
private

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