update emoji autocorrect entries from po-files
[LibreOffice.git] / include / svx / svdglev.hxx
blob92f77fef4d8d5fb1bb1cc9951086e2c284f7ada5
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_SVX_SVDGLEV_HXX
21 #define INCLUDED_SVX_SVDGLEV_HXX
23 #include <svx/svxdllapi.h>
24 #include <svx/svdpoev.hxx>
26 class SdrGluePoint;
29 // Edit GluePoints at the objects (GluePoints for connector)
32 class SVX_DLLPUBLIC SdrGlueEditView: public SdrPolyEditView
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*, const void*);
37 typedef void (*PGlueTrFunc)(Point&, const void*, const void*, const void*, const void*, const void*);
38 void ImpDoMarkedGluePoints(PGlueDoFunc pDoFunc, bool bConst, const void* p1=NULL, const void* p2=NULL, const void* p3=NULL, const void* p4=NULL, const void* p5=NULL);
39 void ImpTransformMarkedGluePoints(PGlueTrFunc pTrFunc, const void* p1=NULL, const void* p2=NULL, const void* p3=NULL, const void* p4=NULL, const void* p5=NULL);
41 protected:
42 // #i71538# make constructors of SdrView sub-components protected to avoid incomplete incarnations which may get casted to SdrView
43 SdrGlueEditView(SdrModel* pModel1, OutputDevice* pOut = 0L);
44 virtual ~SdrGlueEditView();
46 public:
47 // the parameter nThisEsc is used to hand over the direction,
48 // which one wished to check,set or delete
49 // possible values for nThisEsc are:
50 // SdrEscapeDirection::LEFT, SdrEscapeDirection::RIGHT, SdrEscapeDirection::TOP and SdrEscapeDirection::BOTTOM
51 SDR_TRISTATE IsMarkedGluePointsEscDir(SdrEscapeDirection nThisEsc) const;
52 void SetMarkedGluePointsEscDir(SdrEscapeDirection nThisEsc, bool bOn);
53 bool IsSetMarkedGluePointsEscDirPossible() const { return !IsReadOnly() && HasMarkedGluePoints(); }
55 // check/set, if the GluePoints are relativ to the
56 // object size (Percent=sal_True) or not (Percent=sal_False)
57 SDR_TRISTATE IsMarkedGluePointsPercent() const;
58 void SetMarkedGluePointsPercent(bool bOn);
59 bool IsSetMarkedGluePointsPercentPossible() const { return !IsReadOnly() && HasMarkedGluePoints(); }
61 // bVert=FALSE: check/set hotizontal alignment
62 // SdrAlign::HORZ_CENTER
63 // SdrAlign::HORZ_LEFT
64 // SdrAlign::HORZ_RIGHT
65 // SdrAlign::HORZ_DONTCARE (only at Get())
66 // bVert=TRUE: check/set vertical alignment
67 // SdrAlign::VERT_CENTER
68 // SdrAlign::VERT_TOP
69 // SdrAlign::VERT_BOTTOM
70 // SdrAlign::VERT_DONTCARE (only at Get())
71 SdrAlign GetMarkedGluePointsAlign(bool bVert) const;
72 void SetMarkedGluePointsAlign(bool bVert, SdrAlign nAlign);
73 bool IsSetMarkedGluePointsAlignPossible() const { return !IsReadOnly() && HasMarkedGluePoints(); }
75 // delete all marked GluePoints
76 void DeleteMarkedGluePoints();
78 void MoveMarkedGluePoints (const Size& rSiz, bool bCopy=false);
79 void ResizeMarkedGluePoints(const Point& rRef, const Fraction& xFact, const Fraction& yFact, bool bCopy=false);
80 void RotateMarkedGluePoints(const Point& rRef, long nAngle, bool bCopy=false);
81 void MirrorMarkedGluePoints(const Point& rRef1, const Point& rRef2, bool bCopy=false);
82 void MirrorMarkedGluePointsHorizontal(bool bCopy=false);
83 void MirrorMarkedGluePointsVertical(bool bCopy=false);
84 void ShearMarkedGluePoints(const Point& rRef, long nAngle, bool bVShear=false, bool bCopy=false);
85 void CrookMarkedGluePoints(const Point& rRef, const Point& rRad, SdrCrookMode eMode, bool bVertical=false, bool bNoContortion=false, bool bCopy=false);
86 void DistortMarkedGluePoints(const Rectangle& rRef, const XPolygon& rDistortedRect, bool bNoContortion=false, bool bCopy=false);
88 void AlignMarkedGluePoints(SdrHorAlign eHor, SdrVertAlign eVert);
91 #endif // INCLUDED_SVX_SVDGLEV_HXX
93 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */