LibreOffice Module sw (master)
1
sw
source
uibase
sidebar
StylePresetsPanel.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
11
#pragma once
12
13
#include <memory>
14
15
#include <
sfx2/sidebar/PanelLayout.hxx
>
16
#include <
sfx2/sidebar/ControllerItem.hxx
>
17
#include <
svtools/valueset.hxx
>
18
#include <utility>
19
20
namespace
sw::sidebar
{
21
22
class
StylePresetsPanel
:
public
PanelLayout
,
23
public
sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
24
{
25
public
:
26
static
std::unique_ptr<PanelLayout>
Create
(
weld::Widget
* pParent);
27
28
StylePresetsPanel
(
weld::Widget
* pParent);
29
30
virtual
~StylePresetsPanel
()
override
;
31
32
virtual
void
NotifyItemUpdate
(
const
sal_uInt16 nSId,
33
const
SfxItemState
eState,
34
const
SfxPoolItem
* pState)
override
;
35
36
virtual
void
GetControlState
(
37
const
sal_uInt16
/*nSId*/
,
38
boost::property_tree::ptree&
/*rState*/
)
override
{};
39
40
private
:
41
struct
TemplateEntry
42
{
43
explicit
TemplateEntry
(OUString aURL)
44
:
maURL
(
std
::move(
aURL
))
45
{}
46
47
OUString
maURL
;
48
};
49
50
void
RefreshList
();
51
52
std::unique_ptr<ValueSet>
mxValueSet
;
53
std::unique_ptr<weld::CustomWeld>
mxValueSetWin
;
54
55
std::vector<std::unique_ptr<TemplateEntry>>
maTemplateEntries
;
56
57
DECL_LINK
(DoubleClickHdl,
ValueSet
*,
void
);
58
};
59
60
}
// end of namespace sw::sidebar
61
62
63
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ControllerItem.hxx
PanelLayout.hxx
PanelLayout
SfxPoolItem
ValueSet
sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
sw::sidebar::StylePresetsPanel
Definition:
StylePresetsPanel.hxx:24
sw::sidebar::StylePresetsPanel::~StylePresetsPanel
virtual ~StylePresetsPanel() override
Definition:
StylePresetsPanel.cxx:179
sw::sidebar::StylePresetsPanel::DECL_LINK
DECL_LINK(DoubleClickHdl, ValueSet *, void)
sw::sidebar::StylePresetsPanel::NotifyItemUpdate
virtual void NotifyItemUpdate(const sal_uInt16 nSId, const SfxItemState eState, const SfxPoolItem *pState) override
Definition:
StylePresetsPanel.cxx:197
sw::sidebar::StylePresetsPanel::GetControlState
virtual void GetControlState(const sal_uInt16, boost::property_tree::ptree &) override
Definition:
StylePresetsPanel.hxx:36
sw::sidebar::StylePresetsPanel::StylePresetsPanel
StylePresetsPanel(weld::Widget *pParent)
Definition:
StylePresetsPanel.cxx:142
sw::sidebar::StylePresetsPanel::mxValueSet
std::unique_ptr< ValueSet > mxValueSet
Definition:
StylePresetsPanel.hxx:52
sw::sidebar::StylePresetsPanel::mxValueSetWin
std::unique_ptr< weld::CustomWeld > mxValueSetWin
Definition:
StylePresetsPanel.hxx:53
sw::sidebar::StylePresetsPanel::Create
static std::unique_ptr< PanelLayout > Create(weld::Widget *pParent)
Definition:
StylePresetsPanel.cxx:134
sw::sidebar::StylePresetsPanel::RefreshList
void RefreshList()
Definition:
StylePresetsPanel.cxx:155
sw::sidebar::StylePresetsPanel::maTemplateEntries
std::vector< std::unique_ptr< TemplateEntry > > maTemplateEntries
Definition:
StylePresetsPanel.hxx:55
weld::Widget
aURL
URL aURL
std
sw::sidebar
Definition:
A11yCheckIssuesPanel.cxx:30
SfxItemState
SfxItemState
sw::sidebar::StylePresetsPanel::TemplateEntry
Definition:
StylePresetsPanel.hxx:42
sw::sidebar::StylePresetsPanel::TemplateEntry::TemplateEntry
TemplateEntry(OUString aURL)
Definition:
StylePresetsPanel.hxx:43
sw::sidebar::StylePresetsPanel::TemplateEntry::maURL
OUString maURL
Definition:
StylePresetsPanel.hxx:47
valueset.hxx
Generated on Sun Jul 30 2023 04:30:03 for LibreOffice Module sw (master) by
1.9.3