LibreOffice Module svx (master) 1
paraprev.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_PARAPREV_HXX
20#define INCLUDED_SVX_PARAPREV_HXX
21
22#include <vcl/customweld.hxx>
23#include <editeng/svxenum.hxx>
24#include <svx/svxdllapi.h>
25
27{
28 N1 = 0,
29 N115,
30 N15,
31 N2,
32 Prop,
33 Min,
35};
36
38{
40
41 // indentation
45 // distances
46 sal_uInt16 nUpper;
47 sal_uInt16 nLower;
48 // adjustment
50 // last line in justification
52 // line distance
54
55 virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect) override;
56 virtual void SetDrawingArea(weld::DrawingArea* pDrawingArea) override;
57 void DrawParagraph(vcl::RenderContext& rRenderContext);
58
59public:
61
62 void SetFirstLineOffset( short nNew )
63 {
64 nFirstLineOffset = nNew;
65 }
67 {
68 nLeftMargin = nNew;
69 }
71 {
72 nRightMargin = nNew;
73 }
74 void SetUpper( sal_uInt16 nNew )
75 {
76 nUpper = nNew;
77 }
78 void SetLower( sal_uInt16 nNew )
79 {
80 nLower = nNew;
81 }
82 void SetAdjust( SvxAdjust eNew )
83 {
84 eAdjust = eNew;
85 }
87 {
88 eLastLine = eNew;
89 }
91 {
92 eLine = eNew;
93 }
94 void SetSize( Size aNew )
95 {
96 aSize = aNew;
97 }
98};
99
100
101#endif
102
103/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SvxPrevLineSpace eLine
Definition: paraprev.hxx:53
void SetRightMargin(tools::Long nNew)
Definition: paraprev.hxx:70
tools::Long nLeftMargin
Definition: paraprev.hxx:42
void SetLeftMargin(tools::Long nNew)
Definition: paraprev.hxx:66
short nFirstLineOffset
Definition: paraprev.hxx:44
tools::Long nRightMargin
Definition: paraprev.hxx:43
void SetUpper(sal_uInt16 nNew)
Definition: paraprev.hxx:74
SvxAdjust eLastLine
Definition: paraprev.hxx:51
SvxAdjust eAdjust
Definition: paraprev.hxx:49
void SetLineSpace(SvxPrevLineSpace eNew)
Definition: paraprev.hxx:90
void SetAdjust(SvxAdjust eNew)
Definition: paraprev.hxx:82
void SetSize(Size aNew)
Definition: paraprev.hxx:94
void SetLower(sal_uInt16 nNew)
Definition: paraprev.hxx:78
sal_uInt16 nLower
Definition: paraprev.hxx:47
sal_uInt16 nUpper
Definition: paraprev.hxx:46
void SetLastLine(SvxAdjust eNew)
Definition: paraprev.hxx:86
void SetFirstLineOffset(short nNew)
Definition: paraprev.hxx:62
virtual void SetDrawingArea(weld::DrawingArea *pDrawingArea)
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)=0
sal_Int32 nFirstLineOffset
tools::Long const nRightMargin
tools::Long const nLeftMargin
long Long
SvxPrevLineSpace
Definition: paraprev.hxx:27
#define SVX_DLLPUBLIC
Definition: svxdllapi.h:28
SvxAdjust