LibreOffice Module cui (master)
1
cui
source
inc
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
20
#pragma once
21
22
#include <
vcl/weld.hxx
>
23
#include <com/sun/star/ui/XUIConfigurationManager.hpp>
24
25
#include "
cfg.hxx
"
//for SvxConfigPage and SaveInData
26
27
class
SvxMenuConfigPage
:
public
SvxConfigPage
28
{
29
private
:
30
bool
m_bIsMenuBar
;
31
32
DECL_LINK
(SelectMenuEntry,
weld::TreeView
&,
void
);
33
DECL_LINK
(ContentContextMenuHdl,
const
CommandEvent
&,
bool
);
34
DECL_LINK
(FunctionContextMenuHdl,
const
CommandEvent
&,
bool
);
35
36
DECL_LINK
(GearHdl,
const
OUString&,
void
);
37
38
DECL_LINK
(SelectCategory,
weld::ComboBox
&,
void
);
39
40
DECL_LINK
(AddCommandHdl,
weld::Button
&,
void
);
41
DECL_LINK
(RemoveCommandHdl,
weld::Button
&,
void
);
42
43
DECL_LINK
(InsertHdl,
const
OUString&,
void
);
44
DECL_LINK
(ModifyItemHdl,
const
OUString&,
void
);
45
DECL_LINK
(ResetMenuHdl,
weld::Button
&,
void
);
46
47
DECL_LINK
(MenuEntriesSizeAllocHdl,
const
Size
&,
void
);
48
49
virtual
void
ListModified
()
override
;
50
51
void
Init
()
override
;
52
void
UpdateButtonStates
()
override
;
53
short
QueryReset
()
override
;
54
void
DeleteSelectedContent
()
override
;
55
void
DeleteSelectedTopLevel
()
override
;
56
57
virtual
void
SelectElement
()
override
;
58
59
public
:
60
SvxMenuConfigPage
(
weld::Container
* pPage,
weld::DialogController
* pController,
61
const
SfxItemSet
& rItemSet,
bool
bIsMenuBar =
true
);
62
virtual
~SvxMenuConfigPage
()
override
;
63
64
SaveInData
*
CreateSaveInData
(
const
css::uno::Reference<css::ui::XUIConfigurationManager>&,
65
const
css::uno::Reference<css::ui::XUIConfigurationManager>&,
66
const
OUString& aModuleId,
bool
docConfig)
override
;
67
};
68
69
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
cfg.hxx
CommandEvent
SaveInData
Definition:
cfg.hxx:82
SfxItemSet
Size
SvxConfigPage
Definition:
cfg.hxx:371
SvxMenuConfigPage
Definition:
SvxMenuConfigPage.hxx:28
SvxMenuConfigPage::DECL_LINK
DECL_LINK(InsertHdl, const OUString &, void)
SvxMenuConfigPage::DECL_LINK
DECL_LINK(GearHdl, const OUString &, void)
SvxMenuConfigPage::ListModified
virtual void ListModified() override
Definition:
SvxMenuConfigPage.cxx:95
SvxMenuConfigPage::DECL_LINK
DECL_LINK(FunctionContextMenuHdl, const CommandEvent &, bool)
SvxMenuConfigPage::DECL_LINK
DECL_LINK(MenuEntriesSizeAllocHdl, const Size &, void)
SvxMenuConfigPage::Init
void Init() override
Definition:
SvxMenuConfigPage.cxx:129
SvxMenuConfigPage::UpdateButtonStates
void UpdateButtonStates() override
Definition:
SvxMenuConfigPage.cxx:148
SvxMenuConfigPage::DECL_LINK
DECL_LINK(ContentContextMenuHdl, const CommandEvent &, bool)
SvxMenuConfigPage::SvxMenuConfigPage
SvxMenuConfigPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rItemSet, bool bIsMenuBar=true)
Definition:
SvxMenuConfigPage.cxx:38
SvxMenuConfigPage::DECL_LINK
DECL_LINK(AddCommandHdl, weld::Button &, void)
SvxMenuConfigPage::QueryReset
short QueryReset() override
Definition:
SvxMenuConfigPage.cxx:241
SvxMenuConfigPage::DECL_LINK
DECL_LINK(ResetMenuHdl, weld::Button &, void)
SvxMenuConfigPage::DeleteSelectedContent
void DeleteSelectedContent() override
Definition:
SvxMenuConfigPage.cxx:208
SvxMenuConfigPage::DeleteSelectedTopLevel
void DeleteSelectedTopLevel() override
Definition:
SvxMenuConfigPage.cxx:194
SvxMenuConfigPage::CreateSaveInData
SaveInData * CreateSaveInData(const css::uno::Reference< css::ui::XUIConfigurationManager > &, const css::uno::Reference< css::ui::XUIConfigurationManager > &, const OUString &aModuleId, bool docConfig) override
Definition:
SvxMenuConfigPage.cxx:500
SvxMenuConfigPage::DECL_LINK
DECL_LINK(SelectCategory, weld::ComboBox &, void)
SvxMenuConfigPage::~SvxMenuConfigPage
virtual ~SvxMenuConfigPage() override
Definition:
SvxMenuConfigPage.cxx:121
SvxMenuConfigPage::DECL_LINK
DECL_LINK(SelectMenuEntry, weld::TreeView &, void)
SvxMenuConfigPage::DECL_LINK
DECL_LINK(RemoveCommandHdl, weld::Button &, void)
SvxMenuConfigPage::m_bIsMenuBar
bool m_bIsMenuBar
Definition:
SvxMenuConfigPage.hxx:30
SvxMenuConfigPage::DECL_LINK
DECL_LINK(ModifyItemHdl, const OUString &, void)
SvxMenuConfigPage::SelectElement
virtual void SelectElement() override
Definition:
SvxMenuConfigPage.cxx:254
weld::Button
weld::ComboBox
weld::Container
weld::DialogController
weld::TreeView
weld.hxx
Generated on Sun Jul 30 2023 04:33:15 for LibreOffice Module cui (master) by
1.9.3