LibreOffice Module sfx2 (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
SfxRequest Class Referencefinal

#include <request.hxx>

Inheritance diagram for SfxRequest:
[legend]
Collaboration diagram for SfxRequest:
[legend]

Public Member Functions

SAL_DLLPRIVATE void Record_Impl (SfxShell &rSh, const SfxSlot &rSlot, const css::uno::Reference< css::frame::XDispatchRecorder > &xRecorder, SfxViewFrame *)
 
 SfxRequest (SfxViewFrame &, sal_uInt16 nSlotId)
 
 SfxRequest (sal_uInt16 nSlot, SfxCallMode nCallMode, SfxItemPool &rPool)
 
 SfxRequest (const SfxSlot *pSlot, const css::uno::Sequence< css::beans::PropertyValue > &rArgs, SfxCallMode nCallMode, SfxItemPool &rPool)
 
 SfxRequest (sal_uInt16 nSlot, SfxCallMode nCallMode, const SfxAllItemSet &rSfxArgs)
 
 SfxRequest (sal_uInt16 nSlot, SfxCallMode nCallMode, const SfxAllItemSet &rSfxArgs, const SfxAllItemSet &rSfxInternalArgs)
 
 SfxRequest (const SfxRequest &rOrig)
 
virtual ~SfxRequest () override
 
sal_uInt16 GetSlot () const
 
void SetSlot (sal_uInt16 nNewSlot)
 
sal_uInt16 GetModifier () const
 
void SetModifier (sal_uInt16 nModi)
 
void SetInternalArgs_Impl (const SfxAllItemSet &rArgs)
 
SAL_DLLPRIVATE const SfxItemSetGetInternalArgs_Impl () const
 
const SfxItemSetGetArgs () const
 
void SetArgs (const SfxAllItemSet &rArgs)
 
void AppendItem (const SfxPoolItem &)
 
void RemoveItem (sal_uInt16 nSlotId)
 
template<class T >
const T * GetArg (sal_uInt16 nSlotId) const
 Templatized access to the individual parameters of the SfxRequest. More...
 
template<class T >
const T * GetArg (TypedWhichId< T > nSlotId) const
 
void ReleaseArgs ()
 
void SetReturnValue (const SfxPoolItem &)
 
const SfxPoolItemGetReturnValue () const
 
SfxCallMode GetCallMode () const
 
void AllowRecording (bool)
 
bool AllowsRecording () const
 
bool IsAPI () const
 
bool IsSynchronCall () const
 
void SetSynchronCall (bool bSynchron)
 
bool IsDone () const
 
void Done (bool bRemove=false)
 
void Ignore ()
 
void Cancel ()
 
bool IsCancelled () const
 
void Done (const SfxItemSet &)
 
void ForgetAllArgs ()
 
weld::WindowGetFrameWeld () const
 Return the window that should be used as the parent for any dialogs this request creates. More...
 
- Public Member Functions inherited from SfxHint
 SfxHint ()
 
 SfxHint (SfxHintId nId)
 
virtual ~SfxHint ()
 
 SfxHint (SfxHint const &)=default
 
 SfxHint (SfxHint &&)=default
 
SfxHintoperator= (SfxHint const &)=default
 
SfxHintoperator= (SfxHint &&)=default
 
SfxHintId GetId () const
 

Static Public Member Functions

static css::uno::Reference< css::frame::XDispatchRecorder > GetMacroRecorder (const SfxViewFrame &rFrame)
 
static bool HasMacroRecorder (const SfxViewFrame &rFrame)
 

Private Member Functions

SAL_DLLPRIVATE void Done_Impl (const SfxItemSet *pSet)
 
const SfxRequestoperator= (const SfxRequest &)=delete
 

Private Attributes

sal_uInt16 nSlot
 
std::unique_ptr< SfxAllItemSetpArgs
 
std::unique_ptr< SfxRequest_ImplpImpl
 

Friends

struct SfxRequest_Impl
 

Detailed Description

Definition at line 43 of file request.hxx.

Constructor & Destructor Documentation

◆ SfxRequest() [1/6]

SfxRequest::SfxRequest ( SfxViewFrame rViewFrame,
sal_uInt16  nSlotId 
)

◆ SfxRequest() [2/6]

SfxRequest::SfxRequest ( sal_uInt16  nSlot,
SfxCallMode  nCallMode,
SfxItemPool rPool 
)

Definition at line 214 of file request.cxx.

References pImpl.

◆ SfxRequest() [3/6]

SfxRequest::SfxRequest ( const SfxSlot pSlot,
const css::uno::Sequence< css::beans::PropertyValue > &  rArgs,
SfxCallMode  nCallMode,
SfxItemPool rPool 
)

Definition at line 234 of file request.cxx.

References nSlot, pArgs, pImpl, and TransformParameters().

◆ SfxRequest() [4/6]

SfxRequest::SfxRequest ( sal_uInt16  nSlot,
SfxCallMode  nCallMode,
const SfxAllItemSet rSfxArgs 
)

Definition at line 255 of file request.cxx.

References SfxItemSet::GetPool(), and pImpl.

◆ SfxRequest() [5/6]

SfxRequest::SfxRequest ( sal_uInt16  nSlot,
SfxCallMode  nCallMode,
const SfxAllItemSet rSfxArgs,
const SfxAllItemSet rSfxInternalArgs 
)

Definition at line 277 of file request.cxx.

References SetInternalArgs_Impl().

◆ SfxRequest() [6/6]

SfxRequest::SfxRequest ( const SfxRequest rOrig)

◆ ~SfxRequest()

SfxRequest::~SfxRequest ( )
overridevirtual

Definition at line 119 of file request.cxx.

References DeleteItemOnIdle(), pArgs, and pImpl.

Member Function Documentation

◆ AllowRecording()

void SfxRequest::AllowRecording ( bool  bSet)

Definition at line 730 of file request.cxx.

References pImpl.

Referenced by SfxDispatcher::Execute_().

◆ AllowsRecording()

bool SfxRequest::AllowsRecording ( ) const

Definition at line 735 of file request.cxx.

References API, pImpl, and RECORD.

◆ AppendItem()

void SfxRequest::AppendItem ( const SfxPoolItem rItem)

◆ Cancel()

void SfxRequest::Cancel ( )

Definition at line 506 of file request.cxx.

References pArgs, and pImpl.

Referenced by SfxRequest_Impl::Notify().

◆ Done() [1/2]

void SfxRequest::Done ( bool  bRemove = false)

◆ Done() [2/2]

void SfxRequest::Done ( const SfxItemSet rSet)

◆ Done_Impl()

void SfxRequest::Done_Impl ( const SfxItemSet pSet)
private

◆ ForgetAllArgs()

void SfxRequest::ForgetAllArgs ( )

Definition at line 493 of file request.cxx.

References pArgs, and pImpl.

Referenced by SfxApplication::MiscExec_Impl().

◆ GetArg() [1/2]

template<class T >
const T * SfxRequest::GetArg ( sal_uInt16  nSlotId) const
inline

◆ GetArg() [2/2]

template<class T >
const T * SfxRequest::GetArg ( TypedWhichId< T >  nSlotId) const
inline

Definition at line 90 of file request.hxx.

◆ GetArgs()

const SfxItemSet * SfxRequest::GetArgs ( ) const
inline

◆ GetCallMode()

SfxCallMode SfxRequest::GetCallMode ( ) const

Definition at line 289 of file request.cxx.

References pImpl.

Referenced by SfxObjectShell::ExecFile_Impl(), and SfxBindings::Execute_Impl().

◆ GetFrameWeld()

weld::Window * SfxRequest::GetFrameWeld ( ) const

◆ GetInternalArgs_Impl()

const SfxItemSet * SfxRequest::GetInternalArgs_Impl ( ) const

Definition at line 314 of file request.cxx.

References pImpl.

Referenced by GetFrameWeld().

◆ GetMacroRecorder()

css::uno::Reference< css::frame::XDispatchRecorder > SfxRequest::GetMacroRecorder ( const SfxViewFrame rFrame)
static

Definition at line 670 of file request.cxx.

References SfxViewFrame::GetFrame(), and SfxFrame::GetFrameInterface().

Referenced by HasMacroRecorder(), and SfxRequest().

◆ GetModifier()

sal_uInt16 SfxRequest::GetModifier ( ) const

Definition at line 724 of file request.cxx.

References pImpl.

◆ GetReturnValue()

const SfxPoolItem * SfxRequest::GetReturnValue ( ) const

◆ GetSlot()

sal_uInt16 SfxRequest::GetSlot ( ) const
inline

◆ HasMacroRecorder()

bool SfxRequest::HasMacroRecorder ( const SfxViewFrame rFrame)
static

Definition at line 700 of file request.cxx.

References GetMacroRecorder().

◆ Ignore()

void SfxRequest::Ignore ( )

◆ IsAPI()

bool SfxRequest::IsAPI ( ) const

◆ IsCancelled()

bool SfxRequest::IsCancelled ( ) const

Definition at line 500 of file request.cxx.

References pImpl.

◆ IsDone()

bool SfxRequest::IsDone ( ) const

◆ IsSynchronCall()

bool SfxRequest::IsSynchronCall ( ) const

Definition at line 295 of file request.cxx.

References pImpl, and SYNCHRON.

Referenced by SfxObjectShell::ExecFile_Impl(), and SfxApplication::OpenDocExec_Impl().

◆ operator=()

const SfxRequest & SfxRequest::operator= ( const SfxRequest )
privatedelete

◆ Record_Impl()

void SfxRequest::Record_Impl ( SfxShell rSh,
const SfxSlot rSlot,
const css::uno::Reference< css::frame::XDispatchRecorder > &  xRecorder,
SfxViewFrame pViewFrame 
)

◆ ReleaseArgs()

void SfxRequest::ReleaseArgs ( )

Definition at line 744 of file request.cxx.

References pArgs, and pImpl.

Referenced by SfxObjectShell::ExecFile_Impl().

◆ RemoveItem()

void SfxRequest::RemoveItem ( sal_uInt16  nSlotId)

Definition at line 412 of file request.cxx.

References pArgs.

Referenced by SfxApplication::OpenDocExec_Impl().

◆ SetArgs()

void SfxRequest::SetArgs ( const SfxAllItemSet rArgs)

◆ SetInternalArgs_Impl()

void SfxRequest::SetInternalArgs_Impl ( const SfxAllItemSet rArgs)

◆ SetModifier()

void SfxRequest::SetModifier ( sal_uInt16  nModi)

◆ SetReturnValue()

void SfxRequest::SetReturnValue ( const SfxPoolItem rItem)

◆ SetSlot()

void SfxRequest::SetSlot ( sal_uInt16  nNewSlot)
inline

◆ SetSynchronCall()

void SfxRequest::SetSynchronCall ( bool  bSynchron)

Definition at line 301 of file request.cxx.

References pImpl, and SYNCHRON.

Friends And Related Function Documentation

◆ SfxRequest_Impl

friend struct SfxRequest_Impl
friend

Definition at line 45 of file request.hxx.

Member Data Documentation

◆ nSlot

sal_uInt16 SfxRequest::nSlot
private

Definition at line 47 of file request.hxx.

Referenced by Done_Impl(), and SfxRequest().

◆ pArgs

std::unique_ptr<SfxAllItemSet> SfxRequest::pArgs
private

◆ pImpl

std::unique_ptr< SfxRequest_Impl > SfxRequest::pImpl
private

The documentation for this class was generated from the following files: