Fix typo
[LibreOffice.git] / sc / inc / cursuno.hxx
blob848156475fd8a37b9918e08f170e2794cd2695b4
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 #pragma once
22 #include "cellsuno.hxx"
23 #include <com/sun/star/table/XCellCursor.hpp>
24 #include <com/sun/star/sheet/XSheetCellCursor.hpp>
25 #include <com/sun/star/sheet/XUsedAreaCursor.hpp>
27 using ScCellCursorObj_BASE = cppu::ImplInheritanceHelper<ScCellRangeObj,
28 css::sheet::XSheetCellCursor,
29 css::sheet::XUsedAreaCursor,
30 css::table::XCellCursor>;
31 class ScCellCursorObj final : public ScCellCursorObj_BASE
33 public:
34 ScCellCursorObj(ScDocShell* pDocSh, const ScRange& rR);
35 virtual ~ScCellCursorObj() override;
37 // XSheetCellCursor
38 virtual void SAL_CALL collapseToCurrentRegion() override;
39 virtual void SAL_CALL collapseToCurrentArray() override;
40 virtual void SAL_CALL collapseToMergedArea() override;
41 virtual void SAL_CALL expandToEntireColumns() override;
42 virtual void SAL_CALL expandToEntireRows() override;
43 virtual void SAL_CALL collapseToSize( sal_Int32 nColumns, sal_Int32 nRows ) override;
45 // XUsedAreaCursor
46 virtual void SAL_CALL gotoStartOfUsedArea( sal_Bool bExpand ) override;
47 virtual void SAL_CALL gotoEndOfUsedArea( sal_Bool bExpand ) override;
49 // XCellCursor
50 virtual void SAL_CALL gotoStart() override;
51 virtual void SAL_CALL gotoEnd() override;
52 virtual void SAL_CALL gotoNext() override;
53 virtual void SAL_CALL gotoPrevious() override;
54 virtual void SAL_CALL gotoOffset( sal_Int32 nColumnOffset, sal_Int32 nRowOffset ) override;
56 // XSheetCellRange
57 virtual css::uno::Reference< css::sheet::XSpreadsheet > SAL_CALL
58 getSpreadsheet() override;
60 // XCellRange
61 virtual css::uno::Reference< css::table::XCell > SAL_CALL
62 getCellByPosition( sal_Int32 nColumn, sal_Int32 nRow ) override;
63 virtual css::uno::Reference< css::table::XCellRange > SAL_CALL
64 getCellRangeByPosition( sal_Int32 nLeft, sal_Int32 nTop,
65 sal_Int32 nRight, sal_Int32 nBottom ) override;
66 using ScCellRangeObj::getCellRangeByName;
67 virtual css::uno::Reference< css::table::XCellRange > SAL_CALL
68 getCellRangeByName( const OUString& aRange ) override;
70 // XServiceInfo
71 virtual OUString SAL_CALL getImplementationName() override;
72 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
73 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */