26#include <com/sun/star/sheet/XLabelRange.hpp>
27#include <com/sun/star/sheet/XLabelRanges.hpp>
28#include <com/sun/star/sheet/XCellRangeReferrer.hpp>
29#include <com/sun/star/sheet/XNamedRange.hpp>
30#include <com/sun/star/sheet/XFormulaTokens.hpp>
31#include <com/sun/star/sheet/XNamedRanges.hpp>
32#include <com/sun/star/container/XEnumerationAccess.hpp>
33#include <com/sun/star/lang/XServiceInfo.hpp>
34#include <com/sun/star/beans/XPropertySet.hpp>
35#include <com/sun/star/document/XActionLockable.hpp>
45 css::sheet::XNamedRange,
46 css::sheet::XFormulaTokens,
47 css::sheet::XCellRangeReferrer,
48 css::beans::XPropertySet,
49 css::lang::XServiceInfo >,
56 css::uno::Reference< css::container::XNamed >
mxSheet;
61 void Modify_Impl(
const OUString* pNewName,
62 const ScTokenArray* pNewTokens,
const OUString* pNewContent,
69 css::uno::Reference< css::container::XNamed >
const & xSheet = css::uno::Reference< css::container::XNamed > ());
75 virtual OUString SAL_CALL
getContent()
override;
76 virtual void SAL_CALL
setContent(
const OUString& aContent )
override;
77 virtual css::table::CellAddress SAL_CALL getReferencePosition()
override;
78 virtual void SAL_CALL setReferencePosition(
79 const css::table::CellAddress& aReferencePosition )
override;
80 virtual sal_Int32 SAL_CALL
getType()
override;
81 virtual void SAL_CALL setType( sal_Int32
nType )
override;
84 virtual css::uno::Sequence< css::sheet::FormulaToken > SAL_CALL getTokens()
override;
85 virtual void SAL_CALL setTokens(
const css::uno::Sequence< css::sheet::FormulaToken >& aTokens )
override;
88 virtual OUString SAL_CALL
getName()
override;
89 virtual void SAL_CALL
setName(
const OUString& aName )
override;
92 virtual css::uno::Reference< css::table::XCellRange > SAL_CALL
93 getReferredCells()
override;
96 virtual css::uno::Reference< css::beans::XPropertySetInfo >
97 SAL_CALL getPropertySetInfo()
override;
99 const css::uno::Any& aValue )
override;
100 virtual css::uno::Any SAL_CALL
getPropertyValue(
const OUString& PropertyName )
override;
102 const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener )
override;
104 const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener )
override;
106 const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
override;
108 const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
override;
117 css::sheet::XNamedRanges,
118 css::container::XEnumerationAccess,
119 css::container::XIndexAccess,
120 css::beans::XPropertySet,
121 css::document::XActionLockable,
122 css::lang::XServiceInfo >,
156 virtual void SAL_CALL
addNewByName(
const OUString& aName,
const OUString& aContent,
157 const css::table::CellAddress& aPosition, sal_Int32
nType )
override;
158 virtual void SAL_CALL
addNewFromTitles(
const css::table::CellRangeAddress& aSource,
159 css::sheet::Border aBorder )
override;
160 virtual void SAL_CALL
removeByName(
const OUString& aName )
override;
161 virtual void SAL_CALL
outputList(
const css::table::CellAddress& aOutputPosition )
override;
164 virtual css::uno::Any SAL_CALL
getByName(
const OUString& aName )
override;
165 virtual css::uno::Sequence< OUString > SAL_CALL
getElementNames()
override;
169 virtual sal_Int32 SAL_CALL
getCount()
override;
173 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL
181 virtual css::uno::Reference< css::beans::XPropertySetInfo >
184 const css::uno::Any& aValue )
override;
186 const OUString& PropertyName )
override;
188 const css::uno::Reference<
189 css::beans::XPropertyChangeListener >& xListener )
override;
191 const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener )
override;
193 const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
override;
195 const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
override;
235 css::uno::Reference< css::container::XNamed >
mxSheet;
242 css::sheet::XLabelRange,
243 css::lang::XServiceInfo >,
262 virtual css::table::CellRangeAddress SAL_CALL
getLabelArea()
override;
263 virtual void SAL_CALL
setLabelArea(
const css::table::CellRangeAddress& aLabelArea )
override;
264 virtual css::table::CellRangeAddress SAL_CALL
getDataArea()
override;
265 virtual void SAL_CALL
setDataArea(
const css::table::CellRangeAddress& aDataArea )
override;
274 css::sheet::XLabelRanges,
275 css::container::XEnumerationAccess,
276 css::lang::XServiceInfo >,
292 virtual void SAL_CALL
addNew(
const css::table::CellRangeAddress& aLabelArea,
293 const css::table::CellRangeAddress& aDataArea )
override;
294 virtual void SAL_CALL
removeByIndex( sal_Int32 nIndex )
override;
297 virtual sal_Int32 SAL_CALL
getCount()
override;
301 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL
virtual OUString SAL_CALL getImplementationName() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual ~ScGlobalNamedRangesObj() override
virtual ScRangeName * GetRangeName_Impl() override
virtual rtl::Reference< ScNamedRangeObj > GetObjectByName_Impl(const OUString &aName) override
ScGlobalNamedRangesObj(ScDocShell *pDocSh)
virtual SCTAB GetTab_Impl() override
virtual rtl::Reference< ScNamedRangeObj > GetObjectByIndex_Impl(sal_uInt16 nIndex) override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual OUString SAL_CALL getImplementationName() override
XServiceInfo.
ScRange aRange
criterion to find range
virtual void SAL_CALL setDataArea(const css::table::CellRangeAddress &aDataArea) override
virtual css::table::CellRangeAddress SAL_CALL getLabelArea() override
XLabelRange.
virtual ~ScLabelRangeObj() override
virtual css::table::CellRangeAddress SAL_CALL getDataArea() override
ScLabelRangeObj(ScDocShell *pDocSh, bool bCol, const ScRange &rR)
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL setLabelArea(const css::table::CellRangeAddress &aLabelArea) override
void Modify_Impl(const ScRange *pLabel, const ScRange *pData)
ScRangePair * GetData_Impl()
rtl::Reference< ScLabelRangeObj > GetObjectByIndex_Impl(size_t nIndex)
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
virtual sal_Int32 SAL_CALL getCount() override
XIndexAccess.
virtual OUString SAL_CALL getImplementationName() override
XServiceInfo.
ScLabelRangesObj(ScDocShell *pDocSh, bool bCol)
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
XEnumerationAccess.
virtual sal_Bool SAL_CALL hasElements() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual void SAL_CALL removeByIndex(sal_Int32 nIndex) override
virtual css::uno::Type SAL_CALL getElementType() override
XElementAccess.
virtual void SAL_CALL addNew(const css::table::CellRangeAddress &aLabelArea, const css::table::CellRangeAddress &aDataArea) override
XLabelRanges.
virtual ~ScLabelRangesObj() override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 Index) override
virtual ~ScLocalNamedRangesObj() override
virtual rtl::Reference< ScNamedRangeObj > GetObjectByIndex_Impl(sal_uInt16 nIndex) override
virtual SCTAB GetTab_Impl() override
virtual ScRangeName * GetRangeName_Impl() override
css::uno::Reference< css::container::XNamed > mxSheet
ScLocalNamedRangesObj(ScDocShell *pDocSh, css::uno::Reference< css::container::XNamed > xNamed)
virtual rtl::Reference< ScNamedRangeObj > GetObjectByName_Impl(const OUString &aName) override
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
rtl::Reference< ScNamedRangesObj > mxParent
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
css::uno::Reference< css::container::XNamed > mxSheet
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 ~ScNamedRangesObj() override
virtual void SAL_CALL outputList(const css::table::CellAddress &aOutputPosition) override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Any SAL_CALL getByName(const OUString &aName) override
XNameAccess.
virtual void SAL_CALL addNewFromTitles(const css::table::CellRangeAddress &aSource, css::sheet::Border aBorder) override
virtual void SAL_CALL setActionLocks(sal_Int16 nLock) override
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
virtual ScRangeName * GetRangeName_Impl()=0
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual sal_Bool SAL_CALL isActionLocked() override
XActionLockable.
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual void SAL_CALL removeActionLock() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual SCTAB GetTab_Impl()=0
virtual void SAL_CALL addNewByName(const OUString &aName, const OUString &aContent, const css::table::CellAddress &aPosition, sal_Int32 nType) override
XNamedRanges.
virtual void SAL_CALL addActionLock() override
bool IsModifyAndBroadcast() const
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
XPropertySet.
virtual sal_Bool SAL_CALL hasByName(const OUString &aName) override
virtual sal_Int16 SAL_CALL resetActionLocks() override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 Index) override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
virtual sal_Int32 SAL_CALL getCount() override
XIndexAccess.
ScNamedRangesObj(ScDocShell *pDocSh)
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
virtual rtl::Reference< ScNamedRangeObj > GetObjectByName_Impl(const OUString &aName)=0
virtual OUString SAL_CALL getImplementationName() override
XServiceInfo.
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
virtual css::uno::Type SAL_CALL getElementType() override
XElementAccess.
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
void unlock()
called from the XActionLockable interface methods on final unlock
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
XEnumerationAccess.
bool mbModifyAndBroadcast
if true, adding new name or modifying existing one will set the document 'modified' and broadcast the...
virtual rtl::Reference< ScNamedRangeObj > GetObjectByIndex_Impl(sal_uInt16 nIndex)=0
virtual sal_Bool SAL_CALL hasElements() override
void lock()
called from the XActionLockable interface methods on initial locking
virtual void SAL_CALL removeByName(const OUString &aName) override
OUString getContent(const formula::FormulaGrammar::Grammar eGrammar)
virtual void SAL_CALL setName(const OUString &rName) override
void setContent(const OUString &sContent, const formula::FormulaGrammar::Grammar eGrammar)
virtual OUString SAL_CALL getName() override
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint)
VBAHELPER_DLLPUBLIC bool setPropertyValue(css::uno::Sequence< css::beans::PropertyValue > &aProp, const OUString &aName, const css::uno::Any &aValue)
bool getPropertyValue(ValueType &rValue, css::uno::Reference< css::beans::XPropertySet > const &xPropSet, OUString const &propName)
bool getType(BSTR name, Type &type)