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 "navipi.hxx"
12 #include <memory>
13 #include <vcl/uitest/uiobject.hxx>
14 
15 class ScGridWindow;
16 class ScDBFunc;
17 class ScDrawView;
18 class ScTabViewShell;
19 class ScViewFunc;
20 
22 {
24 
25 public:
26  ScGridWinUIObject(const VclPtr<ScGridWindow>& xGridWin);
27 
28  virtual StringMap get_state() override;
29 
30  virtual void execute(const OUString& rAction, const StringMap& rParameters) override;
31 
32  virtual std::unique_ptr<UIObject> get_child(const OUString& rID) override;
33 
34  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
35 
36  virtual std::set<OUString> get_children() const override;
37 
38 protected:
39  virtual OUString get_name() const override;
40 
41 private:
46 };
47 
48 class ScNavigatorDlg;
49 
51 {
53 
54 public:
55  ScNavigatorDlgUIObject(const VclPtr<ScNavigatorDlg>& xScNavigatorDlg);
56 
57  virtual void execute(const OUString& rAction, const StringMap& rParameters) override;
58 
59  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
60 
61 protected:
62  virtual OUString get_name() const override;
63 };
64 
65 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
VclPtr< ScGridWindow > mxGridWindow
Definition: uiobject.hxx:23
virtual OUString get_name() const override
Definition: uiobject.cxx:406
virtual StringMap get_state() override
Definition: uiobject.cxx:62
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Definition: uiobject.cxx:128
ScTabViewShell * getViewShell()
Definition: uiobject.cxx:112
virtual OUString get_name() const override
Definition: uiobject.cxx:377
ScViewFunc * getViewFunc()
Definition: uiobject.cxx:120
virtual std::unique_ptr< UIObject > get_child(const OUString &rID) override
Definition: uiobject.cxx:365
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
Definition: uiobject.cxx:370
ScDrawView * getDrawView()
Definition: uiobject.cxx:104
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Definition: uiobject.cxx:388
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
Definition: uiobject.cxx:399
std::map< OUString, OUString > StringMap
ScDBFunc * getDBFunc()
Definition: uiobject.cxx:96
virtual std::set< OUString > get_children() const override
Definition: uiobject.cxx:359
ScGridWinUIObject(const VclPtr< ScGridWindow > &xGridWin)
Definition: uiobject.cxx:56
ScNavigatorDlgUIObject(const VclPtr< ScNavigatorDlg > &xScNavigatorDlg)
Definition: uiobject.cxx:382
VclPtr< ScNavigatorDlg > mxScNavigatorDlg
Definition: uiobject.hxx:52