LibreOffice Module sot (master) 1
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
exchange.hxx File Reference
#include <vector>
#include <com/sun/star/datatransfer/DataFlavor.hpp>
#include <com/sun/star/datatransfer/dnd/DNDConstants.hpp>
#include <sot/sotdllapi.h>
#include <sot/formats.hxx>
#include <o3tl/typed_flags_set.hxx>
Include dependency graph for exchange.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DataFlavorEx
 
struct  o3tl::typed_flags< SotExchangeActionFlags >
 
class  SotExchange
 

Namespaces

namespace  com
 
namespace  com::sun
 
namespace  com::sun::star
 
namespace  com::sun::star::datatransfer
 
namespace  com::sun::star::uno
 
namespace  o3tl
 

Macros

#define EXCHG_INOUT_ACTION_NONE   (sal_uInt8(css::datatransfer::dnd::DNDConstants::ACTION_NONE))
 
#define EXCHG_IN_ACTION_DEFAULT   EXCHG_INOUT_ACTION_NONE
 
#define EXCHG_IN_ACTION_MOVE   (sal_uInt8(css::datatransfer::dnd::DNDConstants::ACTION_MOVE))
 
#define EXCHG_IN_ACTION_COPY   (sal_uInt8(css::datatransfer::dnd::DNDConstants::ACTION_COPY))
 
#define EXCHG_IN_ACTION_LINK   (sal_uInt8(css::datatransfer::dnd::DNDConstants::ACTION_LINK))
 
#define EXCHG_OUT_ACTION_INSERT_FILE   (sal_uInt8(20))
 
#define EXCHG_OUT_ACTION_INSERT_IMAGEMAP   (sal_uInt8(22))
 
#define EXCHG_OUT_ACTION_INSERT_OLE   (sal_uInt8(23))
 
#define EXCHG_OUT_ACTION_INSERT_INTERACTIVE   (sal_uInt8(24))
 
#define EXCHG_OUT_ACTION_REPLACE_IMAGEMAP   (sal_uInt8(29))
 
#define EXCHG_OUT_ACTION_GET_ATTRIBUTES   (sal_uInt8(30))
 
#define EXCHG_OUT_ACTION_INSERT_PRIVATE   (sal_uInt8(35))
 
#define EXCHG_OUT_ACTION_INSERT_HTML   (sal_uInt8(36))
 
#define EXCHG_OUT_ACTION_MOVE_PRIVATE   (sal_uInt8(37))
 
#define EXCHG_OUT_ACTION_INSERT_STRING   (sal_uInt8(38))
 
#define EXCHG_OUT_ACTION_INSERT_DRAWOBJ   (sal_uInt8(39))
 
#define EXCHG_OUT_ACTION_INSERT_SVXB   (sal_uInt8(40))
 
#define EXCHG_OUT_ACTION_INSERT_GDIMETAFILE   (sal_uInt8(41))
 
#define EXCHG_OUT_ACTION_INSERT_BITMAP   (sal_uInt8(42))
 
#define EXCHG_OUT_ACTION_INSERT_DDE   (sal_uInt8(43))
 
#define EXCHG_OUT_ACTION_INSERT_HYPERLINK   (sal_uInt8(44))
 
#define EXCHG_OUT_ACTION_REPLACE_DRAWOBJ   (sal_uInt8(45))
 
#define EXCHG_OUT_ACTION_REPLACE_SVXB   (sal_uInt8(46))
 
#define EXCHG_OUT_ACTION_REPLACE_GDIMETAFILE   (sal_uInt8(47))
 
#define EXCHG_OUT_ACTION_REPLACE_BITMAP   (sal_uInt8(48))
 
#define EXCHG_OUT_ACTION_REPLACE_GRAPH   (sal_uInt8(49))
 
#define EXCHG_OUT_ACTION_INSERT_GRAPH   (sal_uInt8(50))
 

Typedefs

typedef ::std::vector< DataFlavorExDataFlavorExVector
 

Enumerations

enum class  SotExchangeActionFlags {
  NONE = 0x0000 ,
  InsertImageMap = 0x0400 ,
  ReplaceImageMap = 0x0800 ,
  InsertTargetUrl = 0x2000
}
 
enum class  SotExchangeDest {
  NONE = 0 ,
  DOC_OLEOBJ = 1 ,
  CHARTDOC_OLEOBJ = 2 ,
  DOC_TEXTFRAME = 3 ,
  DOC_GRAPHOBJ = 4 ,
  DOC_LNKD_GRAPHOBJ = 5 ,
  DOC_GRAPH_W_IMAP = 6 ,
  DOC_LNKD_GRAPH_W_IMAP = 7 ,
  DOC_IMAPREGION = 8 ,
  DOC_DRAWOBJ = 9 ,
  DOC_URLBUTTON = 10 ,
  DOC_URLFIELD = 11 ,
  DOC_GROUPOBJ = 12 ,
  SWDOC_FREE_AREA = 13 ,
  SCDOC_FREE_AREA = 14 ,
  SDDOC_FREE_AREA = 15 ,
  DOC_TEXTFRAME_WEB = 16 ,
  SWDOC_FREE_AREA_WEB = 17
}
 

Functions

SOT_DLLPUBLIC bool IsFormatSupported (const DataFlavorExVector &rDataFlavorExVector, SotClipboardFormatId nId)
 

Macro Definition Documentation

◆ EXCHG_IN_ACTION_COPY

#define EXCHG_IN_ACTION_COPY   (sal_uInt8(css::datatransfer::dnd::DNDConstants::ACTION_COPY))

Definition at line 51 of file exchange.hxx.

◆ EXCHG_IN_ACTION_DEFAULT

#define EXCHG_IN_ACTION_DEFAULT   EXCHG_INOUT_ACTION_NONE

Definition at line 49 of file exchange.hxx.

◆ EXCHG_IN_ACTION_LINK

#define EXCHG_IN_ACTION_LINK   (sal_uInt8(css::datatransfer::dnd::DNDConstants::ACTION_LINK))

Definition at line 52 of file exchange.hxx.

◆ EXCHG_IN_ACTION_MOVE

#define EXCHG_IN_ACTION_MOVE   (sal_uInt8(css::datatransfer::dnd::DNDConstants::ACTION_MOVE))

Definition at line 50 of file exchange.hxx.

◆ EXCHG_INOUT_ACTION_NONE

#define EXCHG_INOUT_ACTION_NONE   (sal_uInt8(css::datatransfer::dnd::DNDConstants::ACTION_NONE))

Definition at line 48 of file exchange.hxx.

◆ EXCHG_OUT_ACTION_GET_ATTRIBUTES

#define EXCHG_OUT_ACTION_GET_ATTRIBUTES   (sal_uInt8(30))

Definition at line 58 of file exchange.hxx.

◆ EXCHG_OUT_ACTION_INSERT_BITMAP

#define EXCHG_OUT_ACTION_INSERT_BITMAP   (sal_uInt8(42))

Definition at line 66 of file exchange.hxx.

◆ EXCHG_OUT_ACTION_INSERT_DDE

#define EXCHG_OUT_ACTION_INSERT_DDE   (sal_uInt8(43))

Definition at line 67 of file exchange.hxx.

◆ EXCHG_OUT_ACTION_INSERT_DRAWOBJ

#define EXCHG_OUT_ACTION_INSERT_DRAWOBJ   (sal_uInt8(39))

Definition at line 63 of file exchange.hxx.

◆ EXCHG_OUT_ACTION_INSERT_FILE

#define EXCHG_OUT_ACTION_INSERT_FILE   (sal_uInt8(20))

Definition at line 53 of file exchange.hxx.

◆ EXCHG_OUT_ACTION_INSERT_GDIMETAFILE

#define EXCHG_OUT_ACTION_INSERT_GDIMETAFILE   (sal_uInt8(41))

Definition at line 65 of file exchange.hxx.

◆ EXCHG_OUT_ACTION_INSERT_GRAPH

#define EXCHG_OUT_ACTION_INSERT_GRAPH   (sal_uInt8(50))

Definition at line 74 of file exchange.hxx.

◆ EXCHG_OUT_ACTION_INSERT_HTML

#define EXCHG_OUT_ACTION_INSERT_HTML   (sal_uInt8(36))

Definition at line 60 of file exchange.hxx.

◆ EXCHG_OUT_ACTION_INSERT_HYPERLINK

#define EXCHG_OUT_ACTION_INSERT_HYPERLINK   (sal_uInt8(44))

Definition at line 68 of file exchange.hxx.

◆ EXCHG_OUT_ACTION_INSERT_IMAGEMAP

#define EXCHG_OUT_ACTION_INSERT_IMAGEMAP   (sal_uInt8(22))

Definition at line 54 of file exchange.hxx.

◆ EXCHG_OUT_ACTION_INSERT_INTERACTIVE

#define EXCHG_OUT_ACTION_INSERT_INTERACTIVE   (sal_uInt8(24))

Definition at line 56 of file exchange.hxx.

◆ EXCHG_OUT_ACTION_INSERT_OLE

#define EXCHG_OUT_ACTION_INSERT_OLE   (sal_uInt8(23))

Definition at line 55 of file exchange.hxx.

◆ EXCHG_OUT_ACTION_INSERT_PRIVATE

#define EXCHG_OUT_ACTION_INSERT_PRIVATE   (sal_uInt8(35))

Definition at line 59 of file exchange.hxx.

◆ EXCHG_OUT_ACTION_INSERT_STRING

#define EXCHG_OUT_ACTION_INSERT_STRING   (sal_uInt8(38))

Definition at line 62 of file exchange.hxx.

◆ EXCHG_OUT_ACTION_INSERT_SVXB

#define EXCHG_OUT_ACTION_INSERT_SVXB   (sal_uInt8(40))

Definition at line 64 of file exchange.hxx.

◆ EXCHG_OUT_ACTION_MOVE_PRIVATE

#define EXCHG_OUT_ACTION_MOVE_PRIVATE   (sal_uInt8(37))

Definition at line 61 of file exchange.hxx.

◆ EXCHG_OUT_ACTION_REPLACE_BITMAP

#define EXCHG_OUT_ACTION_REPLACE_BITMAP   (sal_uInt8(48))

Definition at line 72 of file exchange.hxx.

◆ EXCHG_OUT_ACTION_REPLACE_DRAWOBJ

#define EXCHG_OUT_ACTION_REPLACE_DRAWOBJ   (sal_uInt8(45))

Definition at line 69 of file exchange.hxx.

◆ EXCHG_OUT_ACTION_REPLACE_GDIMETAFILE

#define EXCHG_OUT_ACTION_REPLACE_GDIMETAFILE   (sal_uInt8(47))

Definition at line 71 of file exchange.hxx.

◆ EXCHG_OUT_ACTION_REPLACE_GRAPH

#define EXCHG_OUT_ACTION_REPLACE_GRAPH   (sal_uInt8(49))

Definition at line 73 of file exchange.hxx.

◆ EXCHG_OUT_ACTION_REPLACE_IMAGEMAP

#define EXCHG_OUT_ACTION_REPLACE_IMAGEMAP   (sal_uInt8(29))

Definition at line 57 of file exchange.hxx.

◆ EXCHG_OUT_ACTION_REPLACE_SVXB

#define EXCHG_OUT_ACTION_REPLACE_SVXB   (sal_uInt8(46))

Definition at line 70 of file exchange.hxx.

Typedef Documentation

◆ DataFlavorExVector

typedef ::std::vector<DataFlavorEx> DataFlavorExVector

Definition at line 41 of file exchange.hxx.

Enumeration Type Documentation

◆ SotExchangeActionFlags

enum class SotExchangeActionFlags
strong
Enumerator
NONE 
InsertImageMap 
ReplaceImageMap 
InsertTargetUrl 

Definition at line 76 of file exchange.hxx.

◆ SotExchangeDest

enum class SotExchangeDest
strong
Enumerator
NONE 
DOC_OLEOBJ 
CHARTDOC_OLEOBJ 
DOC_TEXTFRAME 
DOC_GRAPHOBJ 
DOC_LNKD_GRAPHOBJ 
DOC_GRAPH_W_IMAP 
DOC_LNKD_GRAPH_W_IMAP 
DOC_IMAPREGION 
DOC_DRAWOBJ 
DOC_URLBUTTON 
DOC_URLFIELD 
DOC_GROUPOBJ 
SWDOC_FREE_AREA 
SCDOC_FREE_AREA 
SDDOC_FREE_AREA 
DOC_TEXTFRAME_WEB 
SWDOC_FREE_AREA_WEB 

Definition at line 87 of file exchange.hxx.

Function Documentation

◆ IsFormatSupported()

SOT_DLLPUBLIC bool IsFormatSupported ( const DataFlavorExVector rDataFlavorExVector,
SotClipboardFormatId  nId 
)

Definition at line 1324 of file formats.cxx.

References nId.

Referenced by GetTransferableAction_Impl().