LibreOffice Module sc (master)  1
cursuno.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 
20 #ifndef INCLUDED_SC_INC_CURSUNO_HXX
21 #define INCLUDED_SC_INC_CURSUNO_HXX
22 
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>
27 
28 class ScCellCursorObj final : public ScCellRangeObj,
29  public css::sheet::XSheetCellCursor,
30  public css::sheet::XUsedAreaCursor,
31  public css::table::XCellCursor
32 {
33 public:
34  ScCellCursorObj(ScDocShell* pDocSh, const ScRange& rR);
35  virtual ~ScCellCursorObj() override;
36 
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;
41 
42  // XSheetCellCursor
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;
49 
50  // XUsedAreaCursor
51  virtual void SAL_CALL gotoStartOfUsedArea( sal_Bool bExpand ) override;
52  virtual void SAL_CALL gotoEndOfUsedArea( sal_Bool bExpand ) override;
53 
54  // XCellCursor
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;
60 
61  // XSheetCellRange
62  virtual css::uno::Reference< css::sheet::XSpreadsheet > SAL_CALL
63  getSpreadsheet() override;
64 
65  // XCellRange
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;
72  virtual css::uno::Reference< css::table::XCellRange > SAL_CALL
73  getCellRangeByName( const OUString& aRange ) override;
74 
75  // XServiceInfo
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;
79 
80  // XTypeProvider
81  virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
82  virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
83 };
84 
85 #endif
86 
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual ~ScCellCursorObj() override
Definition: cursuno.cxx:40
virtual css::uno::Reference< css::table::XCell > SAL_CALL getCellByPosition(sal_Int32 nColumn, sal_Int32 nRow) override
Definition: cursuno.cxx:409
virtual void SAL_CALL acquire() override
Definition: cursuno.cxx:53
virtual void SAL_CALL expandToEntireRows() override
Definition: cursuno.cxx:170
virtual void SAL_CALL collapseToCurrentRegion() override
Definition: cursuno.cxx:82
virtual void SAL_CALL gotoEndOfUsedArea(sal_Bool bExpand) override
Definition: cursuno.cxx:246
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
Definition: cursuno.cxx:75
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
Definition: cursuno.cxx:63
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: cursuno.cxx:437
ScCellCursorObj(ScDocShell *pDocSh, const ScRange &rR)
Definition: cursuno.cxx:35
virtual css::uno::Reference< css::table::XCellRange > SAL_CALL getCellRangeByName(const OUString &aRange) override
Definition: cellsuno.cxx:4727
virtual css::uno::Reference< css::sheet::XSpreadsheet > SAL_CALL getSpreadsheet() override
Definition: cursuno.cxx:401
virtual void SAL_CALL gotoStart() override
Definition: cursuno.cxx:275
virtual void SAL_CALL collapseToCurrentArray() override
Definition: cursuno.cxx:107
virtual void SAL_CALL gotoStartOfUsedArea(sal_Bool bExpand) override
Definition: cursuno.cxx:219
virtual void SAL_CALL collapseToSize(sal_Int32 nColumns, sal_Int32 nRows) override
Definition: cursuno.cxx:183
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: cursuno.cxx:442
virtual OUString SAL_CALL getImplementationName() override
Definition: cursuno.cxx:432
virtual css::uno::Reference< css::table::XCellRange > SAL_CALL getCellRangeByName(const OUString &aRange) override
Definition: cursuno.cxx:423
virtual void SAL_CALL gotoOffset(sal_Int32 nColumnOffset, sal_Int32 nRowOffset) override
Definition: cursuno.cxx:375
unsigned char sal_Bool
virtual void SAL_CALL gotoEnd() override
Definition: cursuno.cxx:303
ScRange aRange
Definition: cellsuno.hxx:476
virtual void SAL_CALL gotoPrevious() override
Definition: cursuno.cxx:353
virtual css::uno::Reference< css::table::XCellRange > SAL_CALL getCellRangeByPosition(sal_Int32 nLeft, sal_Int32 nTop, sal_Int32 nRight, sal_Int32 nBottom) override
Definition: cursuno.cxx:416
virtual void SAL_CALL expandToEntireColumns() override
Definition: cursuno.cxx:157
virtual void SAL_CALL collapseToMergedArea() override
Definition: cursuno.cxx:139
virtual void SAL_CALL release() override
Definition: cursuno.cxx:58
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
Definition: cursuno.cxx:44
virtual void SAL_CALL gotoNext() override
Definition: cursuno.cxx:331