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 |
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 |
SfxBroadcaster * | GetBroadcasterJOE (sal_uInt16 nNo) const |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) |
void | RemoveBroadcaster_Impl (SfxBroadcaster &rBC) |
virtual bool | IsSdrView () const |
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 rtl::Reference< ScNamedRangeObj > | GetObjectByIndex_Impl (sal_uInt16 nIndex)=0 |
virtual rtl::Reference< 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 116 of file nameuno.hxx.
ScNamedRangesObj::ScNamedRangesObj | ( | ScDocShell * | pDocSh | ) |
Definition at line 422 of file nameuno.cxx.
References ScDocument::AddUnoObject(), ScDocShell::GetDocument(), and pDocShell.
|
overridevirtual |
Definition at line 429 of file nameuno.cxx.
References ScDocShell::GetDocument(), pDocShell, and ScDocument::RemoveUnoObject().
|
overridevirtual |
Definition at line 707 of file nameuno.cxx.
References ScDocShell::GetDocument(), ScDocument::GetNamedRangesLockCount(), lock(), pDocShell, and ScDocument::SetNamedRangesLockCount().
|
overridevirtual |
XNamedRanges.
Definition at line 449 of file nameuno.cxx.
References aName, ScRangeData::ColHeader, COLUMN_HEADER, ScRangeData::Criteria, ScRangeName::findByUpperName(), ScGlobal::getCharClass(), ScDocShell::GetDocFunc(), ScDocShell::GetDocument(), GetRangeName_Impl(), GetTab_Impl(), formula::FormulaGrammar::GRAM_API, ScRangeData::IsNameValid(), mbModifyAndBroadcast, ScRangeData::Name, ScRangeData::NAME_INVALID_BAD_STRING, ScRangeData::NAME_INVALID_CELL_REF, ScRangeData::NAME_VALID, pDocShell, ScRangeData::PrintArea, ROW_HEADER, ScRangeData::RowHeader, and ScDocFunc::SetNewRangeNames().
|
overridevirtual |
this cannot be an enum, because multiple bits can be set !!!
Definition at line 505 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 563 of file nameuno.cxx.
|
overridevirtual |
Definition at line 588 of file nameuno.cxx.
References GetObjectByIndex_Impl(), and nIndex.
|
overridevirtual |
|
overridevirtual |
XIndexAccess.
Definition at line 571 of file nameuno.cxx.
References GetRangeName_Impl(), lcl_UserVisibleName(), and pDocShell.
Referenced by getElementNames(), and hasElements().
|
overridevirtual |
Definition at line 648 of file nameuno.cxx.
References aSeq, getCount(), GetRangeName_Impl(), lcl_UserVisibleName(), and pDocShell.
|
overridevirtual |
XElementAccess.
Definition at line 598 of file nameuno.cxx.
References cppu::UnoType< typename T >::get().
|
overridevirtual |
XServiceInfo.
|
privatepure virtual |
Implemented in ScGlobalNamedRangesObj, and ScLocalNamedRangesObj.
Referenced by getByIndex().
|
privatepure virtual |
Implemented in ScGlobalNamedRangesObj, and ScLocalNamedRangesObj.
|
overridevirtual |
|
overridevirtual |
Definition at line 625 of file nameuno.cxx.
References Any, mbModifyAndBroadcast, and SC_UNO_MODIFY_BROADCAST.
|
privatepure virtual |
Implemented in ScGlobalNamedRangesObj, and ScLocalNamedRangesObj.
Referenced by addNewByName(), getCount(), getElementNames(), hasByName(), and removeByName().
|
overridevirtual |
|
privatepure virtual |
Implemented in ScGlobalNamedRangesObj, and ScLocalNamedRangesObj.
Referenced by addNewByName(), addNewFromTitles(), and removeByName().
|
overridevirtual |
Definition at line 671 of file nameuno.cxx.
References aName, ScRangeName::findByUpperName(), ScGlobal::getCharClass(), GetRangeName_Impl(), lcl_UserVisibleName(), pData, and pDocShell.
Referenced by ScGlobalNamedRangesObj::GetObjectByName_Impl(), and ScLocalNamedRangesObj::GetObjectByName_Impl().
|
overridevirtual |
Definition at line 603 of file nameuno.cxx.
References getCount().
|
overridevirtual |
XActionLockable.
Definition at line 701 of file nameuno.cxx.
References ScDocShell::GetDocument(), ScDocument::GetNamedRangesLockCount(), and pDocShell.
|
inline |
Definition at line 153 of file nameuno.hxx.
References mbModifyAndBroadcast.
|
protected |
called from the XActionLockable interface methods on initial locking
Definition at line 688 of file nameuno.cxx.
References ScDocShell::GetDocument(), pDocShell, and ScDocument::PreprocessRangeNameUpdate().
Referenced by addActionLock(), and setActionLocks().
|
overridevirtual |
Reimplemented from SfxListener.
Definition at line 437 of file nameuno.cxx.
References SfxHint::GetId(), and pDocShell.
|
overridevirtual |
Definition at line 553 of file nameuno.cxx.
References ScDocShell::GetDocFunc(), ScDocFunc::InsertNameList(), and pDocShell.
|
overridevirtual |
Definition at line 720 of file nameuno.cxx.
References ScDocShell::GetDocument(), ScDocument::GetNamedRangesLockCount(), pDocShell, ScDocument::SetNamedRangesLockCount(), and unlock().
|
overridevirtual |
Definition at line 529 of file nameuno.cxx.
References aName, ScRangeName::findByUpperName(), ScGlobal::getCharClass(), ScDocShell::GetDocFunc(), GetRangeName_Impl(), GetTab_Impl(), lcl_UserVisibleName(), mbModifyAndBroadcast, pData, pDocShell, and ScDocFunc::SetNewRangeNames().
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Definition at line 755 of file nameuno.cxx.
References ScDocShell::GetDocument(), ScDocument::GetNamedRangesLockCount(), pDocShell, ScDocument::SetNamedRangesLockCount(), and unlock().
|
overridevirtual |
Definition at line 736 of file nameuno.cxx.
References ScDocShell::GetDocument(), ScDocument::GetNamedRangesLockCount(), lock(), pDocShell, ScDocument::SetNamedRangesLockCount(), and unlock().
|
overridevirtual |
Definition at line 616 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 694 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 130 of file nameuno.hxx.
Referenced by addNewByName(), getPropertyValue(), IsModifyAndBroadcast(), removeByName(), and setPropertyValue().
|
protected |
Definition at line 140 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().