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
PreviewValueSet.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 <
svtools/valueset.hxx
>
23
24
namespace
sd::sidebar
25
{
28
class
PreviewValueSet
:
public
ValueSet
29
{
30
public
:
31
explicit
PreviewValueSet
();
32
virtual
void
SetDrawingArea
(
weld::DrawingArea
* pDrawingArea)
override
;
33
virtual
~PreviewValueSet
()
override
;
34
35
void
SetContextMenuHandler
(
const
Link<const Point*, void>
& rLink);
36
37
virtual
void
Resize
()
override
;
38
virtual
bool
Command
(
const
CommandEvent
& rEvent)
override
;
39
40
void
SetPreviewSize
(
const
Size
& rSize);
41
42
sal_Int32
GetPreferredHeight
(sal_Int32 nWidth);
43
47
void
Rearrange
();
48
49
private
:
50
Link<const Point*, void>
maContextMenuHandler
;
51
Size
maPreviewSize
;
52
53
sal_uInt16
CalculateColumnCount
(
int
nWidth)
const
;
54
sal_uInt16
CalculateRowCount
(sal_uInt16 nColumnCount)
const
;
55
};
56
57
}
// end of namespace sd::sidebar
58
59
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
CommandEvent
Link< const Point *, void >
Size
ValueSet
sd::sidebar::PreviewValueSet
Adapt the svtools valueset to the needs of the master page controls.
Definition:
PreviewValueSet.hxx:29
sd::sidebar::PreviewValueSet::maPreviewSize
Size maPreviewSize
Definition:
PreviewValueSet.hxx:51
sd::sidebar::PreviewValueSet::maContextMenuHandler
Link< const Point *, void > maContextMenuHandler
Definition:
PreviewValueSet.hxx:50
sd::sidebar::PreviewValueSet::Rearrange
void Rearrange()
Set the number of rows and columns according to the current number of items.
Definition:
PreviewValueSet.cxx:80
sd::sidebar::PreviewValueSet::SetDrawingArea
virtual void SetDrawingArea(weld::DrawingArea *pDrawingArea) override
Definition:
PreviewValueSet.cxx:39
sd::sidebar::PreviewValueSet::CalculateRowCount
sal_uInt16 CalculateRowCount(sal_uInt16 nColumnCount) const
Definition:
PreviewValueSet.cxx:103
sd::sidebar::PreviewValueSet::Command
virtual bool Command(const CommandEvent &rEvent) override
Definition:
PreviewValueSet.cxx:61
sd::sidebar::PreviewValueSet::CalculateColumnCount
sal_uInt16 CalculateColumnCount(int nWidth) const
Definition:
PreviewValueSet.cxx:91
sd::sidebar::PreviewValueSet::GetPreferredHeight
sal_Int32 GetPreferredHeight(sal_Int32 nWidth)
Definition:
PreviewValueSet.cxx:117
sd::sidebar::PreviewValueSet::PreviewValueSet
PreviewValueSet()
Definition:
PreviewValueSet.cxx:28
sd::sidebar::PreviewValueSet::SetContextMenuHandler
void SetContextMenuHandler(const Link< const Point *, void > &rLink)
Definition:
PreviewValueSet.cxx:56
sd::sidebar::PreviewValueSet::Resize
virtual void Resize() override
Definition:
PreviewValueSet.cxx:69
sd::sidebar::PreviewValueSet::~PreviewValueSet
virtual ~PreviewValueSet() override
Definition:
PreviewValueSet.cxx:47
sd::sidebar::PreviewValueSet::SetPreviewSize
void SetPreviewSize(const Size &rSize)
Definition:
PreviewValueSet.cxx:51
weld::DrawingArea
sd::sidebar
Definition:
AllMasterPagesSelector.cxx:68
valueset.hxx
Generated on Sun Jul 30 2023 04:27:23 for LibreOffice Module sd (master) by
1.9.3