fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / sc / source / ui / vba / vbahyperlink.hxx
blob45991a25624fd3cdada2d6b9e67b7df9661a1bac
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 INCLUDED_SC_SOURCE_UI_VBA_VBAHYPERLINK_HXX
21 #define INCLUDED_SC_SOURCE_UI_VBA_VBAHYPERLINK_HXX
23 #include <ooo/vba/excel/XHyperlink.hpp>
24 #include <com/sun/star/table/XCell.hpp>
25 #include <com/sun/star/beans/XPropertySet.hpp>
26 #include <ooo/vba/excel/XRange.hpp>
28 #include <vbahelper/vbahelperinterface.hxx>
30 typedef InheritedHelperInterfaceImpl1< ov::excel::XHyperlink > HyperlinkImpl_BASE;
32 class ScVbaHyperlink : public HyperlinkImpl_BASE
34 public:
35 ScVbaHyperlink(
36 const css::uno::Sequence< css::uno::Any >& rArgs,
37 const css::uno::Reference< css::uno::XComponentContext >& rxContext ) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException);
39 ScVbaHyperlink(
40 const css::uno::Reference< ov::XHelperInterface >& rxAnchor,
41 const css::uno::Reference< css::uno::XComponentContext >& rxContext,
42 const css::uno::Any& rAddress, const css::uno::Any& rSubAddress,
43 const css::uno::Any& rScreenTip, const css::uno::Any& rTextToDisplay ) throw (css::uno::RuntimeException);
45 virtual ~ScVbaHyperlink();
47 // Attributes
48 virtual OUString SAL_CALL getName() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
49 virtual void SAL_CALL setName( const OUString& rName ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
50 virtual OUString SAL_CALL getAddress() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
51 virtual void SAL_CALL setAddress( const OUString& rAddress ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
52 virtual OUString SAL_CALL getSubAddress() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
53 virtual void SAL_CALL setSubAddress( const OUString& rSubAddress ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
54 virtual OUString SAL_CALL getScreenTip() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
55 virtual void SAL_CALL setScreenTip( const OUString& rScreenTip ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
56 virtual OUString SAL_CALL getTextToDisplay() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
57 virtual void SAL_CALL setTextToDisplay( const OUString& rTextToDisplay ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
58 virtual sal_Int32 SAL_CALL getType() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
59 virtual css::uno::Reference< ov::excel::XRange > SAL_CALL getRange() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
60 virtual css::uno::Reference< ov::msforms::XShape > SAL_CALL getShape() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
62 // XHelperInterface
63 VBAHELPER_DECL_XHELPERINTERFACE
65 private:
66 typedef ::std::pair< OUString, OUString > UrlComponents;
68 void ensureTextField() throw (css::uno::RuntimeException);
69 UrlComponents getUrlComponents() throw (css::uno::RuntimeException);
70 void setUrlComponents( const UrlComponents& rUrlComp ) throw (css::uno::RuntimeException);
72 private:
73 css::uno::Reference< css::table::XCell > mxCell;
74 css::uno::Reference< css::beans::XPropertySet > mxTextField;
75 OUString maScreenTip;
76 long mnType;
79 #endif // INCLUDED_SC_SOURCE_UI_VBA_VBAHYPERLINK_HXX
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */