LibreOffice Module svx (master) 1
svdglev.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_SVX_SVDGLEV_HXX
21#define INCLUDED_SVX_SVDGLEV_HXX
22
23#include <svx/svxdllapi.h>
24#include <svx/svdpoev.hxx>
25
26class SdrGluePoint;
27
28
29// Edit GluePoints at the objects (GluePoints for connector)
30
31
33{
34 // copy marked GluePoints and mark instead of the old ones
35 void ImpCopyMarkedGluePoints();
36 typedef void (*PGlueDoFunc)(SdrGluePoint&, const SdrObject* pObj, const void*, const void*, const void*, const void*);
37 typedef void (*PGlueTrFunc)(Point&, const void*, const void*, const void*, const void*);
38 void ImpDoMarkedGluePoints(PGlueDoFunc pDoFunc, bool bConst, const void* p1, const void* p2=nullptr, const void* p3=nullptr, const void* p4=nullptr);
39 void ImpTransformMarkedGluePoints(PGlueTrFunc pTrFunc, const void* p1, const void* p2=nullptr, const void* p3=nullptr, const void* p4=nullptr);
40
41protected:
42 // #i71538# make constructors of SdrView sub-components protected to avoid incomplete incarnations which may get casted to SdrView
44 SdrModel& rSdrModel,
45 OutputDevice* pOut);
46
47 virtual ~SdrGlueEditView() override;
48
49public:
50 // the parameter nThisEsc is used to hand over the direction,
51 // which one wished to check,set or delete
52 // possible values for nThisEsc are:
53 // SdrEscapeDirection::LEFT, SdrEscapeDirection::RIGHT, SdrEscapeDirection::TOP and SdrEscapeDirection::BOTTOM
54 TriState IsMarkedGluePointsEscDir(SdrEscapeDirection nThisEsc) const;
55 void SetMarkedGluePointsEscDir(SdrEscapeDirection nThisEsc, bool bOn);
56
57 // check/set, if the GluePoints are relative to the
58 // object size (Percent=sal_True) or not (Percent=sal_False)
59 TriState IsMarkedGluePointsPercent() const;
60 void SetMarkedGluePointsPercent(bool bOn);
61
62 // bVert=FALSE: check/set horizontal alignment
63 // SdrAlign::HORZ_CENTER
64 // SdrAlign::HORZ_LEFT
65 // SdrAlign::HORZ_RIGHT
66 // SdrAlign::HORZ_DONTCARE (only at Get())
67 // bVert=TRUE: check/set vertical alignment
68 // SdrAlign::VERT_CENTER
69 // SdrAlign::VERT_TOP
70 // SdrAlign::VERT_BOTTOM
71 // SdrAlign::VERT_DONTCARE (only at Get())
72 SdrAlign GetMarkedGluePointsAlign(bool bVert) const;
73 void SetMarkedGluePointsAlign(bool bVert, SdrAlign nAlign);
74
75 // delete all marked GluePoints
76 void DeleteMarkedGluePoints();
77
78 void MoveMarkedGluePoints (const Size& rSiz, bool bCopy);
79 void ResizeMarkedGluePoints(const Point& rRef, const Fraction& xFact, const Fraction& yFact, bool bCopy);
80 void RotateMarkedGluePoints(const Point& rRef, Degree100 nAngle, bool bCopy);
81};
82
83#endif // INCLUDED_SVX_SVDGLEV_HXX
84
85/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Abstract DrawObject.
Definition: svdobj.hxx:261
TriState
SdrAlign
Definition: svdglue.hxx:51
SdrEscapeDirection
Definition: svdglue.hxx:35
#define SVXCORE_DLLPUBLIC
Definition: svxdllapi.h:35