LibreOffice Module sfx2 (master) 1
Classes | Namespaces | Macros | Enumerations | Functions
msg.hxx File Reference
#include <sfx2/shell.hxx>
#include <rtl/string.hxx>
#include <rtl/ustring.hxx>
#include <svl/poolitem.hxx>
#include <sfx2/dllapi.h>
#include <o3tl/typed_flags_set.hxx>
#include <sfx2/groupid.hxx>
#include <functional>
#include <climits>
Include dependency graph for msg.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  o3tl::typed_flags< SfxSlotMode >
 
struct  SfxTypeAttrib
 
struct  SfxType
 
struct  SfxType0
 
struct  SfxFormalArgument
 
class  SfxSlot
 

Namespaces

namespace  o3tl
 

Macros

#define SFX_EXEC_STUB(aShellClass, aExecMethod)
 
#define SFX_STATE_STUB(aShellClass, aStateMethod)
 
#define SFX_STUB_PTR(aShellClass, aMethod)    &SfxStub##aShellClass##aMethod
 
#define SFX_STUB_PTR_EXEC_NONE   &SfxShell::EmptyExecStub
 
#define SFX_STUB_PTR_STATE_NONE   &SfxShell::EmptyStateStub
 
#define SFX_DECL_TYPE(n)
 
#define SFX_TYPE(Class)   &a##Class##_Impl
 
#define SFX_SLOT_ARG(aShellClass, id, GroupId, ExecMethodPtr, StateMethodPtr, Flags, ItemClass, nArg0, nArgs, Name, Prop)
 
#define SFX_NEW_SLOT_ARG(aShellClass, id, GroupId, pNext, ExecMethodPtr, StateMethodPtr, Flags, DisableFlags, ItemClass, nArg0, nArgs, Prop, UnoName)
 

Enumerations

enum class  SfxSlotMode {
  NONE = 0x0000 ,
  TOGGLE = 0x0004 ,
  AUTOUPDATE = 0x0008 ,
  ASYNCHRON = 0x0020 ,
  NORECORD = 0x0100 ,
  RECORDPERITEM = 0x0200 ,
  RECORDPERSET = 0x0400 ,
  RECORDABSOLUTE = 0x1000000 ,
  METHOD = 0x4000 ,
  FASTCALL = 0x8000 ,
  MENUCONFIG = 0x20000 ,
  TOOLBOXCONFIG = 0x40000 ,
  ACCELCONFIG = 0x80000 ,
  CONTAINER = 0x100000 ,
  READONLYDOC = 0x200000
}
 
enum class  SfxSlotKind {
  Standard ,
  Attribute
}
 

Functions

template<class T >
SfxPoolItemcreateSfxPoolItem ()
 
 SFX_DECL_TYPE (1)
 
 SFX_DECL_TYPE (2)
 
 SFX_DECL_TYPE (3)
 
 SFX_DECL_TYPE (4)
 
 SFX_DECL_TYPE (5)
 
 SFX_DECL_TYPE (6)
 
 SFX_DECL_TYPE (7)
 
 SFX_DECL_TYPE (8)
 
 SFX_DECL_TYPE (10)
 
 SFX_DECL_TYPE (11)
 
 SFX_DECL_TYPE (13)
 
 SFX_DECL_TYPE (14)
 
 SFX_DECL_TYPE (16)
 
 SFX_DECL_TYPE (17)
 
 SFX_DECL_TYPE (23)
 

Macro Definition Documentation

◆ SFX_DECL_TYPE

#define SFX_DECL_TYPE (   n)
Value:
struct SfxType##n \
{ \
std::function<SfxPoolItem* ()> createSfxPoolItemFunc; \
const std::type_info* pType; \
sal_uInt16 nAttribs; \
SfxTypeAttrib aAttrib[n]; \
}
sal_Int64 n
Definition: msg.hxx:104
const std::type_info * pType
Definition: msg.hxx:106
std::function< SfxPoolItem *()> createSfxPoolItemFunc
Definition: msg.hxx:105
SfxTypeAttrib aAttrib[1]
Definition: msg.hxx:108
sal_uInt16 nAttribs
Definition: msg.hxx:107

Definition at line 122 of file msg.hxx.

◆ SFX_EXEC_STUB

#define SFX_EXEC_STUB (   aShellClass,
  aExecMethod 
)
Value:
void SfxStub##aShellClass##aExecMethod( \
SfxShell *pShell, SfxRequest& rReq) \
{ \
::tools::detail::castTo<aShellClass*>(pShell)->aExecMethod( rReq ); \
}
The class SfxShell is the base class for all classes, which provide the functionality of the form <Sl...
Definition: shell.hxx:128

Definition at line 64 of file msg.hxx.

◆ SFX_NEW_SLOT_ARG

