LibreOffice Module sc (master) 1
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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
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 .
18 */
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>
27class ScCellCursorObj final : public ScCellRangeObj,
28 public css::sheet::XSheetCellCursor,
29 public css::sheet::XUsedAreaCursor,
30 public css::table::XCellCursor
33 ScCellCursorObj(ScDocShell* pDocSh, const ScRange& rR);
34 virtual ~ScCellCursorObj() override;
36 virtual css::uno::Any SAL_CALL queryInterface(
37 const css::uno::Type & rType ) override;
38 virtual void SAL_CALL acquire() noexcept override;
39 virtual void SAL_CALL release() noexcept override;
41 // XSheetCellCursor
42 virtual void SAL_CALL collapseToCurrentRegion() override;
43 virtual void SAL_CALL collapseToCurrentArray() override;
44 virtual void SAL_CALL collapseToMergedArea() override;
45 virtual void SAL_CALL expandToEntireColumns() override;
46 virtual void SAL_CALL expandToEntireRows() override;
47 virtual void SAL_CALL collapseToSize( sal_Int32 nColumns, sal_Int32 nRows ) override;
49 // XUsedAreaCursor
50 virtual void SAL_CALL gotoStartOfUsedArea( sal_Bool bExpand ) override;
51 virtual void SAL_CALL gotoEndOfUsedArea( sal_Bool bExpand ) override;
53 // XCellCursor
54 virtual void SAL_CALL gotoStart() override;
55 virtual void SAL_CALL gotoEnd() override;
56 virtual void SAL_CALL gotoNext() override;
57 virtual void SAL_CALL gotoPrevious() override;
58 virtual void SAL_CALL gotoOffset( sal_Int32 nColumnOffset, sal_Int32 nRowOffset ) override;
60 // XSheetCellRange
61 virtual css::uno::Reference< css::sheet::XSpreadsheet > SAL_CALL
62 getSpreadsheet() override;
64 // XCellRange
65 virtual css::uno::Reference< css::table::XCell > SAL_CALL
66 getCellByPosition( sal_Int32 nColumn, sal_Int32 nRow ) override;
67 virtual css::uno::Reference< css::table::XCellRange > SAL_CALL
68 getCellRangeByPosition( sal_Int32 nLeft, sal_Int32 nTop,
69 sal_Int32 nRight, sal_Int32 nBottom ) override;
71 virtual css::uno::Reference< css::table::XCellRange > SAL_CALL
72 getCellRangeByName( const OUString& aRange ) override;
74 // XServiceInfo
75 virtual OUString SAL_CALL getImplementationName() override;
76 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
77 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
79 // XTypeProvider
80 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
81 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
84/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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 void SAL_CALL collapseToSize(sal_Int32 nColumns, sal_Int32 nRows) override
Definition: cursuno.cxx:183
virtual css::uno::Reference< css::table::XCell > SAL_CALL getCellByPosition(sal_Int32 nColumn, sal_Int32 nRow) override
Definition: cursuno.cxx:409
virtual css::uno::Reference< css::sheet::XSpreadsheet > SAL_CALL getSpreadsheet() override
Definition: cursuno.cxx:401
virtual OUString SAL_CALL getImplementationName() override
Definition: cursuno.cxx:432
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: cursuno.cxx:442
virtual void SAL_CALL gotoEnd() override
Definition: cursuno.cxx:303
virtual void SAL_CALL gotoPrevious() override
Definition: cursuno.cxx:353
virtual css::uno::Reference< css::table::XCellRange > SAL_CALL getCellRangeByName(const OUString &aRange) override
Definition: cursuno.cxx:423
virtual ~ScCellCursorObj() override
Definition: cursuno.cxx:40
virtual void SAL_CALL expandToEntireRows() override
Definition: cursuno.cxx:170
virtual void SAL_CALL release() noexcept override
Definition: cursuno.cxx:58
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 acquire() noexcept override
Definition: cursuno.cxx:53
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
Definition: cursuno.cxx:44
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: cursuno.cxx:437
virtual void SAL_CALL gotoStartOfUsedArea(sal_Bool bExpand) override
Definition: cursuno.cxx:219
ScCellCursorObj(ScDocShell *pDocSh, const ScRange &rR)
Definition: cursuno.cxx:35
virtual void SAL_CALL collapseToMergedArea() override
Definition: cursuno.cxx:139
virtual void SAL_CALL collapseToCurrentRegion() override
Definition: cursuno.cxx:82
virtual void SAL_CALL expandToEntireColumns() override
Definition: cursuno.cxx:157
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
Definition: cursuno.cxx:63
virtual void SAL_CALL collapseToCurrentArray() override
Definition: cursuno.cxx:107
virtual void SAL_CALL gotoOffset(sal_Int32 nColumnOffset, sal_Int32 nRowOffset) override
Definition: cursuno.cxx:375
virtual void SAL_CALL gotoNext() override
Definition: cursuno.cxx:331
virtual void SAL_CALL gotoStart() override
Definition: cursuno.cxx:275
virtual css::uno::Reference< css::table::XCellRange > SAL_CALL getCellRangeByName(const OUString &aRange) override
Definition: cellsuno.cxx:4635
ScRange aRange
Definition: cellsuno.hxx:479
unsigned char sal_Bool