LibreOffice Module cui (master)  1
SvxMenuConfigPage.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  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 #ifndef INCLUDED_CUI_SOURCE_INC_SVXMENUCONFIGPAGE_HXX
20 #define INCLUDED_CUI_SOURCE_INC_SVXMENUCONFIGPAGE_HXX
21 
22 #include <vcl/weld.hxx>
23 #include <com/sun/star/ui/XUIConfigurationManager.hpp>
24 
25 #include "cfg.hxx" //for SvxConfigPage and SaveInData
26 
28 {
29 private:
31 
32  DECL_LINK( SelectMenu, weld::ComboBox&, void );
33  DECL_LINK( SelectMenuEntry, weld::TreeView&, void );
34 
35  DECL_LINK( GearHdl, const OString&, void );
36 
37  DECL_LINK( SelectCategory, weld::ComboBox&, void );
38 
39  DECL_LINK( AddCommandHdl, weld::Button&, void );
40  DECL_LINK( RemoveCommandHdl, weld::Button&, void );
41 
42  DECL_LINK( InsertHdl, const OString&, void );
43  DECL_LINK( ModifyItemHdl, const OString&, void );
44  DECL_LINK( ResetMenuHdl, weld::Button&, void );
45 
46  DECL_LINK( MenuEntriesSizeAllocHdl, const Size&, void );
47 
48  DECL_LINK( ListModifiedHdl, weld::TreeView&, void );
49 
50  void Init() override;
51  void UpdateButtonStates() override;
52  short QueryReset() override;
53  void DeleteSelectedContent() override;
54  void DeleteSelectedTopLevel() override;
55 
56  virtual void SelectElement() override;
57 
58 public:
59  SvxMenuConfigPage(TabPageParent pParent, const SfxItemSet& rItemSet, bool bIsMenuBar = true);
60  virtual ~SvxMenuConfigPage() override;
61  virtual void dispose() override;
62 
64  const css::uno::Reference <
65  css::ui::XUIConfigurationManager >&,
66  const css::uno::Reference <
67  css::ui::XUIConfigurationManager >&,
68  const OUString& aModuleId,
69  bool docConfig ) override;
70 };
71 
72 #endif // INCLUDED_CUI_SOURCE_INC_SVXMENUCONFIGPAGE_HXX
73 
74 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SvxMenuConfigPage(TabPageParent pParent, const SfxItemSet &rItemSet, bool bIsMenuBar=true)
SaveInData * CreateSaveInData(const css::uno::Reference< css::ui::XUIConfigurationManager > &, const css::uno::Reference< css::ui::XUIConfigurationManager > &, const OUString &aModuleId, bool docConfig) override
void Init() override
void DeleteSelectedTopLevel() override
DECL_LINK(SelectMenu, weld::ComboBox &, void)
short QueryReset() override
virtual void SelectElement() override
void UpdateButtonStates() override
virtual void dispose() override
virtual ~SvxMenuConfigPage() override
void DeleteSelectedContent() override