LibreOffice Module sd (master)
1
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Functions
a
c
d
f
g
h
i
l
m
o
r
s
u
w
Variables
a
b
c
d
e
g
h
i
m
n
o
p
s
t
v
w
Typedefs
a
b
c
d
e
f
g
i
l
m
n
p
r
s
t
u
v
w
Enumerations
Enumerator
a
b
c
d
e
f
h
m
n
o
p
s
t
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
a
b
c
d
e
f
g
h
l
m
n
o
p
r
s
u
x
z
Typedefs
a
b
c
d
e
f
i
k
l
m
p
r
s
t
u
v
x
Enumerations
a
c
d
e
f
g
h
i
l
m
o
p
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Related Functions
:
a
c
d
e
i
m
o
p
s
t
u
v
w
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
w
Variables
a
b
c
d
g
h
j
k
m
n
p
s
t
v
w
x
Typedefs
Enumerations
Enumerator
c
f
h
l
m
n
o
p
s
u
v
Macros
a
b
c
d
e
f
g
i
k
m
n
p
r
s
t
u
v
w
z
sd
source
ui
sidebar
LayoutMenu.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 <
sfx2/sidebar/ILayoutableWindow.hxx
>
23
#include <
sfx2/sidebar/PanelLayout.hxx
>
24
25
#include <
svtools/valueset.hxx
>
26
#include <
sfx2/request.hxx
>
27
#include <
xmloff/autolayout.hxx
>
28
29
namespace
com::sun::star::frame
30
{
31
class
XStatusListener;
32
}
33
namespace
com::sun::star::ui
34
{
35
class
XSidebar;
36
}
37
38
namespace
sd
39
{
40
class
DrawDocShell;
41
class
ViewShellBase;
42
}
43
44
namespace
sd::tools
45
{
46
class
EventMultiplexerEvent;
47
}
48
49
namespace
sd::sidebar
50
{
51
class
LayoutValueSet;
52
53
class
LayoutMenu
:
public
PanelLayout
,
public
sfx2::sidebar::ILayoutableWindow
54
{
55
public
:
64
LayoutMenu
(
weld::Widget
* pParent,
ViewShellBase
& rViewShellBase,
65
css::uno::Reference<css::ui::XSidebar> xSidebar);
66
virtual
~LayoutMenu
()
override
;
67
68
void
Dispose
();
69
73
AutoLayout
GetSelectedAutoLayout
()
const
;
74
75
// From ILayoutableWindow
76
virtual
css::ui::LayoutSize
GetHeightForWidth
(
const
sal_Int32 nWidth)
override
;
77
82
void
InvalidateContent
();
83
86
void
ShowContextMenu
(
const
Point
* pPos);
87
91
virtual
void
DataChanged
(
const
DataChangedEvent
& rEvent)
override
;
92
93
private
:
94
ViewShellBase
&
mrBase
;
95
96
std::unique_ptr<LayoutValueSet>
mxLayoutValueSet
;
97
std::unique_ptr<weld::CustomWeld>
mxLayoutValueSetWin
;
98
102
css::uno::Reference<css::frame::XStatusListener>
mxListener
;
103
bool
mbIsMainViewChangePending
;
104
css::uno::Reference<css::ui::XSidebar>
mxSidebar
;
105
bool
mbIsDisposed
;
106
110
void
Fill
();
111
114
void
Clear
();
115
120
void
AssignLayoutToSelectedSlides
(
AutoLayout
aLayout);
121
128
void
InsertPageWithLayout
(
AutoLayout
aLayout);
129
138
SfxRequest
CreateRequest
(sal_uInt16 nSlotId,
AutoLayout
aLayout);
139
142
void
UpdateSelection
();
143
144
// internal ctor
145
void
implConstruct
(
DrawDocShell
& rDocumentShell);
146
149
DECL_LINK
(ClickHandler,
ValueSet
*,
void
);
150
DECL_LINK
(StateChangeHandler,
const
OUString&,
void
);
151
DECL_LINK
(EventMultiplexerListener,
::sd::tools::EventMultiplexerEvent
&,
void
);
152
void
OnMenuItemSelected
(std::u16string_view ident);
153
};
154
155
}
// end of namespace ::sd::toolpanel
156
157
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ILayoutableWindow.hxx
PanelLayout.hxx
autolayout.hxx
AutoLayout
AutoLayout
DataChangedEvent
PanelLayout
Point
SfxRequest
ValueSet
sd::DrawDocShell
Definition:
DrawDocShell.hxx:48
sd::ViewShellBase
SfxViewShell descendant that the stacked Draw/Impress shells are based on.
Definition:
ViewShellBase.hxx:56
sd::sidebar::LayoutMenu
Definition:
LayoutMenu.hxx:54
sd::sidebar::LayoutMenu::InvalidateContent
void InvalidateContent()
Call this method when the set of displayed layouts is not up-to-date anymore.
Definition:
LayoutMenu.cxx:342
sd::sidebar::LayoutMenu::DataChanged
virtual void DataChanged(const DataChangedEvent &rEvent) override
Call Fill() when switching to or from high contrast mode so that the correct set of icons is displaye...
Definition:
LayoutMenu.cxx:717
sd::sidebar::LayoutMenu::OnMenuItemSelected
void OnMenuItemSelected(std::u16string_view ident)
Definition:
LayoutMenu.cxx:612
sd::sidebar::LayoutMenu::GetSelectedAutoLayout
AutoLayout GetSelectedAutoLayout() const
Return a numerical value representing the currently selected layout.
Definition:
LayoutMenu.cxx:234
sd::sidebar::LayoutMenu::DECL_LINK
DECL_LINK(StateChangeHandler, const OUString &, void)
sd::sidebar::LayoutMenu::ShowContextMenu
void ShowContextMenu(const Point *pPos)
The context menu is requested over this ShowContextMenu() method.
Definition:
LayoutMenu.cxx:566
sd::sidebar::LayoutMenu::UpdateSelection
void UpdateSelection()
Select the layout that is used by the current page.
Definition:
LayoutMenu.cxx:634
sd::sidebar::LayoutMenu::GetHeightForWidth
virtual css::ui::LayoutSize GetHeightForWidth(const sal_Int32 nWidth) override
Definition:
LayoutMenu.cxx:248
sd::sidebar::LayoutMenu::mbIsDisposed
bool mbIsDisposed
Definition:
LayoutMenu.hxx:105
sd::sidebar::LayoutMenu::Fill
void Fill()
Fill the value set with the layouts that are applicable to the current main view shell.
Definition:
LayoutMenu.cxx:496
sd::sidebar::LayoutMenu::LayoutMenu
LayoutMenu(weld::Widget *pParent, ViewShellBase &rViewShellBase, css::uno::Reference< css::ui::XSidebar > xSidebar)
Create a new layout menu.
Definition:
LayoutMenu.cxx:158
sd::sidebar::LayoutMenu::mxLayoutValueSetWin
std::unique_ptr< weld::CustomWeld > mxLayoutValueSetWin
Definition:
LayoutMenu.hxx:97
sd::sidebar::LayoutMenu::mbIsMainViewChangePending
bool mbIsMainViewChangePending
Definition:
LayoutMenu.hxx:103
sd::sidebar::LayoutMenu::DECL_LINK
DECL_LINK(ClickHandler, ValueSet *, void)
When clicked then set the current page of the view in the center pane.
sd::sidebar::LayoutMenu::mrBase
ViewShellBase & mrBase
Definition:
LayoutMenu.hxx:94
sd::sidebar::LayoutMenu::mxLayoutValueSet
std::unique_ptr< LayoutValueSet > mxLayoutValueSet
Definition:
LayoutMenu.hxx:96
sd::sidebar::LayoutMenu::mxListener
css::uno::Reference< css::frame::XStatusListener > mxListener
If we are asked for the preferred window size, then use this many columns for the calculation.
Definition:
LayoutMenu.hxx:102
sd::sidebar::LayoutMenu::AssignLayoutToSelectedSlides
void AssignLayoutToSelectedSlides(AutoLayout aLayout)
Assign the given layout to all selected slides of a slide sorter.
Definition:
LayoutMenu.cxx:377
sd::sidebar::LayoutMenu::Dispose
void Dispose()
Definition:
LayoutMenu.cxx:216
sd::sidebar::LayoutMenu::~LayoutMenu
virtual ~LayoutMenu() override
Definition:
LayoutMenu.cxx:208
sd::sidebar::LayoutMenu::mxSidebar
css::uno::Reference< css::ui::XSidebar > mxSidebar
Definition:
LayoutMenu.hxx:104
sd::sidebar::LayoutMenu::Clear
void Clear()
Remove all items from the value set.
Definition:
LayoutMenu.cxx:559
sd::sidebar::LayoutMenu::DECL_LINK
DECL_LINK(EventMultiplexerListener, ::sd::tools::EventMultiplexerEvent &, void)
sd::sidebar::LayoutMenu::implConstruct
void implConstruct(DrawDocShell &rDocumentShell)
Definition:
LayoutMenu.cxx:178
sd::sidebar::LayoutMenu::InsertPageWithLayout
void InsertPageWithLayout(AutoLayout aLayout)
Insert a new page with the given layout.
Definition:
LayoutMenu.cxx:318
sd::sidebar::LayoutMenu::CreateRequest
SfxRequest CreateRequest(sal_uInt16 nSlotId, AutoLayout aLayout)
Create a request structure that can be used with the SID_INSERTPAGE and SID_MODIFYPAGE slots.
Definition:
LayoutMenu.cxx:461
sd::tools::EventMultiplexerEvent
Definition:
EventMultiplexer.hxx:120
weld::Widget
com::sun::star::frame
com::sun::star::ui
sd::sidebar
Definition:
AllMasterPagesSelector.cxx:68
sd::tools
Definition:
annotationmanagerimpl.hxx:44
sd
request.hxx
valueset.hxx
Generated on Sun Jul 30 2023 04:27:23 for LibreOffice Module sd (master) by
1.9.3