1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 css::sheet::XSheetCellCursor
,
30 public css::sheet::XUsedAreaCursor
,
31 public css::table::XCellCursor
34 ScCellCursorObj(ScDocShell
* pDocSh
, const ScRange
& rR
);
35 virtual ~ScCellCursorObj() override
;
37 virtual css::uno::Any SAL_CALL
queryInterface(
38 const css::uno::Type
& rType
) override
;
39 virtual void SAL_CALL
acquire() throw() override
;
40 virtual void SAL_CALL
release() throw() override
;
43 virtual void SAL_CALL
collapseToCurrentRegion() override
;
44 virtual void SAL_CALL
collapseToCurrentArray() override
;
45 virtual void SAL_CALL
collapseToMergedArea() override
;
46 virtual void SAL_CALL
expandToEntireColumns() override
;
47 virtual void SAL_CALL
expandToEntireRows() override
;
48 virtual void SAL_CALL
collapseToSize( sal_Int32 nColumns
, sal_Int32 nRows
) override
;
51 virtual void SAL_CALL
gotoStartOfUsedArea( sal_Bool bExpand
) override
;
52 virtual void SAL_CALL
gotoEndOfUsedArea( sal_Bool bExpand
) override
;
55 virtual void SAL_CALL
gotoStart() override
;
56 virtual void SAL_CALL
gotoEnd() override
;
57 virtual void SAL_CALL
gotoNext() override
;
58 virtual void SAL_CALL
gotoPrevious() override
;
59 virtual void SAL_CALL
gotoOffset( sal_Int32 nColumnOffset
, sal_Int32 nRowOffset
) override
;
62 virtual css::uno::Reference
< css::sheet::XSpreadsheet
> SAL_CALL
63 getSpreadsheet() override
;
66 virtual css::uno::Reference
< css::table::XCell
> SAL_CALL
67 getCellByPosition( sal_Int32 nColumn
, sal_Int32 nRow
) override
;
68 virtual css::uno::Reference
< css::table::XCellRange
> SAL_CALL
69 getCellRangeByPosition( sal_Int32 nLeft
, sal_Int32 nTop
,
70 sal_Int32 nRight
, sal_Int32 nBottom
) override
;
71 using ScCellRangeObj::getCellRangeByName
;
72 virtual css::uno::Reference
< css::table::XCellRange
> SAL_CALL
73 getCellRangeByName( const OUString
& aRange
) override
;
76 virtual OUString SAL_CALL
getImplementationName() override
;
77 virtual sal_Bool SAL_CALL
supportsService( const OUString
& ServiceName
) override
;
78 virtual css::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames() override
;
81 virtual css::uno::Sequence
< css::uno::Type
> SAL_CALL
getTypes() override
;
82 virtual css::uno::Sequence
< sal_Int8
> SAL_CALL
getImplementationId() override
;
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */