summaryrefslogtreecommitdiff
path: root/sc/inc/nameuno.hxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2008-01-10 12:09:02 +0000
committerOliver Bolte <obo@openoffice.org>2008-01-10 12:09:02 +0000
commit45100f34469217ef5d74a6c31b33a71ba917f617 (patch)
treed830f00e6596d37414a0bade06aabc070e779600 /sc/inc/nameuno.hxx
parent02026cc850b2b0aece900ae7c16ad651f8daeb65 (diff)
INTEGRATION: CWS xmlfilter02 (1.4.402); FILE MERGED
2007/07/24 09:04:11 tbe 1.4.402.3: #i79890# API: Missing API to suppress update of all defined names 2007/07/23 13:49:36 tbe 1.4.402.2: #i79890# API: Missing API to suppress update of all defined names 2007/06/29 14:26:32 nn 1.4.402.1: #i75682# XFormulaTokens for named range
Diffstat (limited to 'sc/inc/nameuno.hxx')
-rw-r--r--sc/inc/nameuno.hxx45
1 files changed, 38 insertions, 7 deletions
diff --git a/sc/inc/nameuno.hxx b/sc/inc/nameuno.hxx
index ed2bf0383937..1e73e2ed01e3 100644
--- a/sc/inc/nameuno.hxx
+++ b/sc/inc/nameuno.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: nameuno.hxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 17:45:29 $
+ * last change: $Author: obo $ $Date: 2008-01-10 13:09:02 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -56,6 +56,9 @@
#ifndef _COM_SUN_STAR_SHEET_XNAMEDRANGE_HPP_
#include <com/sun/star/sheet/XNamedRange.hpp>
#endif
+#ifndef _COM_SUN_STAR_SHEET_XFORMULATOKENS_HPP_
+#include <com/sun/star/sheet/XFormulaTokens.hpp>
+#endif
#ifndef _COM_SUN_STAR_SHEET_XNAMEDRANGES_HPP_
#include <com/sun/star/sheet/XNamedRanges.hpp>
#endif
@@ -71,6 +74,9 @@
#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
#include <com/sun/star/beans/XPropertySet.hpp>
#endif
+#ifndef _COM_SUN_STAR_DOCUMENT_XACTIONLOCKABLE_HPP_
+#include <com/sun/star/document/XActionLockable.hpp>
+#endif
#ifndef _CPPUHELPER_IMPLBASE2_HXX_
#include <cppuhelper/implbase2.hxx>
@@ -78,16 +84,18 @@
#ifndef _CPPUHELPER_IMPLBASE3_HXX_
#include <cppuhelper/implbase3.hxx>
#endif
-#ifndef _CPPUHELPER_IMPLBASE4_HXX_
-#include <cppuhelper/implbase4.hxx>
+#ifndef _CPPUHELPER_IMPLBASE5_HXX_
+#include <cppuhelper/implbase5.hxx>
#endif
class ScDocShell;
class ScRangeData;
+class ScTokenArray;
-class ScNamedRangeObj : public ::cppu::WeakImplHelper4<
+class ScNamedRangeObj : public ::cppu::WeakImplHelper5<
::com::sun::star::sheet::XNamedRange,
+ ::com::sun::star::sheet::XFormulaTokens,
::com::sun::star::sheet::XCellRangeReferrer,
::com::sun::star::beans::XPropertySet,
::com::sun::star::lang::XServiceInfo >,
@@ -99,7 +107,8 @@ private:
private:
ScRangeData* GetRangeData_Impl();
- void Modify_Impl( const String* pNewName, const String* pNewContent,
+ void Modify_Impl( const String* pNewName,
+ const ScTokenArray* pNewTokens, const String* pNewContent,
const ScAddress* pNewPos, const sal_uInt16* pNewType );
public:
@@ -120,6 +129,13 @@ public:
virtual sal_Int32 SAL_CALL getType() throw(::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL setType( sal_Int32 nType ) throw(::com::sun::star::uno::RuntimeException);
+ // XFormulaTokens
+ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::sheet::FormulaToken > SAL_CALL getTokens()
+ throw (::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL setTokens( const ::com::sun::star::uno::Sequence<
+ ::com::sun::star::sheet::FormulaToken >& aTokens )
+ throw (::com::sun::star::uno::RuntimeException);
+
// XNamed
virtual ::rtl::OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL setName( const ::rtl::OUString& aName )
@@ -180,10 +196,11 @@ public:
};
-class ScNamedRangesObj : public ::cppu::WeakImplHelper4<
+class ScNamedRangesObj : public ::cppu::WeakImplHelper5<
::com::sun::star::sheet::XNamedRanges,
::com::sun::star::container::XEnumerationAccess,
::com::sun::star::container::XIndexAccess,
+ ::com::sun::star::document::XActionLockable,
::com::sun::star::lang::XServiceInfo >,
public SfxListener
{
@@ -193,6 +210,13 @@ private:
ScNamedRangeObj* GetObjectByIndex_Impl(sal_uInt16 nIndex);
ScNamedRangeObj* GetObjectByName_Impl(const ::rtl::OUString& aName);
+protected:
+ /** called from the XActionLockable interface methods on initial locking */
+ virtual void lock();
+
+ /** called from the XActionLockable interface methods on final unlock */
+ virtual void unlock();
+
public:
ScNamedRangesObj(ScDocShell* pDocSh);
virtual ~ScNamedRangesObj();
@@ -237,6 +261,13 @@ public:
throw(::com::sun::star::uno::RuntimeException);
virtual sal_Bool SAL_CALL hasElements() throw(::com::sun::star::uno::RuntimeException);
+ // XActionLockable
+ virtual sal_Bool SAL_CALL isActionLocked() throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL addActionLock() throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL removeActionLock() throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL setActionLocks( sal_Int16 nLock ) throw(::com::sun::star::uno::RuntimeException);
+ virtual sal_Int16 SAL_CALL resetActionLocks() throw(::com::sun::star::uno::RuntimeException);
+
// XServiceInfo
virtual ::rtl::OUString SAL_CALL getImplementationName()
throw(::com::sun::star::uno::RuntimeException);