Bump version to 4.3-4
[LibreOffice.git] / sc / inc / cursuno.hxx
blob9d3b3b14ad27fe9d284c1bb24275676a03f0a8b2
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_SC_INC_CURSUNO_HXX
21 #define INCLUDED_SC_INC_CURSUNO_HXX
23 #include "cellsuno.hxx"
24 #include <com/sun/star/table/XCellCursor.hpp>
25 #include <com/sun/star/sheet/XSheetCellCursor.hpp>
26 #include <com/sun/star/sheet/XUsedAreaCursor.hpp>
28 class ScCellCursorObj : public ScCellRangeObj,
29 public com::sun::star::sheet::XSheetCellCursor,
30 public com::sun::star::sheet::XUsedAreaCursor,
31 public com::sun::star::table::XCellCursor
33 public:
34 ScCellCursorObj(ScDocShell* pDocSh, const ScRange& rR);
35 virtual ~ScCellCursorObj();
37 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(
38 const ::com::sun::star::uno::Type & rType )
39 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
40 virtual void SAL_CALL acquire() throw() SAL_OVERRIDE;
41 virtual void SAL_CALL release() throw() SAL_OVERRIDE;
43 // XSheetCellCursor
44 virtual void SAL_CALL collapseToCurrentRegion() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
45 virtual void SAL_CALL collapseToCurrentArray()
46 throw(::com::sun::star::uno::RuntimeException,
47 std::exception) SAL_OVERRIDE;
48 virtual void SAL_CALL collapseToMergedArea() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
49 virtual void SAL_CALL expandToEntireColumns() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
50 virtual void SAL_CALL expandToEntireRows() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
51 virtual void SAL_CALL collapseToSize( sal_Int32 nColumns, sal_Int32 nRows )
52 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
54 // XUsedAreaCursor
55 virtual void SAL_CALL gotoStartOfUsedArea( sal_Bool bExpand )
56 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
57 virtual void SAL_CALL gotoEndOfUsedArea( sal_Bool bExpand )
58 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
60 // XCellCursor
61 virtual void SAL_CALL gotoStart() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
62 virtual void SAL_CALL gotoEnd() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
63 virtual void SAL_CALL gotoNext() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
64 virtual void SAL_CALL gotoPrevious() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
65 virtual void SAL_CALL gotoOffset( sal_Int32 nColumnOffset, sal_Int32 nRowOffset )
66 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
68 // XSheetCellRange
69 virtual ::com::sun::star::uno::Reference< ::com::sun::star::sheet::XSpreadsheet > SAL_CALL
70 getSpreadsheet() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
72 // XCellRange
73 virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCell > SAL_CALL
74 getCellByPosition( sal_Int32 nColumn, sal_Int32 nRow )
75 throw(::com::sun::star::lang::IndexOutOfBoundsException,
76 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
77 virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCellRange > SAL_CALL
78 getCellRangeByPosition( sal_Int32 nLeft, sal_Int32 nTop,
79 sal_Int32 nRight, sal_Int32 nBottom )
80 throw(::com::sun::star::lang::IndexOutOfBoundsException,
81 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
82 using ScCellRangeObj::getCellRangeByName;
83 virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCellRange > SAL_CALL
84 getCellRangeByName( const OUString& aRange )
85 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
87 // XServiceInfo
88 virtual OUString SAL_CALL getImplementationName()
89 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
90 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
91 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
92 virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
93 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
95 // XTypeProvider
96 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes()
97 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
98 virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId()
99 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
103 #endif
105 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */