LibreOffice Module sc (master)
1
sc
source
ui
sidebar
CellLineStyleValueSet.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
#pragma once
20
21
#include <
svtools/valueset.hxx
>
22
#include <
tools/long.hxx
>
23
24
#define CELL_LINE_STYLE_ENTRIES 11
25
26
namespace
sc::sidebar
27
{
28
class
CellLineStyleValueSet
:
public
ValueSet
29
{
30
private
:
31
tools::Long
mnMaxTextWidth
;
32
sal_uInt16
nSelItem
;
33
OUString
maStrUnit
[
CELL_LINE_STYLE_ENTRIES
];
34
35
public
:
36
CellLineStyleValueSet
();
37
virtual
~CellLineStyleValueSet
()
override
;
38
39
void
SetUnit
(
const
OUString* str);
40
void
SetSelItem
(sal_uInt16 nSel);
41
tools::Long
GetMaxTextWidth
(
const
vcl::RenderContext
* pDev);
42
virtual
void
SetDrawingArea
(
weld::DrawingArea
* pDrawingArea)
override
;
43
virtual
void
UserDraw
(
const
UserDrawEvent
& rUDEvt)
override
;
44
};
45
46
}
// end of namespace svx::sidebar
47
48
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
CELL_LINE_STYLE_ENTRIES
#define CELL_LINE_STYLE_ENTRIES
Definition:
CellLineStyleValueSet.hxx:24
OutputDevice
UserDrawEvent
ValueSet
sc::sidebar::CellLineStyleValueSet
Definition:
CellLineStyleValueSet.hxx:29
sc::sidebar::CellLineStyleValueSet::mnMaxTextWidth
tools::Long mnMaxTextWidth
Definition:
CellLineStyleValueSet.hxx:31
sc::sidebar::CellLineStyleValueSet::CellLineStyleValueSet
CellLineStyleValueSet()
Definition:
CellLineStyleValueSet.cxx:28
sc::sidebar::CellLineStyleValueSet::GetMaxTextWidth
tools::Long GetMaxTextWidth(const vcl::RenderContext *pDev)
Definition:
CellLineStyleValueSet.cxx:74
sc::sidebar::CellLineStyleValueSet::SetDrawingArea
virtual void SetDrawingArea(weld::DrawingArea *pDrawingArea) override
Definition:
CellLineStyleValueSet.cxx:39
sc::sidebar::CellLineStyleValueSet::nSelItem
sal_uInt16 nSelItem
Definition:
CellLineStyleValueSet.hxx:32
sc::sidebar::CellLineStyleValueSet::SetUnit
void SetUnit(const OUString *str)
Definition:
CellLineStyleValueSet.cxx:51
sc::sidebar::CellLineStyleValueSet::~CellLineStyleValueSet
virtual ~CellLineStyleValueSet() override
Definition:
CellLineStyleValueSet.cxx:35
sc::sidebar::CellLineStyleValueSet::maStrUnit
OUString maStrUnit[CELL_LINE_STYLE_ENTRIES]
Definition:
CellLineStyleValueSet.hxx:33
sc::sidebar::CellLineStyleValueSet::SetSelItem
void SetSelItem(sal_uInt16 nSel)
Definition:
CellLineStyleValueSet.cxx:59
sc::sidebar::CellLineStyleValueSet::UserDraw
virtual void UserDraw(const UserDrawEvent &rUDEvt) override
Definition:
CellLineStyleValueSet.cxx:86
weld::DrawingArea
long.hxx
sc::sidebar
Definition:
AlignmentPropertyPanel.cxx:37
tools::Long
long Long
valueset.hxx
Generated on Sun Jul 30 2023 04:29:27 for LibreOffice Module sc (master) by
1.9.3