xref: /trunk/main/sc/inc/cursuno.hxx (revision 914d351e5f5b84e4342a86d6ab8d4aca7308b9bd)
1*38d50f7bSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*38d50f7bSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*38d50f7bSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*38d50f7bSAndrew Rist  * distributed with this work for additional information
6*38d50f7bSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*38d50f7bSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*38d50f7bSAndrew Rist  * "License"); you may not use this file except in compliance
9*38d50f7bSAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*38d50f7bSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*38d50f7bSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*38d50f7bSAndrew Rist  * software distributed under the License is distributed on an
15*38d50f7bSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*38d50f7bSAndrew Rist  * KIND, either express or implied.  See the License for the
17*38d50f7bSAndrew Rist  * specific language governing permissions and limitations
18*38d50f7bSAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*38d50f7bSAndrew Rist  *************************************************************/
21*38d50f7bSAndrew Rist 
22*38d50f7bSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef SC_CURSUNO_HXX
25cdf0e10cSrcweir #define SC_CURSUNO_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include "cellsuno.hxx"
28cdf0e10cSrcweir #include <com/sun/star/table/XCellCursor.hpp>
29cdf0e10cSrcweir #include <com/sun/star/sheet/XSheetCellCursor.hpp>
30cdf0e10cSrcweir #include <com/sun/star/sheet/XUsedAreaCursor.hpp>
31cdf0e10cSrcweir 
32cdf0e10cSrcweir class ScCellCursorObj : public ScCellRangeObj,
33cdf0e10cSrcweir                         public com::sun::star::sheet::XSheetCellCursor,
34cdf0e10cSrcweir                         public com::sun::star::sheet::XUsedAreaCursor,
35cdf0e10cSrcweir                         public com::sun::star::table::XCellCursor
36cdf0e10cSrcweir {
37cdf0e10cSrcweir public:
38cdf0e10cSrcweir                             ScCellCursorObj(ScDocShell* pDocSh, const ScRange& rR);
39cdf0e10cSrcweir     virtual                 ~ScCellCursorObj();
40cdf0e10cSrcweir 
41cdf0e10cSrcweir     virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(
42cdf0e10cSrcweir                                 const ::com::sun::star::uno::Type & rType )
43cdf0e10cSrcweir                                     throw(::com::sun::star::uno::RuntimeException);
44cdf0e10cSrcweir     virtual void SAL_CALL   acquire() throw();
45cdf0e10cSrcweir     virtual void SAL_CALL   release() throw();
46cdf0e10cSrcweir 
47cdf0e10cSrcweir                             // XSheetCellCursor
48cdf0e10cSrcweir     virtual void SAL_CALL   collapseToCurrentRegion() throw(::com::sun::star::uno::RuntimeException);
49cdf0e10cSrcweir     virtual void SAL_CALL   collapseToCurrentArray() throw(::com::sun::star::uno::RuntimeException);
50cdf0e10cSrcweir     virtual void SAL_CALL   collapseToMergedArea() throw(::com::sun::star::uno::RuntimeException);
51cdf0e10cSrcweir     virtual void SAL_CALL   expandToEntireColumns() throw(::com::sun::star::uno::RuntimeException);
52cdf0e10cSrcweir     virtual void SAL_CALL   expandToEntireRows() throw(::com::sun::star::uno::RuntimeException);
53cdf0e10cSrcweir     virtual void SAL_CALL   collapseToSize( sal_Int32 nColumns, sal_Int32 nRows )
54cdf0e10cSrcweir                                 throw(::com::sun::star::uno::RuntimeException);
55cdf0e10cSrcweir 
56cdf0e10cSrcweir                             // XUsedAreaCursor
57cdf0e10cSrcweir     virtual void SAL_CALL   gotoStartOfUsedArea( sal_Bool bExpand )
58cdf0e10cSrcweir                                 throw(::com::sun::star::uno::RuntimeException);
59cdf0e10cSrcweir     virtual void SAL_CALL   gotoEndOfUsedArea( sal_Bool bExpand )
60cdf0e10cSrcweir                                 throw(::com::sun::star::uno::RuntimeException);
61cdf0e10cSrcweir 
62cdf0e10cSrcweir                             // XCellCursor
63cdf0e10cSrcweir     virtual void SAL_CALL   gotoStart() throw(::com::sun::star::uno::RuntimeException);
64cdf0e10cSrcweir     virtual void SAL_CALL   gotoEnd() throw(::com::sun::star::uno::RuntimeException);
65cdf0e10cSrcweir     virtual void SAL_CALL   gotoNext() throw(::com::sun::star::uno::RuntimeException);
66cdf0e10cSrcweir     virtual void SAL_CALL   gotoPrevious() throw(::com::sun::star::uno::RuntimeException);
67cdf0e10cSrcweir     virtual void SAL_CALL   gotoOffset( sal_Int32 nColumnOffset, sal_Int32 nRowOffset )
68cdf0e10cSrcweir                                 throw(::com::sun::star::uno::RuntimeException);
69cdf0e10cSrcweir 
70cdf0e10cSrcweir                             // XSheetCellRange
71cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::sheet::XSpreadsheet > SAL_CALL
72cdf0e10cSrcweir                             getSpreadsheet() throw(::com::sun::star::uno::RuntimeException);
73cdf0e10cSrcweir 
74cdf0e10cSrcweir                             // XCellRange
75cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCell > SAL_CALL
76cdf0e10cSrcweir                             getCellByPosition( sal_Int32 nColumn, sal_Int32 nRow )
77cdf0e10cSrcweir                                 throw(::com::sun::star::lang::IndexOutOfBoundsException,
78cdf0e10cSrcweir                                     ::com::sun::star::uno::RuntimeException);
79cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCellRange > SAL_CALL
80cdf0e10cSrcweir                             getCellRangeByPosition( sal_Int32 nLeft, sal_Int32 nTop,
81cdf0e10cSrcweir                                 sal_Int32 nRight, sal_Int32 nBottom )
82cdf0e10cSrcweir                                     throw(::com::sun::star::lang::IndexOutOfBoundsException,
83cdf0e10cSrcweir                                         ::com::sun::star::uno::RuntimeException);
84cdf0e10cSrcweir     using ScCellRangeObj::getCellRangeByName;
85cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCellRange > SAL_CALL
86cdf0e10cSrcweir                             getCellRangeByName( const ::rtl::OUString& aRange )
87cdf0e10cSrcweir                                 throw(::com::sun::star::uno::RuntimeException);
88cdf0e10cSrcweir 
89cdf0e10cSrcweir                             // XServiceInfo
90cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getImplementationName()
91cdf0e10cSrcweir                                 throw(::com::sun::star::uno::RuntimeException);
92cdf0e10cSrcweir     virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
93cdf0e10cSrcweir                                 throw(::com::sun::star::uno::RuntimeException);
94cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
95cdf0e10cSrcweir                                 throw(::com::sun::star::uno::RuntimeException);
96cdf0e10cSrcweir 
97cdf0e10cSrcweir                             // XTypeProvider
98cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes()
99cdf0e10cSrcweir                                 throw(::com::sun::star::uno::RuntimeException);
100cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId()
101cdf0e10cSrcweir                                 throw(::com::sun::star::uno::RuntimeException);
102cdf0e10cSrcweir };
103cdf0e10cSrcweir 
104cdf0e10cSrcweir 
105cdf0e10cSrcweir #endif
106