Stop leaking all ScPostIt instances.
[LibreOffice.git] / sc / inc / cursuno.hxx
blob8b3b4344d6c59025e36bd2560e7c7553beedb2e2
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 SC_CURSUNO_HXX
21 #define SC_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);
40 virtual void SAL_CALL acquire() throw();
41 virtual void SAL_CALL release() throw();
43 // XSheetCellCursor
44 virtual void SAL_CALL collapseToCurrentRegion() throw(::com::sun::star::uno::RuntimeException);
45 virtual void SAL_CALL collapseToCurrentArray() throw(::com::sun::star::uno::RuntimeException);
46 virtual void SAL_CALL collapseToMergedArea() throw(::com::sun::star::uno::RuntimeException);
47 virtual void SAL_CALL expandToEntireColumns() throw(::com::sun::star::uno::RuntimeException);
48 virtual void SAL_CALL expandToEntireRows() throw(::com::sun::star::uno::RuntimeException);
49 virtual void SAL_CALL collapseToSize( sal_Int32 nColumns, sal_Int32 nRows )
50 throw(::com::sun::star::uno::RuntimeException);
52 // XUsedAreaCursor
53 virtual void SAL_CALL gotoStartOfUsedArea( sal_Bool bExpand )
54 throw(::com::sun::star::uno::RuntimeException);
55 virtual void SAL_CALL gotoEndOfUsedArea( sal_Bool bExpand )
56 throw(::com::sun::star::uno::RuntimeException);
58 // XCellCursor
59 virtual void SAL_CALL gotoStart() throw(::com::sun::star::uno::RuntimeException);
60 virtual void SAL_CALL gotoEnd() throw(::com::sun::star::uno::RuntimeException);
61 virtual void SAL_CALL gotoNext() throw(::com::sun::star::uno::RuntimeException);
62 virtual void SAL_CALL gotoPrevious() throw(::com::sun::star::uno::RuntimeException);
63 virtual void SAL_CALL gotoOffset( sal_Int32 nColumnOffset, sal_Int32 nRowOffset )
64 throw(::com::sun::star::uno::RuntimeException);
66 // XSheetCellRange
67 virtual ::com::sun::star::uno::Reference< ::com::sun::star::sheet::XSpreadsheet > SAL_CALL
68 getSpreadsheet() throw(::com::sun::star::uno::RuntimeException);
70 // XCellRange
71 virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCell > SAL_CALL
72 getCellByPosition( sal_Int32 nColumn, sal_Int32 nRow )
73 throw(::com::sun::star::lang::IndexOutOfBoundsException,
74 ::com::sun::star::uno::RuntimeException);
75 virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCellRange > SAL_CALL
76 getCellRangeByPosition( sal_Int32 nLeft, sal_Int32 nTop,
77 sal_Int32 nRight, sal_Int32 nBottom )
78 throw(::com::sun::star::lang::IndexOutOfBoundsException,
79 ::com::sun::star::uno::RuntimeException);
80 using ScCellRangeObj::getCellRangeByName;
81 virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCellRange > SAL_CALL
82 getCellRangeByName( const OUString& aRange )
83 throw(::com::sun::star::uno::RuntimeException);
85 // XServiceInfo
86 virtual OUString SAL_CALL getImplementationName()
87 throw(::com::sun::star::uno::RuntimeException);
88 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
89 throw(::com::sun::star::uno::RuntimeException);
90 virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
91 throw(::com::sun::star::uno::RuntimeException);
93 // XTypeProvider
94 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes()
95 throw(::com::sun::star::uno::RuntimeException);
96 virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId()
97 throw(::com::sun::star::uno::RuntimeException);
101 #endif
103 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */