/src/libreoffice/include/svx/sxenditm.hxx
Line | Count | Source |
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_SXENDITM_HXX |
20 | | #define INCLUDED_SVX_SXENDITM_HXX |
21 | | |
22 | | #include <svx/svddef.hxx> |
23 | | #include <svx/sdmetitm.hxx> |
24 | | #include <svx/svxdllapi.h> |
25 | | |
26 | | class SVXCORE_DLLPUBLIC SdrEdgeNode1HorzDistItem final : public SdrMetricItem { |
27 | | public: |
28 | | DECLARE_ITEM_TYPE_FUNCTION(SdrEdgeNode1HorzDistItem) |
29 | 96.3k | SdrEdgeNode1HorzDistItem(tools::Long nVal): SdrMetricItem(SDRATTR_EDGENODE1HORZDIST, nVal) {} |
30 | | SAL_DLLPRIVATE virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; |
31 | | SAL_DLLPRIVATE virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; |
32 | | SAL_DLLPRIVATE virtual SdrEdgeNode1HorzDistItem* Clone(SfxItemPool* pPool=nullptr) const override; |
33 | | }; |
34 | | |
35 | | class SVXCORE_DLLPUBLIC SdrEdgeNode1VertDistItem final : public SdrMetricItem { |
36 | | public: |
37 | | DECLARE_ITEM_TYPE_FUNCTION(SdrEdgeNode1VertDistItem) |
38 | 96.3k | SdrEdgeNode1VertDistItem(tools::Long nVal): SdrMetricItem(SDRATTR_EDGENODE1VERTDIST, nVal) {} |
39 | | SAL_DLLPRIVATE virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; |
40 | | SAL_DLLPRIVATE virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; |
41 | | SAL_DLLPRIVATE virtual SdrEdgeNode1VertDistItem* Clone(SfxItemPool* pPool=nullptr) const override; |
42 | | }; |
43 | | |
44 | | class SVXCORE_DLLPUBLIC SdrEdgeNode2HorzDistItem final : public SdrMetricItem { |
45 | | public: |
46 | | DECLARE_ITEM_TYPE_FUNCTION(SdrEdgeNode2HorzDistItem) |
47 | 96.3k | SdrEdgeNode2HorzDistItem(tools::Long nVal): SdrMetricItem(SDRATTR_EDGENODE2HORZDIST, nVal) {} |
48 | | SAL_DLLPRIVATE virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; |
49 | | SAL_DLLPRIVATE virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; |
50 | | SAL_DLLPRIVATE virtual SdrEdgeNode2HorzDistItem* Clone(SfxItemPool* pPool=nullptr) const override; |
51 | | }; |
52 | | |
53 | | class SVXCORE_DLLPUBLIC SdrEdgeNode2VertDistItem final : public SdrMetricItem { |
54 | | public: |
55 | | DECLARE_ITEM_TYPE_FUNCTION(SdrEdgeNode2VertDistItem) |
56 | 96.3k | SdrEdgeNode2VertDistItem(tools::Long nVal): SdrMetricItem(SDRATTR_EDGENODE2VERTDIST, nVal) {} |
57 | | SAL_DLLPRIVATE virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; |
58 | | SAL_DLLPRIVATE virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; |
59 | | SAL_DLLPRIVATE virtual SdrEdgeNode2VertDistItem* Clone(SfxItemPool* pPool=nullptr) const override; |
60 | | }; |
61 | | |
62 | | class SdrEdgeNode1GlueDistItem final : public SdrMetricItem { |
63 | | public: |
64 | | DECLARE_ITEM_TYPE_FUNCTION(SdrEdgeNode1GlueDistItem) |
65 | | SdrEdgeNode1GlueDistItem(tools::Long nVal=0) |
66 | 19 | : SdrMetricItem(SDRATTR_EDGENODE1GLUEDIST, nVal) {} |
67 | | virtual SdrEdgeNode1GlueDistItem* Clone(SfxItemPool* pPool=nullptr) const override; |
68 | | }; |
69 | | |
70 | | class SdrEdgeNode2GlueDistItem final : public SdrMetricItem { |
71 | | public: |
72 | | DECLARE_ITEM_TYPE_FUNCTION(SdrEdgeNode2GlueDistItem) |
73 | | SdrEdgeNode2GlueDistItem(tools::Long nVal=0) |
74 | 19 | : SdrMetricItem(SDRATTR_EDGENODE2GLUEDIST, nVal) {} |
75 | | virtual SdrEdgeNode2GlueDistItem* Clone(SfxItemPool* pPool=nullptr) const override; |
76 | | }; |
77 | | |
78 | | #endif |
79 | | |
80 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |