LibreOffice Module sw (master) 1
Classes | Functions | Variables
swdtflvr.cxx File Reference
#include <config_features.h>
#include <com/sun/star/embed/XTransactedObject.hpp>
#include <com/sun/star/embed/Aspects.hpp>
#include <com/sun/star/embed/XEmbedObjectClipboardCreator.hpp>
#include <com/sun/star/embed/NoVisualAreaSizeException.hpp>
#include <com/sun/star/embed/MSOLEObjectSystemCreator.hpp>
#include <com/sun/star/text/XPasteListener.hpp>
#include <svtools/embedtransfer.hxx>
#include <svtools/insdlg.hxx>
#include <unotools/tempfile.hxx>
#include <comphelper/fileformat.h>
#include <comphelper/processfactory.hxx>
#include <comphelper/propertyvalue.hxx>
#include <comphelper/servicehelper.hxx>
#include <comphelper/storagehelper.hxx>
#include <comphelper/string.hxx>
#include <o3tl/deleter.hxx>
#include <unotools/ucbstreamhelper.hxx>
#include <sot/filelist.hxx>
#include <svx/svxdlg.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <osl/endian.h>
#include <sfx2/linkmgr.hxx>
#include <tools/urlobj.hxx>
#include <vcl/weld.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/viewfrm.hxx>
#include <svl/stritem.hxx>
#include <vcl/imap.hxx>
#include <sot/storage.hxx>
#include <vcl/graph.hxx>
#include <svl/urihelper.hxx>
#include <svx/svdmodel.hxx>
#include <svx/xmlexchg.hxx>
#include <svx/dbaexchange.hxx>
#include <svx/clipfmtitem.hxx>
#include <sfx2/mieclip.hxx>
#include <svl/urlbmk.hxx>
#include <vcl/inetimg.hxx>
#include <svx/fmview.hxx>
#include <sfx2/docfilt.hxx>
#include <vcl/imapobj.hxx>
#include <sfx2/docfile.hxx>
#include <unotools/transliterationwrapper.hxx>
#include <unotools/streamwrap.hxx>
#include <vcl/graphicfilter.hxx>
#include <svx/unomodel.hxx>
#include <fmturl.hxx>
#include <fmtinfmt.hxx>
#include <swdtflvr.hxx>
#include <shellio.hxx>
#include <ddefld.hxx>
#include <doc.hxx>
#include <IDocumentUndoRedo.hxx>
#include <IDocumentDrawModelAccess.hxx>
#include <IDocumentFieldsAccess.hxx>
#include <IDocumentRedlineAccess.hxx>
#include <IDocumentState.hxx>
#include <IMark.hxx>
#include <section.hxx>
#include <ndtxt.hxx>
#include <edtdd.hxx>
#include <edtwin.hxx>
#include <navicont.hxx>
#include <swcont.hxx>
#include <wrtsh.hxx>
#include <swmodule.hxx>
#include <view.hxx>
#include <docsh.hxx>
#include <wdocsh.hxx>
#include <fldbas.hxx>
#include <swundo.hxx>
#include <pam.hxx>
#include <ndole.hxx>
#include <swwait.hxx>
#include <viewopt.hxx>
#include <SwCapObjType.hxx>
#include <cmdid.h>
#include <strings.hrc>
#include <svx/svditer.hxx>
#include <editeng/eeitem.hxx>
#include <editeng/fhgtitem.hxx>
#include <editeng/prntitem.hxx>
#include <svx/svdpage.hxx>
#include <avmedia/mediawindow.hxx>
#include <swcrsr.hxx>
#include <SwRewriter.hxx>
#include <vcl/svapp.hxx>
#include <swserv.hxx>
#include <fmtmeta.hxx>
#include <itabenum.hxx>
#include <iodetect.hxx>
#include <unotextrange.hxx>
#include <unoframe.hxx>
#include <txatbase.hxx>
#include <vcl/uitest/logger.hxx>
#include <vcl/uitest/eventdescription.hxx>
#include <vcl/GraphicNativeTransform.hxx>
#include <vcl/GraphicNativeMetadata.hxx>
#include <vcl/TypeSerializer.hxx>
#include <comphelper/lok.hxx>
#include <sfx2/classificationhelper.hxx>
#include <sfx2/sfxdlg.hxx>
#include <comphelper/classids.hxx>
#include <osl/diagnose.h>
#include <memory>
Include dependency graph for swdtflvr.cxx:

Go to the source code of this file.

Classes

class  SwPasteContext
 Tracks the boundaries of pasted content and notifies listeners. More...
 

Functions

constexpr Size constOleSize100mm (constOleWidthInMm *100, 3000)
 
static SwDoclcl_GetDoc (SwDocFac &rDocFac)
 
static void DeleteDDEMarks (SwDoc &rDest)
 
static uno::Reference< XTransferable > * lcl_getTransferPointer (uno::Reference< XTransferable > &xRef)
 
static sal_Int32 lcl_getLevel (OUString &sText, sal_Int32 nIdx)
 

Variables

constexpr tools::Long constOleWidthInMm = 210 - 2 * lMinBorderInMm
 
constexpr Size constOleSizeTwip = o3tl::convert(constOleSize100mm, o3tl::Length::mm100, o3tl::Length::twip)
 
constexpr sal_uInt32 SWTRANSFER_OBJECTTYPE_DRAWMODEL = 0x00000001
 
constexpr sal_uInt32 SWTRANSFER_OBJECTTYPE_HTML = 0x00000002
 
constexpr sal_uInt32 SWTRANSFER_OBJECTTYPE_RTF = 0x00000004
 
constexpr sal_uInt32 SWTRANSFER_OBJECTTYPE_STRING = 0x00000008
 
constexpr sal_uInt32 SWTRANSFER_OBJECTTYPE_SWOLE = 0x00000010
 
constexpr sal_uInt32 SWTRANSFER_OBJECTTYPE_DDE = 0x00000020
 
constexpr sal_uInt32 SWTRANSFER_OBJECTTYPE_RICHTEXT = 0x00000040
 
static SotClipboardFormatId aPasteSpecialIds []
 the list of formats which will be offered to the user in the 'Paste Special...' dialog and the paste button menu More...
 

Function Documentation

◆ constOleSize100mm()

constexpr Size constOleSize100mm ( constOleWidthInMm 100,
3000   
)
constexpr

◆ DeleteDDEMarks()

static void DeleteDDEMarks ( SwDoc rDest)
static

◆ lcl_GetDoc()

static SwDoc & lcl_GetDoc ( SwDocFac rDocFac)
static

◆ lcl_getLevel()

static sal_Int32 lcl_getLevel ( OUString &  sText,
sal_Int32  nIdx 
)
static

Definition at line 1445 of file swdtflvr.cxx.

Referenced by SwTransferable::Paste().

◆ lcl_getTransferPointer()

static uno::Reference< XTransferable > * lcl_getTransferPointer ( uno::Reference< XTransferable > &  xRef)
static

Variable Documentation

◆ aPasteSpecialIds

SotClipboardFormatId aPasteSpecialIds[]
static
Initial value:
=
{
SotClipboardFormatId::HTML,
SotClipboardFormatId::HTML_SIMPLE,
SotClipboardFormatId::HTML_NO_COMMENT,
SotClipboardFormatId::RTF,
SotClipboardFormatId::RICHTEXT,
SotClipboardFormatId::STRING,
SotClipboardFormatId::SONLK,
SotClipboardFormatId::NETSCAPE_BOOKMARK,
SotClipboardFormatId::DRAWING,
SotClipboardFormatId::SVXB,
SotClipboardFormatId::GDIMETAFILE,
SotClipboardFormatId::BITMAP,
SotClipboardFormatId::SVIM,
SotClipboardFormatId::FILEGRPDESCRIPTOR,
SotClipboardFormatId::NONE
}

the list of formats which will be offered to the user in the 'Paste Special...' dialog and the paste button menu

Definition at line 3462 of file swdtflvr.cxx.

Referenced by SwTransferable::FillClipFormatItem(), and SwTransferable::PrePasteSpecial().

◆ constOleSizeTwip

constexpr Size constOleSizeTwip = o3tl::convert(constOleSize100mm, o3tl::Length::mm100, o3tl::Length::twip)
constexpr

Definition at line 147 of file swdtflvr.cxx.

Referenced by SwTransferable::InitOle().

◆ constOleWidthInMm

constexpr tools::Long constOleWidthInMm = 210 - 2 * lMinBorderInMm
constexpr

Definition at line 140 of file swdtflvr.cxx.

◆ SWTRANSFER_OBJECTTYPE_DDE

constexpr sal_uInt32 SWTRANSFER_OBJECTTYPE_DDE = 0x00000020
constexpr

Definition at line 154 of file swdtflvr.cxx.

Referenced by SwTransferable::GetData(), and SwTransferable::WriteObject().

◆ SWTRANSFER_OBJECTTYPE_DRAWMODEL

constexpr sal_uInt32 SWTRANSFER_OBJECTTYPE_DRAWMODEL = 0x00000001
constexpr

Definition at line 149 of file swdtflvr.cxx.

Referenced by SwTransferable::GetData(), and SwTransferable::WriteObject().

◆ SWTRANSFER_OBJECTTYPE_HTML

constexpr sal_uInt32 SWTRANSFER_OBJECTTYPE_HTML = 0x00000002
constexpr

Definition at line 150 of file swdtflvr.cxx.

Referenced by SwTransferable::GetData(), and SwTransferable::WriteObject().

◆ SWTRANSFER_OBJECTTYPE_RICHTEXT

constexpr sal_uInt32 SWTRANSFER_OBJECTTYPE_RICHTEXT = 0x00000040
constexpr

Definition at line 155 of file swdtflvr.cxx.

Referenced by SwTransferable::GetData(), and SwTransferable::WriteObject().

◆ SWTRANSFER_OBJECTTYPE_RTF

constexpr sal_uInt32 SWTRANSFER_OBJECTTYPE_RTF = 0x00000004
constexpr

Definition at line 151 of file swdtflvr.cxx.

Referenced by SwTransferable::GetData(), and SwTransferable::WriteObject().

◆ SWTRANSFER_OBJECTTYPE_STRING

constexpr sal_uInt32 SWTRANSFER_OBJECTTYPE_STRING = 0x00000008
constexpr

Definition at line 152 of file swdtflvr.cxx.

Referenced by SwTransferable::GetData(), and SwTransferable::WriteObject().

◆ SWTRANSFER_OBJECTTYPE_SWOLE

constexpr sal_uInt32 SWTRANSFER_OBJECTTYPE_SWOLE = 0x00000010
constexpr

Definition at line 153 of file swdtflvr.cxx.

Referenced by SwTransferable::GetData(), and SwTransferable::WriteObject().