LibreOffice Module sc (master) 1
|
#include <nameuno.hxx>
Public Member Functions | |
ScNamedRangeObj (rtl::Reference< ScNamedRangesObj > xParent, ScDocShell *pDocSh, OUString aNm, css::uno::Reference< css::container::XNamed > const &xSheet=css::uno::Reference< css::container::XNamed >()) | |
virtual | ~ScNamedRangeObj () override |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override |
virtual OUString SAL_CALL | getContent () override |
XNamedRange. More... | |
virtual void SAL_CALL | setContent (const OUString &aContent) override |
virtual css::table::CellAddress SAL_CALL | getReferencePosition () override |
virtual void SAL_CALL | setReferencePosition (const css::table::CellAddress &aReferencePosition) override |
virtual sal_Int32 SAL_CALL | getType () override |
virtual void SAL_CALL | setType (sal_Int32 nType) override |
virtual css::uno::Sequence< css::sheet::FormulaToken > SAL_CALL | getTokens () override |
XFormulaTokens. More... | |
virtual void SAL_CALL | setTokens (const css::uno::Sequence< css::sheet::FormulaToken > &aTokens) override |
virtual OUString SAL_CALL | getName () override |
XNamed. More... | |
virtual void SAL_CALL | setName (const OUString &aName) override |
virtual css::uno::Reference< css::table::XCellRange > SAL_CALL | getReferredCells () override |
XCellRangeReferrer. More... | |
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 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 |
Private Member Functions | |
ScRangeData * | GetRangeData_Impl () |
void | Modify_Impl (const OUString *pNewName, const ScTokenArray *pNewTokens, const OUString *pNewContent, const ScAddress *pNewPos, const ScRangeData::Type *pNewType, const formula::FormulaGrammar::Grammar eGrammar) |
SCTAB | GetTab_Impl () |
Private Attributes | |
rtl::Reference< ScNamedRangesObj > | mxParent |
ScDocShell * | pDocShell |
OUString | aName |
css::uno::Reference< css::container::XNamed > | mxSheet |
Friends | |
class | ScVbaName |
Definition at line 44 of file nameuno.hxx.
ScNamedRangeObj::ScNamedRangeObj | ( | rtl::Reference< ScNamedRangesObj > | xParent, |
ScDocShell * | pDocSh, | ||
OUString | aNm, | ||
css::uno::Reference< css::container::XNamed > const & | xSheet = css::uno::Reference< css::container::XNamed > () |
||
) |
Definition at line 85 of file nameuno.cxx.
References ScDocument::AddUnoObject(), aName, ScDocShell::GetDocument(), mxParent, and pDocShell.
|
overridevirtual |
Definition at line 94 of file nameuno.cxx.
References ScDocShell::GetDocument(), pDocShell, and ScDocument::RemoveUnoObject().
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
XNamedRange.
Definition at line 232 of file nameuno.cxx.
References GetRangeData_Impl(), formula::FormulaGrammar::GRAM_API, and pData.
|
overridevirtual |
XServiceInfo.
Definition at line 407 of file nameuno.cxx.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Definition at line 377 of file nameuno.cxx.
References aName, GetRangeData_Impl(), pData, SC_UNO_LINKDISPBIT, SC_UNO_LINKDISPNAME, SC_UNONAME_ISSHAREDFMLA, and SC_UNONAME_TOKENINDEX.
|
private |
Definition at line 112 of file nameuno.cxx.
References aName, ScRangeName::findByUpperName(), ScGlobal::getCharClass(), ScDocShell::GetDocument(), ScDocument::GetRangeName(), GetTab_Impl(), pDocShell, and ScRangeData::ValidateTabRefs().
Referenced by getContent(), ScVbaName::getContent(), getPropertyValue(), getReferencePosition(), getReferredCells(), getTokens(), getType(), and ScVbaName::setContent().
|
overridevirtual |
Definition at line 251 of file nameuno.cxx.
References ScAddress::Col(), ScDocShell::GetDocument(), GetRangeData_Impl(), ScDocument::GetTableCount(), pData, pDocShell, ScAddress::Row(), and ScAddress::Tab().
|
overridevirtual |
XCellRangeReferrer.
static function to create ScCellObj/ScCellRangeObj at ScCellRangeObj ???
Definition at line 343 of file nameuno.cxx.
References ScRange::aEnd, ScRange::aStart, GetRangeData_Impl(), pData, and pDocShell.
|
overridevirtual |
Definition at line 417 of file nameuno.cxx.
References SCLINKTARGET_SERVICE, and SCNAMEDRANGEOBJ_SERVICE.
|
private |
Definition at line 133 of file nameuno.cxx.
References ScDocShell::GetDocument(), ScDocument::GetTable(), mxSheet, pDocShell, and sName.
Referenced by GetRangeData_Impl(), and Modify_Impl().
|
overridevirtual |
XFormulaTokens.
Definition at line 315 of file nameuno.cxx.
References ScTokenConversion::ConvertToTokenSequence(), ScDocShell::GetDocument(), GetRangeData_Impl(), pData, and pDocShell.
|
overridevirtual |
Definition at line 284 of file nameuno.cxx.
References ScRangeData::ColHeader, COLUMN_HEADER, ScRangeData::Criteria, GetRangeData_Impl(), nType, pData, ScRangeData::PrintArea, ROW_HEADER, and ScRangeData::RowHeader.
|
private |
broadcast?
uno::Exception/Error or something
Definition at line 152 of file nameuno.cxx.
References aName, ScRangeName::findByUpperName(), ScGlobal::getCharClass(), ScDocShell::GetDocFunc(), ScDocShell::GetDocument(), ScRangeData::GetIndex(), ScRangeData::GetName(), ScRangeData::GetPos(), ScDocument::GetRangeName(), ScRangeData::GetSymbol(), GetTab_Impl(), ScRangeData::GetType(), mxParent, nType, pDocShell, ScRangeData::SetIndex(), and ScDocFunc::SetNewRangeNames().
Referenced by setContent(), setName(), setReferencePosition(), setTokens(), and setType().
|
overridevirtual |
Reimplemented from SfxListener.
Definition at line 102 of file nameuno.cxx.
References SfxHint::GetId(), and pDocShell.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Definition at line 243 of file nameuno.cxx.
References formula::FormulaGrammar::GRAM_API, and Modify_Impl().
|
overridevirtual |
adapt formulas ?????
Definition at line 219 of file nameuno.cxx.
References aName, formula::FormulaGrammar::GRAM_API, and Modify_Impl().
|
overridevirtual |
Definition at line 368 of file nameuno.cxx.
References SC_UNONAME_ISSHAREDFMLA.
|
overridevirtual |
Definition at line 276 of file nameuno.cxx.
References formula::FormulaGrammar::GRAM_API, and Modify_Impl().
|
overridevirtual |
Definition at line 329 of file nameuno.cxx.
References ScTokenConversion::ConvertToTokenArray(), ScDocShell::GetDocument(), formula::FormulaGrammar::GRAM_API, Modify_Impl(), and pDocShell.
|
overridevirtual |
Definition at line 300 of file nameuno.cxx.
References ScRangeData::ColHeader, COLUMN_HEADER, ScRangeData::Criteria, formula::FormulaGrammar::GRAM_API, Modify_Impl(), ScRangeData::Name, ScRangeData::PrintArea, ROW_HEADER, and ScRangeData::RowHeader.
|
overridevirtual |
Definition at line 412 of file nameuno.cxx.
References cppu::supportsService().
|
friend |
Definition at line 59 of file nameuno.hxx.
|
private |
Definition at line 55 of file nameuno.hxx.
Referenced by getName(), getPropertyValue(), GetRangeData_Impl(), Modify_Impl(), and setName().
|
private |
Definition at line 53 of file nameuno.hxx.
Referenced by Modify_Impl().
|
private |
Definition at line 56 of file nameuno.hxx.
Referenced by GetTab_Impl().
|
private |
Definition at line 54 of file nameuno.hxx.
Referenced by GetRangeData_Impl(), getReferencePosition(), getReferredCells(), GetTab_Impl(), getTokens(), Modify_Impl(), Notify(), ScNamedRangeObj(), ScVbaName::setContent(), setTokens(), and ~ScNamedRangeObj().