LibreOffice Module vcl (master)
1
include
vcl
decoview.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
#ifndef INCLUDED_VCL_DECOVIEW_HXX
21
#define INCLUDED_VCL_DECOVIEW_HXX
22
23
#include <
vcl/dllapi.h
>
24
#include <
vcl/outdev.hxx
>
25
#include <
vcl/vclptr.hxx
>
26
#include <
vcl/vclenum.hxx
>
27
#include <
o3tl/typed_flags_set.hxx
>
28
29
namespace
tools
{
class
Rectangle
; }
30
class
Point
;
31
class
Color
;
32
33
// Flags for DrawSymbol()
34
enum class
DrawSymbolFlags
35
{
36
NONE
= 0x0000,
37
Mono
= 0x0001,
38
Disable
= 0x0002,
39
};
40
namespace
o3tl
41
{
42
template
<>
struct
typed_flags
<
DrawSymbolFlags
> :
is_typed_flags
<DrawSymbolFlags, 0x03> {};
43
}
44
45
// Flags for DrawHighlightFrame()
46
enum class
DrawHighlightFrameStyle
47
{
48
In
= 1,
49
Out
= 2,
50
};
51
52
// Flags for DrawButton()
53
enum class
DrawButtonFlags
54
{
55
NONE
= 0x0000,
56
Default
= 0x0001,
57
NoLightBorder
= 0x0002,
58
Pressed
= 0x0004,
59
Checked
= 0x0008,
60
DontKnow
= 0x0010,
61
Mono
= 0x0020,
62
Disabled
= 0x0040,
63
Highlight
= 0x0100,
64
Flat
= 0x0200,
65
NoLeftLightBorder
= 0x1000
66
};
67
namespace
o3tl
68
{
69
template
<>
struct
typed_flags
<
DrawButtonFlags
> :
is_typed_flags
<DrawButtonFlags, 0x137f> {};
70
}
71
72
class
VCL_DLLPUBLIC
DecorationView
73
{
74
private
:
75
VclPtr<OutputDevice>
mpOutDev
;
76
77
public
:
78
DecorationView
(
OutputDevice
* pOutDev);
79
80
void
DrawSymbol(
const
tools::Rectangle
& rRect,
SymbolType
eType,
81
const
Color
& rColor,
DrawSymbolFlags
nStyle =
DrawSymbolFlags::NONE
);
82
void
DrawFrame(
const
tools::Rectangle
& rRect,
83
const
Color
& rLeftTopColor,
84
const
Color
& rRightBottomColor );
85
void
DrawHighlightFrame(
const
tools::Rectangle
& rRect,
86
DrawHighlightFrameStyle
nStyle );
87
tools::Rectangle
DrawFrame(
const
tools::Rectangle
& rRect,
DrawFrameStyle
nStyle =
DrawFrameStyle::Out
,
DrawFrameFlags
nFlags =
DrawFrameFlags::NONE
);
88
tools::Rectangle
DrawButton(
const
tools::Rectangle
& rRect,
DrawButtonFlags
nStyle );
89
void
DrawSeparator(
const
Point
& rStart,
const
Point
& rStop,
bool
bVertical =
true
);
90
void
DrawHandle(
const
tools::Rectangle
& rRectangle);
91
};
92
93
#endif
// INCLUDED_VCL_DECOVIEW_HXX
94
95
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SwCopyFlags::Default
@ Default
PropFlags::Checked
@ Checked
AxFontFlags::Disabled
@ Disabled
Color
DecorationView
Definition:
decoview.hxx:73
DecorationView::mpOutDev
VclPtr< OutputDevice > mpOutDev
Definition:
decoview.hxx:75
OutputDevice
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
Definition:
outdev.hxx:170
Point
VclPtr< OutputDevice >
tools::Rectangle
DrawButtonFlags
DrawButtonFlags
Definition:
decoview.hxx:54
DrawButtonFlags::NoLightBorder
@ NoLightBorder
DrawButtonFlags::Pressed
@ Pressed
DrawButtonFlags::NoLeftLightBorder
@ NoLeftLightBorder
DrawHighlightFrameStyle
DrawHighlightFrameStyle
Definition:
decoview.hxx:47
DrawSymbolFlags
DrawSymbolFlags
Definition:
decoview.hxx:35
DrawSymbolFlags::Mono
@ Mono
DrawSymbolFlags::NONE
@ NONE
dllapi.h
VCL_DLLPUBLIC
#define VCL_DLLPUBLIC
Definition:
dllapi.h:29
NONE
NONE
SystemColorType::Highlight
@ Highlight
o3tl
SVGToken::In
@ In
tools
outdev.hxx
OutlinerMode::DontKnow
@ DontKnow
o3tl::is_typed_flags
o3tl::typed_flags
SdrIterMode::Flat
@ Flat
SdrObjKind::Rectangle
@ Rectangle
SdrAnimationMode::Disable
@ Disable
typed_flags_set.hxx
vclenum.hxx
SymbolType
SymbolType
Definition:
vclenum.hxx:74
DrawFrameStyle
DrawFrameStyle
Definition:
vclenum.hxx:290
DrawFrameStyle::Out
@ Out
DrawFrameFlags
DrawFrameFlags
Definition:
vclenum.hxx:302
DrawFrameFlags::NONE
@ NONE
vclptr.hxx
Out
SwHTMLWriter & Out(const SwAttrFnTab, const SfxPoolItem &, SwHTMLWriter &)
Generated on Sun Jul 30 2023 04:34:47 for LibreOffice Module vcl (master) by
1.9.3