tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sc / source / ui / inc / uiobject.hxx
blob4545c50e79e25b3788c8d31281a1306dddc8f42e
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/.
8 */
10 #include "gridwin.hxx"
11 #include <memory>
12 #include <vcl/uitest/uiobject.hxx>
14 class ScGridWindow;
15 class ScDBFunc;
16 class ScDrawView;
17 class ScTabViewShell;
18 class ScViewFunc;
20 class ScGridWinUIObject : public WindowUIObject
22 VclPtr<ScGridWindow> mxGridWindow;
24 public:
25 ScGridWinUIObject(const VclPtr<ScGridWindow>& xGridWin);
27 virtual StringMap get_state() override;
29 virtual void execute(const OUString& rAction, const StringMap& rParameters) override;
31 virtual std::unique_ptr<UIObject> get_child(const OUString& rID) override;
33 static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
35 virtual std::set<OUString> get_children() const override;
37 protected:
38 virtual OUString get_name() const override;
40 private:
41 ScDBFunc* getDBFunc();
42 ScDrawView* getDrawView();
43 ScTabViewShell* getViewShell();
44 ScViewFunc* getViewFunc();
47 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */