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