LibreOffice Module sc (master)  1
vbahyperlinks.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_SOURCE_UI_VBA_VBAHYPERLINKS_HXX
21 #define INCLUDED_SC_SOURCE_UI_VBA_VBAHYPERLINKS_HXX
22 
23 #include <ooo/vba/excel/XHyperlinks.hpp>
24 #include <rtl/ref.hxx>
26 
27 class ScRangeList;
28 
29 namespace detail {
30 
32 typedef ::rtl::Reference< ScVbaHlinkContainer > ScVbaHlinkContainerRef;
33 
38 {
39  ScVbaHlinkContainerRef mxContainer;
40 
41  explicit ScVbaHlinkContainerMember( ScVbaHlinkContainer* pContainer );
43 };
44 
45 } // namespace detail
46 
48 typedef ::rtl::Reference< ScVbaHyperlinks > ScVbaHyperlinksRef;
49 
51 
99 {
100 public:
102  explicit ScVbaHyperlinks(
103  const css::uno::Reference< ov::XHelperInterface >& rxParent,
104  const css::uno::Reference< css::uno::XComponentContext >& rxContext );
105 
107  explicit ScVbaHyperlinks(
108  const css::uno::Reference< ov::XHelperInterface >& rxParent,
109  const css::uno::Reference< css::uno::XComponentContext >& rxContext,
110  const ScVbaHyperlinksRef& rxSheetHlinks, const ScRangeList& rScRanges );
111 
112  virtual ~ScVbaHyperlinks() override;
113 
114  // XHyperlinks
115  virtual css::uno::Reference< ov::excel::XHyperlink > SAL_CALL Add(
116  const css::uno::Any& rAnchor, const css::uno::Any& rAddress, const css::uno::Any& rSubAddress,
117  const css::uno::Any& rScreenTip, const css::uno::Any& rTextToDisplay ) override;
118 
119  virtual void SAL_CALL Delete() override;
120 
121  // XEnumerationAccess
122  virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override;
123 
124  // XElementAccess
125  virtual css::uno::Type SAL_CALL getElementType() override;
126 
127  // ScVbaCollectionBase
128  virtual css::uno::Any createCollectionObject( const css::uno::Any& rSource ) override;
129 
130  // XHelperInterface
132 
133 private:
135 };
136 
137 #endif
138 
139 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define VBAHELPER_DECL_XHELPERINTERFACE
::rtl::Reference< ScVbaHlinkContainer > ScVbaHlinkContainerRef
Base class for ScVbaHyperlinks to get an initialized ScVbaHlinkContainer class member before the ScVb...
ScVbaHlinkContainerMember(ScVbaHlinkContainer *pContainer)
ScVbaHlinkContainerRef mxContainer