LibreOffice Module svx (master)
1
svx
source
sidebar
line
LineWidthValueSet.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
#ifndef INCLUDED_SVX_SOURCE_SIDEBAR_LINE_LINEWIDTHVALUESET_HXX
20
#define INCLUDED_SVX_SOURCE_SIDEBAR_LINE_LINEWIDTHVALUESET_HXX
21
22
#include <
svtools/valueset.hxx
>
23
#include <
vcl/image.hxx
>
24
#include <array>
25
26
namespace
svx::sidebar
{
27
28
class
LineWidthValueSet
final :
public
ValueSet
29
{
30
public
:
31
explicit
LineWidthValueSet
();
32
virtual
~LineWidthValueSet
()
override
;
33
34
void
SetUnit
(std::array<OUString,9>
const
& strUnits);
35
void
SetSelItem
(sal_uInt16 nSel);
36
sal_uInt16
GetSelItem
()
const
{
return
nSelItem
;}
37
void
SetImage
(
const
Image
& img);
38
void
SetCusEnable
(
bool
bEnable);
39
40
virtual
void
UserDraw
(
const
UserDrawEvent
& rUDEvt )
override
;
41
virtual
void
Resize
()
override
;
42
virtual
void
SetDrawingArea
(
weld::DrawingArea
* pDrawingArea)
override
;
43
44
private
:
45
sal_uInt16
nSelItem
;
46
std::array<OUString,9>
maStrUnits
;
47
Image
imgCus
;
48
bool
bCusEnable
;
49
};
50
51
}
// end of namespace svx::sidebar
52
53
#endif
// INCLUDED_SVX_SOURCE_SIDEBAR_LINE_LINEWIDTHVALUESET_HXX
54
55
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Image
UserDrawEvent
ValueSet
svx::sidebar::LineWidthValueSet
Definition:
LineWidthValueSet.hxx:29
svx::sidebar::LineWidthValueSet::nSelItem
sal_uInt16 nSelItem
Definition:
LineWidthValueSet.hxx:45
svx::sidebar::LineWidthValueSet::SetSelItem
void SetSelItem(sal_uInt16 nSel)
Definition:
LineWidthValueSet.cxx:51
svx::sidebar::LineWidthValueSet::maStrUnits
std::array< OUString, 9 > maStrUnits
Definition:
LineWidthValueSet.hxx:46
svx::sidebar::LineWidthValueSet::SetImage
void SetImage(const Image &img)
Definition:
LineWidthValueSet.cxx:66
svx::sidebar::LineWidthValueSet::bCusEnable
bool bCusEnable
Definition:
LineWidthValueSet.hxx:48
svx::sidebar::LineWidthValueSet::GetSelItem
sal_uInt16 GetSelItem() const
Definition:
LineWidthValueSet.hxx:36
svx::sidebar::LineWidthValueSet::UserDraw
virtual void UserDraw(const UserDrawEvent &rUDEvt) override
Definition:
LineWidthValueSet.cxx:76
svx::sidebar::LineWidthValueSet::SetCusEnable
void SetCusEnable(bool bEnable)
Definition:
LineWidthValueSet.cxx:71
svx::sidebar::LineWidthValueSet::SetUnit
void SetUnit(std::array< OUString, 9 > const &strUnits)
Definition:
LineWidthValueSet.cxx:46
svx::sidebar::LineWidthValueSet::~LineWidthValueSet
virtual ~LineWidthValueSet() override
Definition:
LineWidthValueSet.cxx:42
svx::sidebar::LineWidthValueSet::imgCus
Image imgCus
Definition:
LineWidthValueSet.hxx:47
svx::sidebar::LineWidthValueSet::Resize
virtual void Resize() override
Definition:
LineWidthValueSet.cxx:35
svx::sidebar::LineWidthValueSet::SetDrawingArea
virtual void SetDrawingArea(weld::DrawingArea *pDrawingArea) override
Definition:
LineWidthValueSet.cxx:162
svx::sidebar::LineWidthValueSet::LineWidthValueSet
LineWidthValueSet()
Definition:
LineWidthValueSet.cxx:28
weld::DrawingArea
image.hxx
svx::sidebar
valueset.hxx
Generated on Sun Jul 30 2023 04:28:15 for LibreOffice Module svx (master) by
1.9.3