tdf#130857 qt weld: Support mail merge "Server Auth" dialog
[LibreOffice.git] / include / svx / sxcecitm.hxx
blob064de9ff9eceeaf7388d974ed205cf10438e1e4e
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 .
19 #ifndef INCLUDED_SVX_SXCECITM_HXX
20 #define INCLUDED_SVX_SXCECITM_HXX
22 #include <svl/eitem.hxx>
23 #include <svx/svddef.hxx>
24 #include <svx/sdynitm.hxx>
25 #include <svx/sdmetitm.hxx>
26 #include <svx/svxdllapi.h>
28 enum class SdrCaptionEscDir { Horizontal, Vertical, BestFit };
31 // class SdrCaptionEscDirItem
33 class SVXCORE_DLLPUBLIC SdrCaptionEscDirItem final : public SfxEnumItem<SdrCaptionEscDir> {
34 public:
35 SdrCaptionEscDirItem(SdrCaptionEscDir eDir=SdrCaptionEscDir::Horizontal)
36 : SfxEnumItem(SDRATTR_CAPTIONESCDIR, SfxItemType::SdrCaptionEscDirItemType, eDir) {}
37 SAL_DLLPRIVATE virtual SdrCaptionEscDirItem* Clone(SfxItemPool* pPool=nullptr) const override;
38 SAL_DLLPRIVATE virtual sal_uInt16 GetValueCount() const override; // { return 3; }
40 SAL_DLLPRIVATE static OUString GetValueTextByPos(sal_uInt16 nPos);
42 SAL_DLLPRIVATE virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString& rText, const IntlWrapper&) const override;
46 // class SdrCaptionEscIsRelItem
47 // sal_True = line escape position is relative
48 // sal_False = line escape position is absolute
50 class SVXCORE_DLLPUBLIC SdrCaptionEscIsRelItem final : public SdrYesNoItem {
51 public:
52 SdrCaptionEscIsRelItem(bool bRel=true): SdrYesNoItem(SDRATTR_CAPTIONESCISREL,bRel, SfxItemType::SdrCaptionEscIsRelItemType) {}
53 virtual ~SdrCaptionEscIsRelItem() override;
54 virtual SdrCaptionEscIsRelItem* Clone(SfxItemPool* pPool=nullptr) const override;
56 SdrCaptionEscIsRelItem(SdrCaptionEscIsRelItem const &) = default;
57 SdrCaptionEscIsRelItem(SdrCaptionEscIsRelItem &&) = default;
58 SdrCaptionEscIsRelItem & operator =(SdrCaptionEscIsRelItem const &) = delete; // due to SdrYesNoItem
59 SdrCaptionEscIsRelItem & operator =(SdrCaptionEscIsRelItem &&) = delete; // due to SdrYesNoItem
63 // class SdrCaptionEscRelItem
64 // relative line escape
65 // 0 = 0.00% = up resp. left,
66 // 10000 = 100.00% = right resp. down
67 // only when SdrCaptionEscIsRelItem=TRUE
69 class SVXCORE_DLLPUBLIC SdrCaptionEscRelItem final : public SfxInt32Item {
70 public:
71 SdrCaptionEscRelItem(sal_Int32 nEscRel=5000): SfxInt32Item(SDRATTR_CAPTIONESCREL, nEscRel, SfxItemType::SdrCaptionEscRelItemType) {}
72 virtual ~SdrCaptionEscRelItem() override;
73 virtual SdrCaptionEscRelItem* Clone(SfxItemPool* pPool=nullptr) const override;
75 SdrCaptionEscRelItem(SdrCaptionEscRelItem const &) = default;
76 SdrCaptionEscRelItem(SdrCaptionEscRelItem &&) = default;
77 SdrCaptionEscRelItem & operator =(SdrCaptionEscRelItem const &) = delete; // due to SfxInt32Item
78 SdrCaptionEscRelItem & operator =(SdrCaptionEscRelItem &&) = delete; // due to SfxInt32Item
82 // class SdrCaptionEscAbsItem
83 // absolute line escape
84 // 0 = up resp. left,
85 // >0 = in direction right resp. down
86 // only when SdrCaptionEscIsRelItem=FALSE
88 class SdrCaptionEscAbsItem final : public SdrMetricItem {
89 public:
90 SdrCaptionEscAbsItem(tools::Long nEscAbs=0): SdrMetricItem(SDRATTR_CAPTIONESCABS, nEscAbs, SfxItemType::SdrCaptionEscAbsItemType) {}
91 virtual SdrCaptionEscAbsItem* Clone(SfxItemPool*) const override
93 return new SdrCaptionEscAbsItem(*this);
97 #endif
99 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */