LibreOffice Module sc (master)  1
vbacomment.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 #pragma once
20 
21 #include <ooo/vba/excel/XComment.hpp>
22 #include <ooo/vba/msforms/XShape.hpp>
23 #include <com/sun/star/sheet/XSheetAnnotations.hpp>
24 #include <com/sun/star/sheet/XSheetAnnotation.hpp>
25 #include <com/sun/star/table/XCellRange.hpp>
26 #include <com/sun/star/uno/XComponentContext.hpp>
27 
29 
31 
33 {
34  css::uno::Reference< css::frame::XModel > mxModel;
35  css::uno::Reference< css::table::XCellRange > mxRange;
36 
37 private:
39  css::uno::Reference< css::sheet::XSheetAnnotation > getAnnotation();
41  css::uno::Reference< css::sheet::XSheetAnnotations > getAnnotations() const;
43  sal_Int32 getAnnotationIndex();
45  css::uno::Reference< ov::excel::XComment > getCommentByIndex( sal_Int32 Index );
46 public:
50  const css::uno::Reference< ov::XHelperInterface >& xParent,
51  const css::uno::Reference< css::uno::XComponentContext >& xContext,
52  const css::uno::Reference< css::frame::XModel >& xModel,
53  const css::uno::Reference< css::table::XCellRange >& xRange );
54 
55  // Attributes
56  virtual OUString SAL_CALL getAuthor() override;
57  virtual void SAL_CALL setAuthor( const OUString& _author ) override;
58  virtual css::uno::Reference< ov::msforms::XShape > SAL_CALL getShape() override;
59  virtual sal_Bool SAL_CALL getVisible() override;
60  virtual void SAL_CALL setVisible( sal_Bool _visible ) override;
61 
62  // Methods
63  virtual void SAL_CALL Delete() override;
64  virtual css::uno::Reference< ov::excel::XComment > SAL_CALL Next() override;
65  virtual css::uno::Reference< ov::excel::XComment > SAL_CALL Previous() override;
66  virtual OUString SAL_CALL Text( const css::uno::Any& Text, const css::uno::Any& Start, const css::uno::Any& Overwrite ) override;
67  // XHelperInterface
68  virtual OUString getServiceImplName() override;
69  virtual css::uno::Sequence<OUString> getServiceNames() override;
70 };
71 
72 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL setAuthor(const OUString &_author) override
Definition: vbacomment.cxx:121
virtual OUString SAL_CALL getAuthor() override
Definition: vbacomment.cxx:115
virtual css::uno::Reference< ov::excel::XComment > SAL_CALL Previous() override
Definition: vbacomment.cxx:163
virtual css::uno::Reference< ov::msforms::XShape > SAL_CALL getShape() override
Definition: vbacomment.cxx:127
virtual void SAL_CALL Delete() override
Definition: vbacomment.cxx:150
virtual sal_Bool SAL_CALL getVisible() override
Definition: vbacomment.cxx:138
sal_Int32 getAnnotationIndex()
Definition: vbacomment.cxx:78
virtual css::uno::Sequence< OUString > getServiceNames() override
Definition: vbacomment.cxx:225
virtual OUString getServiceImplName() override
Definition: vbacomment.cxx:219
virtual css::uno::Reference< ov::excel::XComment > SAL_CALL Next() override
Definition: vbacomment.cxx:156
virtual void SAL_CALL setVisible(sal_Bool _visible) override
Definition: vbacomment.cxx:144
InheritedHelperInterfaceWeakImpl< ov::excel::XComment > ScVbaComment_BASE
Definition: vbacomment.hxx:30
unsigned char sal_Bool
css::uno::Reference< css::sheet::XSheetAnnotation > getAnnotation()
Definition: vbacomment.cxx:60
css::uno::Reference< css::sheet::XSheetAnnotations > getAnnotations() const
Definition: vbacomment.cxx:68
ScVbaComment(const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::frame::XModel > &xModel, const css::uno::Reference< css::table::XCellRange > &xRange)
Definition: vbacomment.cxx:43
css::uno::Reference< css::frame::XModel > mxModel
Definition: vbacomment.hxx:34
css::uno::Reference< ov::excel::XComment > getCommentByIndex(sal_Int32 Index)
Definition: vbacomment.cxx:103
virtual OUString SAL_CALL Text(const css::uno::Any &Text, const css::uno::Any &Start, const css::uno::Any &Overwrite) override
Definition: vbacomment.cxx:170
css::uno::Reference< css::table::XCellRange > mxRange
Definition: vbacomment.hxx:35
struct _ADOIndex Index