summaryrefslogtreecommitdiff
path: root/include/svx/xmlexchg.hxx
blob: e03bdb4cfe31042d28c8e9956d13ebf80fbeecdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */

#ifndef INCLUDED_SVX_XMLEXCHG_HXX
#define INCLUDED_SVX_XMLEXCHG_HXX

#include <rtl/ustring.hxx>
#include <vcl/transfer.hxx>
#include <svx/svxdllapi.h>

namespace com::sun::star::beans {
    class SAL_NO_VTABLE XPropertySet;
}


namespace svx
{


    //= OXFormsDescriptor


    struct SVXCORE_DLLPUBLIC OXFormsDescriptor {

        OUString szName;
        OUString szServiceName;
        css::uno::Reference< css::beans::XPropertySet >   xPropSet;

        OXFormsDescriptor() {}
        OXFormsDescriptor( const OXFormsDescriptor &rhs ) { *this=rhs; }
        OXFormsDescriptor &operator = ( const OXFormsDescriptor &rhs ) {
            szName = rhs.szName;
            szServiceName = rhs.szServiceName;
            xPropSet = rhs.xPropSet;
            return (*this);
        }
    };


    //= OXFormsTransferable

    class SVXCORE_DLLPUBLIC OXFormsTransferable final : public TransferDataContainer {

            // TransferableHelper overridables
            virtual void        AddSupportedFormats() override;
            virtual bool GetData( const css::datatransfer::DataFlavor& rFlavor, const OUString& rDestDoc ) override;

            OXFormsDescriptor m_aDescriptor;

        public:

            /** construct the transferable
            */
            OXFormsTransferable( const OXFormsDescriptor &rhs );

            /** extracts an xform descriptor from the transferable given
            */
            static const OXFormsDescriptor &extractDescriptor( const TransferableDataHelper& _rData );
    };


}


#endif // INCLUDED_SVX_XMLEXCHG_HXX

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
href='/cgit/lo/core/commit/sc/source/ui/inc/tabview.hxx?id=da64d198ec3b31318c92ad4bcaab18cc2bf5cfdc'>tools: svstream.hxx needs only errcode.hxx & not errinf.hxxChris Sherlock 2017-04-04tdf#83257 [API-CHANGE] Pivot chart implementationTomaž Vajngerl 2017-03-31tdf#82580 tools: rename Rectangle to tools::RectangleMiklos Vajna 2017-02-20Resolves: tdf#100841 retain popover if it has the same pos, size and settingsCaolán McNamara 2017-02-15convert ScUpdateMode to scoped enumNoel Grandin 2017-02-13base work to trigger pivot table filter popup with a callbackTomaž Vajngerl 2017-01-17LOK: Calc: show/hide a note does not perform any tile invalidationMarco Cecchetti 2016-11-11tdf#46200 Use the Scroll Lock key as a toggling lock key like ExcelAbhilash Singh 2016-10-14LOK: Calc: fixed missed tile invalidations on cell text editingMarco Cecchetti 2016-10-14LOK: Calc: missing invalidate when ending larger-than-cell edit textMarco Cecchetti 2016-10-14LOK: Calc: parallel cell editing: small code improvementsMarco Cecchetti 2016-10-07loplugin:staticmethods: scStephan Bergmann 2016-10-05Remove _TYPED suffix from tools/link.hxx macrosStephan Bergmann 2016-10-03Calc: implemented parallel cell text editingMarco Cecchetti 2016-09-13loplugin:override: No more need for the "MSVC dtor override" workaroundStephan Bergmann 2016-08-19loplugin:countusersofdefaultparams in scNoel Grandin 2016-08-08Related: tdf#92530 turn the HintWindow into an OverlayCaolán McNamara 2016-04-01tdf#94306 Replace boost::noncopyable in sc/sourceJochen Nitschke 2016-03-23loplugin:constantparam in scNoel Grandin 2016-03-17sc: Improve documentation, and a cosmetic change.Jan Holesovsky 2016-03-17sc lok: Extend uno commands: .uno:SelectRow/ColumnPranav Kant 2016-03-02loplugin:unuseddefaultparams in sc (part1)Noel Grandin 2016-02-17tdf#91013 Add new uno commands to freeze one row and column.Gulsah Kose 2016-01-12sc lokit: refactor setPartHenry Castro 2016-01-11loplugin:privatebase: Make derivation from noncopyable explicitly privateStephan Bergmann 2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann 2015-11-03sc lok: allow requesting row headers only for a logic areaMiklos Vajna 2015-10-30LOK: initial Document::getCommandValues() for RowColumnHeadersMiklos Vajna 2015-10-28com::sun::star->css in scNoel Grandin 2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann