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 #ifndef INCLUDED_SC_SOURCE_CORE_INC_WEBSERVICE_HXX
11 #define INCLUDED_SC_SOURCE_CORE_INC_WEBSERVICE_HXX
12 
13 #include <sfx2/lnkbase.hxx>
14 #include <svl/broadcast.hxx>
15 
16 namespace com::sun::star::uno
17 {
18 class Any;
19 }
20 
21 class ScDocument;
22 
24 {
25 private:
27  OUString aURL; // connection/ link data
28  bool bHasResult; // is set aResult is useful
29  OUString aResult;
30 
31 public:
32  ScWebServiceLink(ScDocument* pD, const OUString& rURL);
33  virtual ~ScWebServiceLink() override;
34 
35  // SvBaseLink override:
36  virtual ::sfx2::SvBaseLink::UpdateResult DataChanged(const OUString& rMimeType,
37  const css::uno::Any& rValue) override;
38 
39  // SvtBroadcaster override:
40  virtual void ListenersGone() override;
41 
42  // for interpreter:
43 
44  const OUString& GetResult() const { return aResult; }
45  bool HasResult() const { return bHasResult; }
46 
47  const OUString& GetURL() const { return aURL; }
48 };
49 
50 #endif
51 
52 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */