sync master with lastest vba changes
[ooovba.git] / sc / inc / cursuno.hxx
blob79741fb0ed337ff08de49aae0977346fc2f47163
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: cursuno.hxx,v $
10 * $Revision: 1.6 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef SC_CURSUNO_HXX
32 #define SC_CURSUNO_HXX
34 #include "cellsuno.hxx"
35 #include <com/sun/star/table/XCellCursor.hpp>
36 #include <com/sun/star/sheet/XSheetCellCursor.hpp>
37 #include <com/sun/star/sheet/XUsedAreaCursor.hpp>
39 class ScCellCursorObj : public ScCellRangeObj,
40 public com::sun::star::sheet::XSheetCellCursor,
41 public com::sun::star::sheet::XUsedAreaCursor,
42 public com::sun::star::table::XCellCursor
44 public:
45 ScCellCursorObj(ScDocShell* pDocSh, const ScRange& rR);
46 virtual ~ScCellCursorObj();
48 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(
49 const ::com::sun::star::uno::Type & rType )
50 throw(::com::sun::star::uno::RuntimeException);
51 virtual void SAL_CALL acquire() throw();
52 virtual void SAL_CALL release() throw();
54 // XSheetCellCursor
55 virtual void SAL_CALL collapseToCurrentRegion() throw(::com::sun::star::uno::RuntimeException);
56 virtual void SAL_CALL collapseToCurrentArray() throw(::com::sun::star::uno::RuntimeException);
57 virtual void SAL_CALL collapseToMergedArea() throw(::com::sun::star::uno::RuntimeException);
58 virtual void SAL_CALL expandToEntireColumns() throw(::com::sun::star::uno::RuntimeException);
59 virtual void SAL_CALL expandToEntireRows() throw(::com::sun::star::uno::RuntimeException);
60 virtual void SAL_CALL collapseToSize( sal_Int32 nColumns, sal_Int32 nRows )
61 throw(::com::sun::star::uno::RuntimeException);
63 // XUsedAreaCursor
64 virtual void SAL_CALL gotoStartOfUsedArea( sal_Bool bExpand )
65 throw(::com::sun::star::uno::RuntimeException);
66 virtual void SAL_CALL gotoEndOfUsedArea( sal_Bool bExpand )
67 throw(::com::sun::star::uno::RuntimeException);
69 // XCellCursor
70 virtual void SAL_CALL gotoStart() throw(::com::sun::star::uno::RuntimeException);
71 virtual void SAL_CALL gotoEnd() throw(::com::sun::star::uno::RuntimeException);
72 virtual void SAL_CALL gotoNext() throw(::com::sun::star::uno::RuntimeException);
73 virtual void SAL_CALL gotoPrevious() throw(::com::sun::star::uno::RuntimeException);
74 virtual void SAL_CALL gotoOffset( sal_Int32 nColumnOffset, sal_Int32 nRowOffset )
75 throw(::com::sun::star::uno::RuntimeException);
77 // XSheetCellRange
78 virtual ::com::sun::star::uno::Reference< ::com::sun::star::sheet::XSpreadsheet > SAL_CALL
79 getSpreadsheet() throw(::com::sun::star::uno::RuntimeException);
81 // XCellRange
82 virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCell > SAL_CALL
83 getCellByPosition( sal_Int32 nColumn, sal_Int32 nRow )
84 throw(::com::sun::star::lang::IndexOutOfBoundsException,
85 ::com::sun::star::uno::RuntimeException);
86 virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCellRange > SAL_CALL
87 getCellRangeByPosition( sal_Int32 nLeft, sal_Int32 nTop,
88 sal_Int32 nRight, sal_Int32 nBottom )
89 throw(::com::sun::star::lang::IndexOutOfBoundsException,
90 ::com::sun::star::uno::RuntimeException);
91 using ScCellRangeObj::getCellRangeByName;
92 virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCellRange > SAL_CALL
93 getCellRangeByName( const ::rtl::OUString& aRange )
94 throw(::com::sun::star::uno::RuntimeException);
96 // XServiceInfo
97 virtual ::rtl::OUString SAL_CALL getImplementationName()
98 throw(::com::sun::star::uno::RuntimeException);
99 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
100 throw(::com::sun::star::uno::RuntimeException);
101 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
102 throw(::com::sun::star::uno::RuntimeException);
104 // XTypeProvider
105 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes()
106 throw(::com::sun::star::uno::RuntimeException);
107 virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId()
108 throw(::com::sun::star::uno::RuntimeException);
112 #endif