diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-02-25 13:11:04 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-02-25 14:27:06 +0100 |
commit | 0cf6433117477642897fb2d874a4353eff8a1f35 (patch) | |
tree | 2d43f61d1278b402f2198031b4a27c569fb318f9 /svtools | |
parent | e97062ef8c9a25ab6187216553b79654195549ba (diff) |
fdo#59405: initialize members of TransferableObjectDescriptor
The mnViewAspect member is otherwise only initialized if a
SOT_FORMATSTR_ID_OBJECTDESCRIPTOR thingy is in the clipboard, which only
happens if the clipboard source is OOo/LO.
When inserting an OLE object, the value MSOLE_CONTENT apparently results
in requesting the current size from the OLE object, which looks much
better than the square default.
Change-Id: I8c7fb80a8ae88272f1ecaf3a375bef5d917f2a5b
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/inc/svtools/transfer.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/svtools/inc/svtools/transfer.hxx b/svtools/inc/svtools/transfer.hxx index 25c0d5246af4..93dab759a89b 100644 --- a/svtools/inc/svtools/transfer.hxx +++ b/svtools/inc/svtools/transfer.hxx @@ -37,6 +37,7 @@ #include <com/sun/star/datatransfer/dnd/DropTargetDropEvent.hpp> #include <com/sun/star/datatransfer/dnd/XDragSourceListener.hpp> #include <com/sun/star/datatransfer/dnd/XDropTargetListener.hpp> +#include <com/sun/star/embed/Aspects.hpp> #include <com/sun/star/io/XInputStream.hpp> // ------------------------ @@ -82,6 +83,12 @@ struct TransferableObjectDescriptor String maDisplayName; sal_Bool mbCanLink; + TransferableObjectDescriptor() + : mnViewAspect(::com::sun::star::embed::Aspects::MSOLE_CONTENT) + , mnOle2Misc(0) + , mbCanLink(false) + {} + SVT_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStm, TransferableObjectDescriptor& rObjDesc ); SVT_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStm, const TransferableObjectDescriptor& rObjDesc ); }; |