LibreOffice Module sc (master)
1
|
#include <nameuno.hxx>
Public Member Functions | |
ScNamedRangesObj (ScDocShell *pDocSh) | |
virtual | ~ScNamedRangesObj () override |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override |
bool | IsModifyAndBroadcast () const |
virtual void SAL_CALL | addNewByName (const OUString &aName, const OUString &aContent, const css::table::CellAddress &aPosition, sal_Int32 nType) override |
XNamedRanges. More... | |
virtual void SAL_CALL | addNewFromTitles (const css::table::CellRangeAddress &aSource, css::sheet::Border aBorder) override |
virtual void SAL_CALL | removeByName (const OUString &aName) override |
virtual void SAL_CALL | outputList (const css::table::CellAddress &aOutputPosition) 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 css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
XPropertySet. More... | |
virtual void SAL_CALL | setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) override |
virtual css::uno::Any SAL_CALL | getPropertyValue (const OUString &PropertyName) override |
virtual void SAL_CALL | addPropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override |
virtual void SAL_CALL | removePropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override |
virtual void SAL_CALL | addVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override |
virtual void SAL_CALL | removeVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override |
virtual sal_Bool SAL_CALL | isActionLocked () override |
XActionLockable. More... | |
virtual void SAL_CALL | addActionLock () override |
virtual void SAL_CALL | removeActionLock () override |
virtual void SAL_CALL | setActionLocks (sal_Int16 nLock) override |
virtual sal_Int16 SAL_CALL | resetActionLocks () 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 |
![]() | |
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 |
SfxBroadcaster * | GetBroadcasterJOE (sal_uInt16 nNo) const |
void | RemoveBroadcaster_Impl (SfxBroadcaster &rBC) |
Protected Member Functions | |
void | lock () |
called from the XActionLockable interface methods on initial locking More... | |
void | unlock () |
called from the XActionLockable interface methods on final unlock More... | |
Protected Attributes | |
ScDocShell * | pDocShell |
Private Member Functions | |
virtual ScNamedRangeObj * | GetObjectByIndex_Impl (sal_uInt16 nIndex)=0 |
virtual ScNamedRangeObj * | GetObjectByName_Impl (const OUString &aName)=0 |
virtual ScRangeName * | GetRangeName_Impl ()=0 |
virtual SCTAB | GetTab_Impl ()=0 |
Private Attributes | |
bool | mbModifyAndBroadcast |
if true, adding new name or modifying existing one will set the document 'modified' and broadcast the change. More... | |
Definition at line 124 of file nameuno.hxx.
ScNamedRangesObj::ScNamedRangesObj | ( | ScDocShell * | pDocSh | ) |
Definition at line 446 of file nameuno.cxx.
References ScDocument::AddUnoObject(), ScDocShell::GetDocument(), and pDocShell.
|
overridevirtual |
Definition at line 453 of file nameuno.cxx.
References ScDocShell::GetDocument(), pDocShell, and ScDocument::RemoveUnoObject().
|
overridevirtual |
Definition at line 716 of file nameuno.cxx.
References ScDocShell::GetDocument(), ScDocument::GetNamedRangesLockCount(), lock(), pDocShell, and ScDocument::SetNamedRangesLockCount().
|
overridevirtual |
XNamedRanges.
Definition at line 473 of file nameuno.cxx.
References ScRangeData::ColHeader, COLUMN_HEADER, ScRangeData::Criteria, ScRangeName::findByUpperName(), ScGlobal::getCharClassPtr(), ScDocShell::GetDocFunc(), ScDocShell::GetDocument(), GetRangeName_Impl(), GetTab_Impl(), formula::FormulaGrammar::GRAM_API, mbModifyAndBroadcast, ScRangeData::Name, pDocShell, ScRangeData::PrintArea, ROW_HEADER, ScRangeData::RowHeader, ScDocFunc::SetNewRangeNames(), and CharClass::uppercase().
|
overridevirtual |
this cannot be an enum, because multiple bits can be set !!!
Definition at line 513 of file nameuno.cxx.
References Bottom, ScDocFunc::CreateNames(), ScUnoConversion::FillScRange(), ScDocShell::GetDocFunc(), GetTab_Impl(), Left, NONE, pDocShell, Right, and Top.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
XEnumerationAccess.
Definition at line 571 of file nameuno.cxx.
|
overridevirtual |
Definition at line 596 of file nameuno.cxx.
References GetObjectByIndex_Impl().
|
overridevirtual |
XNameAccess.
Definition at line 647 of file nameuno.cxx.
|
overridevirtual |
XIndexAccess.
Definition at line 579 of file nameuno.cxx.
References GetRangeName_Impl(), lcl_UserVisibleName(), and pDocShell.
Referenced by getElementNames(), and hasElements().
|
overridevirtual |
Definition at line 657 of file nameuno.cxx.
References aSeq, getCount(), GetRangeName_Impl(), lcl_UserVisibleName(), and pDocShell.
|
overridevirtual |
XElementAccess.
Definition at line 606 of file nameuno.cxx.
References cppu::UnoType< class >::get().
|
overridevirtual |
XServiceInfo.
|
privatepure virtual |
Implemented in ScLocalNamedRangesObj, and ScGlobalNamedRangesObj.
Referenced by getByIndex().
|
privatepure virtual |
Implemented in ScLocalNamedRangesObj, and ScGlobalNamedRangesObj.
|
overridevirtual |
|
overridevirtual |
Definition at line 634 of file nameuno.cxx.
References Any, mbModifyAndBroadcast, and SC_UNO_MODIFY_BROADCAST.
|
privatepure virtual |
Implemented in ScLocalNamedRangesObj, and ScGlobalNamedRangesObj.
Referenced by addNewByName(), getCount(), getElementNames(), hasByName(), and removeByName().
|
overridevirtual |
|
privatepure virtual |
Implemented in ScLocalNamedRangesObj, and ScGlobalNamedRangesObj.
Referenced by addNewByName(), addNewFromTitles(), and removeByName().
|
overridevirtual |
Definition at line 680 of file nameuno.cxx.
References ScRangeName::findByUpperName(), ScGlobal::getCharClassPtr(), GetRangeName_Impl(), lcl_UserVisibleName(), pData, and pDocShell.
Referenced by ScGlobalNamedRangesObj::GetObjectByName_Impl(), and ScLocalNamedRangesObj::GetObjectByName_Impl().
|
overridevirtual |
Definition at line 612 of file nameuno.cxx.
References getCount().
|
overridevirtual |
XActionLockable.
Definition at line 710 of file nameuno.cxx.
References ScDocShell::GetDocument(), ScDocument::GetNamedRangesLockCount(), and pDocShell.
|
inline |
Definition at line 161 of file nameuno.hxx.
References mbModifyAndBroadcast.
|
protected |
called from the XActionLockable interface methods on initial locking
Definition at line 697 of file nameuno.cxx.
References ScDocShell::GetDocument(), pDocShell, and ScDocument::PreprocessRangeNameUpdate().
Referenced by addActionLock(), and setActionLocks().
|
overridevirtual |
Reimplemented from SfxListener.
Definition at line 461 of file nameuno.cxx.
References SfxHint::GetId(), and pDocShell.
|
overridevirtual |
Definition at line 561 of file nameuno.cxx.
References ScDocShell::GetDocFunc(), ScDocFunc::InsertNameList(), and pDocShell.
|
overridevirtual |
Definition at line 729 of file nameuno.cxx.
References ScDocShell::GetDocument(), ScDocument::GetNamedRangesLockCount(), pDocShell, ScDocument::SetNamedRangesLockCount(), and unlock().
|
overridevirtual |
Definition at line 537 of file nameuno.cxx.
References ScRangeName::findByUpperName(), ScGlobal::getCharClassPtr(), ScDocShell::GetDocFunc(), GetRangeName_Impl(), GetTab_Impl(), lcl_UserVisibleName(), mbModifyAndBroadcast, pData, pDocShell, and ScDocFunc::SetNewRangeNames().
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Definition at line 764 of file nameuno.cxx.
References ScDocShell::GetDocument(), ScDocument::GetNamedRangesLockCount(), pDocShell, ScDocument::SetNamedRangesLockCount(), and unlock().
|
overridevirtual |
Definition at line 745 of file nameuno.cxx.
References ScDocShell::GetDocument(), ScDocument::GetNamedRangesLockCount(), lock(), pDocShell, ScDocument::SetNamedRangesLockCount(), and unlock().
|
overridevirtual |
Definition at line 625 of file nameuno.cxx.
References mbModifyAndBroadcast, and SC_UNO_MODIFY_BROADCAST.
|
overridevirtual |
|
protected |
called from the XActionLockable interface methods on final unlock
Definition at line 703 of file nameuno.cxx.
References ScDocument::CompileHybridFormula(), ScDocShell::GetDocument(), and pDocShell.
Referenced by removeActionLock(), resetActionLocks(), and setActionLocks().
|
private |
if true, adding new name or modifying existing one will set the document 'modified' and broadcast the change.
We turn this off during import.
Definition at line 138 of file nameuno.hxx.
Referenced by addNewByName(), getPropertyValue(), IsModifyAndBroadcast(), removeByName(), and setPropertyValue().
|
protected |
Definition at line 148 of file nameuno.hxx.
Referenced by addActionLock(), addNewByName(), addNewFromTitles(), getCount(), getElementNames(), ScGlobalNamedRangesObj::GetObjectByIndex_Impl(), ScLocalNamedRangesObj::GetObjectByIndex_Impl(), ScGlobalNamedRangesObj::GetObjectByName_Impl(), ScLocalNamedRangesObj::GetObjectByName_Impl(), ScGlobalNamedRangesObj::GetRangeName_Impl(), ScLocalNamedRangesObj::GetRangeName_Impl(), ScLocalNamedRangesObj::GetTab_Impl(), hasByName(), isActionLocked(), lock(), Notify(), outputList(), removeActionLock(), removeByName(), resetActionLocks(), ScNamedRangesObj(), setActionLocks(), unlock(), and ~ScNamedRangesObj().