LibreOffice Module sc (master)  1
uiobject.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 
10 #include "gridwin.hxx"
11 #include <memory>
12 #include <vcl/uitest/uiobject.hxx>
13 
14 class ScGridWindow;
15 class ScDBFunc;
16 class ScDrawView;
17 class ScTabViewShell;
18 class ScViewFunc;
19 
21 {
23 
24 public:
25  ScGridWinUIObject(const VclPtr<ScGridWindow>& xGridWin);
26 
27  virtual StringMap get_state() override;
28 
29  virtual void execute(const OUString& rAction, const StringMap& rParameters) override;
30 
31  virtual std::unique_ptr<UIObject> get_child(const OUString& rID) override;
32 
33  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
34 
35  virtual std::set<OUString> get_children() const override;
36 
37 protected:
38  virtual OUString get_name() const override;
39 
40 private:
45 };
46 
47 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
VclPtr< ScGridWindow > mxGridWindow
Definition: uiobject.hxx:22
virtual StringMap get_state() override
Definition: uiobject.cxx:63
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Definition: uiobject.cxx:129
ScTabViewShell * getViewShell()
Definition: uiobject.cxx:113
virtual OUString get_name() const override
Definition: uiobject.cxx:405
ScViewFunc * getViewFunc()
Definition: uiobject.cxx:121
virtual std::unique_ptr< UIObject > get_child(const OUString &rID) override
Definition: uiobject.cxx:393
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
Definition: uiobject.cxx:398
ScDrawView * getDrawView()
Definition: uiobject.cxx:105
std::map< OUString, OUString > StringMap
ScDBFunc * getDBFunc()
Definition: uiobject.cxx:97
virtual std::set< OUString > get_children() const override
Definition: uiobject.cxx:387
ScGridWinUIObject(const VclPtr< ScGridWindow > &xGridWin)
Definition: uiobject.cxx:57