#define SFX_NEW_SLOT_ARG (   aShellClass,
  id,
  GroupId,
  pNext,
  ExecMethodPtr,
  StateMethodPtr,
  Flags,
  DisableFlags,
  ItemClass,
  nArg0,
  nArgs,
  Prop,
  UnoName 
)
Value:
{ id, GroupId, Flags | Prop, \
USHRT_MAX, 0, \
ExecMethodPtr, \
StateMethodPtr, \
(const SfxType*) &a##ItemClass##_Impl, \
pNext, \
&a##aShellClass##Args_Impl[nArg0], nArgs, DisableFlags, UnoName \
}
Flags

Definition at line 162 of file msg.hxx.

◆ SFX_SLOT_ARG

#define SFX_SLOT_ARG (   aShellClass,
  id,
  GroupId,
  ExecMethodPtr,
  StateMethodPtr,
  Flags,
  ItemClass,
  nArg0,
  nArgs,
  Name,
  Prop 
)
Value:
{ id, GroupId, Flags | Prop, \
USHRT_MAX, 0, \
ExecMethodPtr, \
StateMethodPtr, \
(const SfxType*) &a##ItemClass##_Impl, \
0, \
&a##aShellClass##Args_Impl[nArg0], nArgs, SfxDisableFlags::NONE, Name \
}

Definition at line 152 of file msg.hxx.

◆ SFX_STATE_STUB

#define SFX_STATE_STUB (   aShellClass,
  aStateMethod 
)
Value:
void SfxStub##aShellClass##aStateMethod( \
SfxShell *pShell, SfxItemSet& rSet) \
{ \
static_cast<aShellClass*>(pShell)->aStateMethod( rSet ); \
}
static SfxItemSet & rSet
Definition: shell.cxx:534

Definition at line 71 of file msg.hxx.

◆ SFX_STUB_PTR

#define SFX_STUB_PTR (   aShellClass,
  aMethod 
)     &SfxStub##aShellClass##aMethod

Definition at line 78 of file msg.hxx.

◆ SFX_STUB_PTR_EXEC_NONE

#define SFX_STUB_PTR_EXEC_NONE   &SfxShell::EmptyExecStub

Definition at line 81 of file msg.hxx.

◆ SFX_STUB_PTR_STATE_NONE

#define SFX_STUB_PTR_STATE_NONE   &SfxShell::EmptyStateStub

Definition at line 83 of file msg.hxx.

◆ SFX_TYPE

#define SFX_TYPE (   Class)    &a##Class##_Impl

Definition at line 130 of file msg.hxx.

Enumeration Type Documentation

◆ SfxSlotKind

enum class SfxSlotKind
strong
Enumerator
Standard 
Attribute 

Definition at line 86 of file msg.hxx.

◆ SfxSlotMode

enum class SfxSlotMode
strong
Enumerator
NONE 
TOGGLE 
AUTOUPDATE 
ASYNCHRON 
NORECORD 
RECORDPERITEM 
RECORDPERSET 
RECORDABSOLUTE 
METHOD 
FASTCALL 
MENUCONFIG 
TOOLBOXCONFIG 
ACCELCONFIG 
CONTAINER 
READONLYDOC 

Definition at line 35 of file msg.hxx.

Function Documentation

◆ createSfxPoolItem()

template<class T >
SfxPoolItem * createSfxPoolItem ( )

Definition at line 99 of file msg.hxx.

◆ SFX_DECL_TYPE() [1/15]

SFX_DECL_TYPE ( )

◆ SFX_DECL_TYPE() [2/15]

SFX_DECL_TYPE ( 10  )

◆ SFX_DECL_TYPE() [3/15]

SFX_DECL_TYPE ( 11  )

◆ SFX_DECL_TYPE() [4/15]

SFX_DECL_TYPE ( 13  )

◆ SFX_DECL_TYPE() [5/15]

SFX_DECL_TYPE ( 14  )

◆ SFX_DECL_TYPE() [6/15]

SFX_DECL_TYPE ( 16  )

◆ SFX_DECL_TYPE() [7/15]

SFX_DECL_TYPE ( 17  )

◆ SFX_DECL_TYPE() [8/15]

SFX_DECL_TYPE ( )

◆ SFX_DECL_TYPE() [9/15]

SFX_DECL_TYPE ( 23  )

◆ SFX_DECL_TYPE() [10/15]

SFX_DECL_TYPE ( )

◆ SFX_DECL_TYPE() [11/15]

SFX_DECL_TYPE ( )

◆ SFX_DECL_TYPE() [12/15]

SFX_DECL_TYPE ( )

◆ SFX_DECL_TYPE() [13/15]

SFX_DECL_TYPE ( )

◆ SFX_DECL_TYPE() [14/15]

SFX_DECL_TYPE ( )

◆ SFX_DECL_TYPE() [15/15]

SFX_DECL_TYPE ( )