tdf#130857 qt weld: Support mail merge "Server Auth" dialog
[LibreOffice.git] / include / svx / svdglev.hxx
blob1356033d25d022535abb5dec17e5d7ecaf333ae3
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 SVXCORE_DLLPUBLIC SdrGlueEditView : public SdrPolyEditView
34 // copy marked GluePoints and mark instead of the old ones
35 SAL_DLLPRIVATE SAL_DLLPRIVATE 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 SAL_DLLPRIVATE void ImpDoMarkedGluePoints(PGlueDoFunc pDoFunc, bool bConst, const void* p1, const void* p2=nullptr, const void* p3=nullptr, const void* p4=nullptr);
39 SAL_DLLPRIVATE SAL_DLLPRIVATE void ImpTransformMarkedGluePoints(PGlueTrFunc pTrFunc, const void* p1, const void* p2=nullptr, const void* p3=nullptr, const void* p4=nullptr);
41 protected:
42 // #i71538# make constructors of SdrView sub-components protected to avoid incomplete incarnations which may get casted to SdrView
43 SAL_DLLPRIVATE SdrGlueEditView(
44 SdrModel& rSdrModel,
45 OutputDevice* pOut);
47 SAL_DLLPRIVATE virtual ~SdrGlueEditView() override;
49 public:
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);
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);
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);
75 // delete all marked GluePoints
76 SAL_DLLPRIVATE void DeleteMarkedGluePoints();
78 SAL_DLLPRIVATE void MoveMarkedGluePoints (const Size& rSiz, bool bCopy);
79 SAL_DLLPRIVATE void ResizeMarkedGluePoints(const Point& rRef, const Fraction& xFact, const Fraction& yFact, bool bCopy);
80 SAL_DLLPRIVATE void RotateMarkedGluePoints(const Point& rRef, Degree100 nAngle, bool bCopy);
83 #endif // INCLUDED_SVX_SVDGLEV_HXX
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */