LibreOffice Module sc (master)  1
webservicelink.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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 
10 #pragma once
11 
12 #include <sfx2/lnkbase.hxx>
13 #include <svl/broadcast.hxx>
14 
15 namespace com::sun::star::uno
16 {
17 class Any;
18 }
19 
20 class ScDocument;
21 
23 {
24 private:
26  OUString aURL; // connection/ link data
27  bool bHasResult; // is set aResult is useful
28  OUString aResult;
29 
30 public:
31  ScWebServiceLink(ScDocument* pD, const OUString& rURL);
32  virtual ~ScWebServiceLink() override;
33 
34  // SvBaseLink override:
35  virtual ::sfx2::SvBaseLink::UpdateResult DataChanged(const OUString& rMimeType,
36  const css::uno::Any& rValue) override;
37 
38  // SvtBroadcaster override:
39  virtual void ListenersGone() override;
40 
41  // for interpreter:
42 
43  const OUString& GetResult() const { return aResult; }
44  bool HasResult() const { return bHasResult; }
45 
46  const OUString& GetURL() const { return aURL; }
47 };
48 
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */