LibreOffice Module sd (master) 1
Public Member Functions | Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
SdModule Class Referencefinal

#include <sdmod.hxx>

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

Public Member Functions

 DECL_DLLPRIVATE_LINK (CalcFieldValueHdl, EditFieldInfo *, void)
 
 SdModule (SfxObjectFactory *pDrawObjFact, SfxObjectFactory *pGraphicObjFact)
 
virtual ~SdModule () override
 
void Execute (SfxRequest &rReq)
 
void GetState (SfxItemSet &)
 
SdOptionsGetSdOptions (DocumentType eDocType)
 Return options. More...
 
SD_DLLPUBLIC tools::SvRef< SotStorageStreamGetOptionStream (std::u16string_view rOptionName, SdOptionStreamMode eMode)
 Open and return option stream for internal options; if the stream is opened for reading but does not exist, an 'empty' RefObject is returned. More...
 
bool GetWaterCan () const
 
void SetWaterCan (bool bWC)
 
SvxSearchItemGetSearchItem ()
 
void SetSearchItem (std::unique_ptr< SvxSearchItem > pItem)
 
OutputDeviceGetVirtualRefDevice ()
 Return the virtual device that can be used for printer independent layout. More...
 
SD_DLLPUBLIC SvNumberFormatterGetNumberFormatter ()
 
virtual std::optional< SfxItemSetCreateItemSet (sal_uInt16 nId) override
 virtual methods for option dialog More...
 
virtual void ApplyItemSet (sal_uInt16 nId, const SfxItemSet &rSet) override
 
virtual std::unique_ptr< SfxTabPageCreateTabPage (sal_uInt16 nId, weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet) override
 
virtual std::optional< SfxStyleFamiliesCreateStyleFamilies () override
 
svtools::ColorConfigGetColorConfig ()
 
- Public Member Functions inherited from SfxModule
 SfxModule (const OString &rResName, std::initializer_list< SfxObjectFactory * > pFactoryList)
 
virtual ~SfxModule () override
 
std::locale GetResLocale () const
 
SfxSlotPoolGetSlotPool () const
 
void RegisterToolBoxControl (const SfxTbxCtrlFactory &)
 
void RegisterChildWindow (const SfxChildWinFactory &)
 
void RegisterStatusBarControl (const SfxStbCtrlFactory &)
 
virtual std::unique_ptr< SfxTabPageCreateTabPage (sal_uInt16 nId, weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
 
virtual void Invalidate (sal_uInt16 nId=0) override
 
virtual std::optional< SfxStyleFamiliesCreateStyleFamilies ()
 
FieldUnit GetFieldUnit () const
 
SAL_DLLPRIVATE SfxTbxCtrlFactoryGetTbxCtrlFactory (const std::type_info &rSlotType, sal_uInt16 nSlotID) const
 
SAL_DLLPRIVATE SfxStbCtrlFactoryGetStbCtrlFactory (const std::type_info &rSlotType, sal_uInt16 nSlotID) const
 
SAL_DLLPRIVATE SfxChildWinFactoryGetChildWinFactoryById (sal_uInt16 nId) const
 
- Public Member Functions inherited from SfxShell
virtual ~SfxShell () override
 
virtual SfxInterfaceGetInterface () const
 
void SetName (const OUString &rName)
 
const OUString & GetName () const
 
SfxViewShellGetViewShell () const
 
const SfxPoolItemGetSlotState (sal_uInt16 nSlotId, const SfxInterface *pIF=nullptr, SfxItemSet *pStateSet=nullptr)
 
const SfxPoolItemExecuteSlot (SfxRequest &rReq, const SfxInterface *pIF=nullptr)
 
void ExecuteSlot (SfxRequest &rReq, bool bAsync)
 
SfxItemPoolGetPool () const
 
void SetPool (SfxItemPool *pNewPool)
 
virtual SfxUndoManagerGetUndoManager ()
 
void SetUndoManager (SfxUndoManager *pNewUndoMgr)
 
SfxRepeatTarget * GetRepeatTarget () const
 
void SetRepeatTarget (SfxRepeatTarget *pTarget)
 
virtual void Invalidate (sal_uInt16 nId=0)
 
virtual bool IsDesignMode () const
 
bool IsActive () const
 
virtual void Activate (bool bMDI)
 
virtual void Deactivate (bool bMDI)
 
SfxDispatcherGetDispatcher () const
 
SfxViewFrameGetFrame () const
 
virtual bool HasUIFeature (SfxShellFeature nFeature) const
 
void UIFeatureChanged ()
 
const SfxPoolItemGetItem (sal_uInt16 nSlotId) const
 
const T * GetItem (TypedWhichId< T > nWhich) const
 
void PutItem (const SfxPoolItem &rItem)
 
void SetVerbs (const css::uno::Sequence< css::embed::VerbDescriptor > &aVerbs)
 
const css::uno::Sequence< css::embed::VerbDescriptor > & GetVerbs () const
 
void VerbExec (SfxRequest &)
 
SAL_DLLPRIVATE const SfxSlotGetVerbSlot_Impl (sal_uInt16 nId) const
 
virtual SfxObjectShellGetObjectShell ()
 
void SetDisableFlags (SfxDisableFlags nFlags)
 
SfxDisableFlags GetDisableFlags () const
 
virtual std::optional< SfxItemSetCreateItemSet (sal_uInt16 nId)
 
virtual void ApplyItemSet (sal_uInt16 nId, const SfxItemSet &rSet)
 
void SetContextName (const OUString &rsContextName)
 
void BroadcastContextForActivation (const bool bIsActivated)
 
bool SetContextBroadcasterEnabled (const bool bIsEnabled)
 
SAL_DLLPRIVATE bool CanExecuteSlot_Impl (const SfxSlot &rSlot)
 
virtual bool IsConditionalFastCall (const SfxRequest &rReq)
 
SAL_DLLPRIVATE void DoActivate_Impl (SfxViewFrame *pFrame, bool bMDI)
 
SAL_DLLPRIVATE void DoDeactivate_Impl (SfxViewFrame const *pFrame, bool bMDI)
 
- Public Member Functions inherited from SfxListener
 SfxListener ()
 
 SfxListener (const SfxListener &rCopy)
 
virtual ~SfxListener () COVERITY_NOEXCEPT_FALSE
 
void StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
 
void EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
 
void EndListeningAll ()
 
bool IsListening (SfxBroadcaster &rBroadcaster) const
 
sal_uInt16 GetBroadcasterCount () const
 
SfxBroadcasterGetBroadcasterJOE (sal_uInt16 nNo) const
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint)
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 
virtual bool IsSdrView () const
 

Public Attributes

SdTransferablepTransferClip
 
SdTransferablepTransferDrag
 
SdTransferablepTransferSelection
 
SdExtPropertySetInfoCache gImplImpressPropertySetInfoCache
 
SdExtPropertySetInfoCache gImplDrawPropertySetInfoCache
 
SdTypesCache gImplTypesCache
 

Private Member Functions

virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 get notifications More...
 
SfxFrameExecuteNewDocument (SfxRequest const &rReq)
 
 DECL_DLLPRIVATE_STATIC_LINK (SdModule, EventListenerHdl, VclSimpleEvent &, void)
 Add an eventlistener as soon as possible in sd, allows to use remote devices to start the slideshow elegantly, and respecting portability @EventListenerHdl The event listener handler @VclSimpleEvent * a pointer to a VCLSimpleEvent (see vcl/vclevent.hxx ) More...
 

Static Private Member Functions

static void InitInterface_Impl ()
 SfxInterface initializer. More...
 
static SfxFrameCreateEmptyDocument (const css::uno::Reference< css::frame::XFrame > &i_rFrame)
 
static SfxFrameCreateFromTemplate (const OUString &rTemplatePath, const css::uno::Reference< css::frame::XFrame > &i_rFrame, const bool bReplaceable)
 
static bool OutlineToImpress (SfxRequest const &rRequest)
 Take an outline from a text document and create a new impress document according to the structure of the outline. More...
 

Private Attributes

SdOptionspImpressOptions
 
SdOptionspDrawOptions
 
std::unique_ptr< SvxSearchItempSearchItem
 
std::unique_ptr< SvNumberFormatterpNumberFormatter
 
tools::SvRef< SotStoragexOptionStorage
 
bool bWaterCan
 
std::unique_ptr< SfxErrorHandlermpErrorHdl
 
VclPtr< VirtualDevicempVirtualRefDevice
 This device is used for printer independent layout. More...
 
bool mbEventListenerAdded
 
std::unique_ptr< svtools::ColorConfigmpColorConfig
 

Additional Inherited Members

- Static Public Member Functions inherited from SfxModule
static SfxModuleGetActiveModule (SfxViewFrame *pFrame=nullptr)
 
static FieldUnit GetCurrentFieldUnit ()
 
static FieldUnit GetModuleFieldUnit (css::uno::Reference< css::frame::XFrame > const &i_frame)
 
- Static Public Member Functions inherited from SfxShell
static SfxInterfaceGetStaticInterface ()
 
static void EmptyExecStub (SfxShell *pShell, SfxRequest &)
 
static void EmptyStateStub (SfxShell *pShell, SfxItemSet &)
 
static void VerbState (SfxItemSet &)
 
- Protected Member Functions inherited from SfxShell
 SfxShell ()
 
 SfxShell (SfxViewShell *pViewSh)
 
void SetViewShell_Impl (SfxViewShell *pView)
 
SAL_DLLPRIVATE void Invalidate_Impl (SfxBindings &rBindings, sal_uInt16 nId)
 
- Static Protected Member Functions inherited from SfxShell
static void HandleOpenXmlFilterSettings (SfxRequest &)
 

Detailed Description

Definition at line 85 of file sdmod.hxx.

Constructor & Destructor Documentation

◆ SdModule()

SdModule::SdModule ( SfxObjectFactory pDrawObjFact,
SfxObjectFactory pGraphicObjFact 
)

Definition at line 57 of file sdmod.cxx.

◆ ~SdModule()

SdModule::~SdModule ( )
overridevirtual

Member Function Documentation

◆ ApplyItemSet()

void SdModule::ApplyItemSet ( sal_uInt16  nId,
const SfxItemSet rSet 
)
overridevirtual

Reimplemented from SfxShell.

Definition at line 535 of file sdmod2.cxx.

References SfxObjectShell::Current(), Draw, SfxViewFrame::GetBindings(), SdOptionsLayout::GetDefTab(), sd::DrawDocShell::GetDoc(), SdDrawDocument::GetDocumentType(), SdrModel::GetDrawOutliner(), sd::ViewShell::GetFrameView(), SdDrawDocument::GetInternalOutliner(), SfxItemSet::GetItemIfSet(), SdOptionsLayout::GetMetric(), SdOptionsMiscItem::GetOptionsMisc(), SdOptionsPrintItem::GetOptionsPrint(), SdDrawDocument::GetOutliner(), SfxShell::GetPool(), sd::DrawDocShell::GetPrinter(), SdDrawDocument::GetPrinterIndependentLayout(), SdOptionsMisc::GetPrinterIndependentLayout(), GetSdOptions(), sd::ViewShell::GetView(), sd::ViewShell::GetViewFrame(), sd::DrawDocShell::GetViewShell(), sd::ViewShell::HasRuler(), Impress, SfxBindings::InvalidateAll(), SdOptionsMisc::IsSummationOfParagraphs(), SdOptionsPrint::IsWarningOrientation(), SdOptionsPrint::IsWarningPrinter(), SdOptionsPrint::IsWarningSize(), SfxShell::PutItem(), sd::ViewShell::ReadFrameViewData(), rSet, sd::View::SdrEndTextEdit(), SdrModel::SetDefaultTabulator(), SdOptionsLayout::SetDefTab(), sd::ViewShell::SetDefTabHRuler(), SdOptionsLayout::SetMetric(), SfxPrinter::SetOptions(), SdOptionsMiscItem::SetOptions(), SdOptionsSnapItem::SetOptions(), SdOptionsPrintItem::SetOptions(), SdDrawDocument::SetPrinterIndependentLayout(), sd::ViewShell::SetRuler(), SdOptionsZoom::SetScale(), SdDrawDocument::SetSummationOfParagraphs(), SdrModel::SetUIScale(), SdrModel::SetUIUnit(), sd::ViewShell::SetUIUnit(), SfxFlagItem::SetValue(), SdOptions::StoreConfig(), sd::FrameView::Update(), and sd::ViewShell::WriteFrameViewData().

◆ CreateEmptyDocument()

SfxFrame * SdModule::CreateEmptyDocument ( const css::uno::Reference< css::frame::XFrame > &  i_rFrame)
staticprivate

◆ CreateFromTemplate()

SfxFrame * SdModule::CreateFromTemplate ( const OUString &  rTemplatePath,
const css::uno::Reference< css::frame::XFrame > &  i_rFrame,
const bool  bReplaceable 
)
staticprivate

◆ CreateItemSet()

std::optional< SfxItemSet > SdModule::CreateItemSet ( sal_uInt16  nId)
overridevirtual

◆ CreateStyleFamilies()

std::optional< SfxStyleFamilies > SdModule::CreateStyleFamilies ( )
overridevirtual

Reimplemented from SfxModule.

Definition at line 792 of file sdmod2.cxx.

References SfxModule::GetResLocale(), SD_MOD, and SdResId().

◆ CreateTabPage()

std::unique_ptr< SfxTabPage > SdModule::CreateTabPage ( sal_uInt16  nId,
weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rSet 
)
overridevirtual

◆ DECL_DLLPRIVATE_LINK()

SdModule::DECL_DLLPRIVATE_LINK ( CalcFieldValueHdl  ,
EditFieldInfo ,
void   
)

◆ DECL_DLLPRIVATE_STATIC_LINK()

SdModule::DECL_DLLPRIVATE_STATIC_LINK ( SdModule  ,
EventListenerHdl  ,
VclSimpleEvent ,
void   
)
private

Add an eventlistener as soon as possible in sd, allows to use remote devices to start the slideshow elegantly, and respecting portability @EventListenerHdl The event listener handler @VclSimpleEvent * a pointer to a VCLSimpleEvent (see vcl/vclevent.hxx )

◆ Execute()

void SdModule::Execute ( SfxRequest rReq)

◆ ExecuteNewDocument()

SfxFrame * SdModule::ExecuteNewDocument ( SfxRequest const &  rReq)
private

◆ GetColorConfig()

svtools::ColorConfig & SdModule::GetColorConfig ( )

Definition at line 211 of file sdmod.cxx.

References mpColorConfig.

◆ GetNumberFormatter()

SvNumberFormatter * SdModule::GetNumberFormatter ( )

Definition at line 203 of file sdmod.cxx.

References LANGUAGE_SYSTEM, and pNumberFormatter.

◆ GetOptionStream()

tools::SvRef< SotStorageStream > SdModule::GetOptionStream ( std::u16string_view  rOptionName,
SdOptionStreamMode  eMode 
)

Open and return option stream for internal options; if the stream is opened for reading but does not exist, an 'empty' RefObject is returned.

Definition at line 165 of file sdmod.cxx.

References aURL, utl::UcbStreamHelper::CreateStream(), SfxObjectShell::Current(), Draw, eMode, eType, sd::DrawDocShell::GetDoc(), SdDrawDocument::GetDocumentType(), tools::SvRef< typename T >::is(), INetURLObject::NONE, Store, u, and xOptionStorage.

◆ GetSdOptions()

SdOptions * SdModule::GetSdOptions ( DocumentType  eDocType)

◆ GetSearchItem()

SvxSearchItem * SdModule::GetSearchItem ( )
inline

Definition at line 112 of file sdmod.hxx.

◆ GetState()

void SdModule::GetState ( SfxItemSet rItemSet)

◆ GetVirtualRefDevice()

OutputDevice * SdModule::GetVirtualRefDevice ( )
inline

Return the virtual device that can be used for printer independent layout.

Returns
The returned pointer is NULL when the device could not be created when this modules was instantiated.

Definition at line 121 of file sdmod.hxx.

◆ GetWaterCan()

bool SdModule::GetWaterCan ( ) const
inline

Definition at line 109 of file sdmod.hxx.

◆ InitInterface_Impl()

void SdModule::InitInterface_Impl ( )
staticprivate

SfxInterface initializer.

Definition at line 51 of file sdmod.cxx.

◆ Notify()

void SdModule::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overrideprivatevirtual

get notifications

Reimplemented from SfxListener.

Definition at line 114 of file sdmod.cxx.

References SfxHint::GetId(), pDrawOptions, and pImpressOptions.

◆ OutlineToImpress()

bool SdModule::OutlineToImpress ( SfxRequest const &  rRequest)
staticprivate

Take an outline from a text document and create a new impress document according to the structure of the outline.

Parameters
rRequestThis typically is the unmodified request from an execute() function from where this function is called.

Definition at line 240 of file sdmod1.cxx.

References SdDrawDocument::CreateFirstPages(), SfxObjectShell::DoInitNew(), SfxItemSet::Get(), SfxRequest::GetArg(), SfxRequest::GetArgs(), sd::DrawDocShell::GetDoc(), GetValue, sd::ViewShell::GetViewFrame(), sd::DrawDocShell::GetViewShell(), SfxShell::GetViewShell(), Impress, SfxRequest::IsDone(), SfxViewFrame::LoadDocumentIntoFrame(), sd::OUTLINE_FACTORY_ID, and SdDrawDocument::StopWorkStartupDelay().

Referenced by Execute().

◆ SetSearchItem()

void SdModule::SetSearchItem ( std::unique_ptr< SvxSearchItem pItem)

Definition at line 108 of file sdmod.cxx.

References pSearchItem.

◆ SetWaterCan()

void SdModule::SetWaterCan ( bool  bWC)
inline

Definition at line 110 of file sdmod.hxx.

Member Data Documentation

◆ bWaterCan

bool SdModule::bWaterCan
private

Definition at line 144 of file sdmod.hxx.

◆ gImplDrawPropertySetInfoCache

SdExtPropertySetInfoCache SdModule::gImplDrawPropertySetInfoCache

Definition at line 132 of file sdmod.hxx.

◆ gImplImpressPropertySetInfoCache

SdExtPropertySetInfoCache SdModule::gImplImpressPropertySetInfoCache

Definition at line 131 of file sdmod.hxx.

◆ gImplTypesCache

SdTypesCache SdModule::gImplTypesCache

Definition at line 133 of file sdmod.hxx.

◆ mbEventListenerAdded

bool SdModule::mbEventListenerAdded
private

Definition at line 161 of file sdmod.hxx.

Referenced by GetState(), and ~SdModule().

◆ mpColorConfig

std::unique_ptr<svtools::ColorConfig> SdModule::mpColorConfig
private

Definition at line 181 of file sdmod.hxx.

Referenced by GetColorConfig().

◆ mpErrorHdl

std::unique_ptr<SfxErrorHandler> SdModule::mpErrorHdl
private

Definition at line 145 of file sdmod.hxx.

Referenced by ~SdModule().

◆ mpVirtualRefDevice

VclPtr< VirtualDevice > SdModule::mpVirtualRefDevice
private

This device is used for printer independent layout.

It is virtual in the sense that it does not represent a printer. The pointer may be NULL when the virtual device could not be created.

Definition at line 150 of file sdmod.hxx.

Referenced by ~SdModule().

◆ pDrawOptions

SdOptions* SdModule::pDrawOptions
private

Definition at line 140 of file sdmod.hxx.

Referenced by GetSdOptions(), and Notify().

◆ pImpressOptions

SdOptions* SdModule::pImpressOptions
private

Definition at line 139 of file sdmod.hxx.

Referenced by GetSdOptions(), and Notify().

◆ pNumberFormatter

std::unique_ptr<SvNumberFormatter> SdModule::pNumberFormatter
private

Definition at line 142 of file sdmod.hxx.

Referenced by GetNumberFormatter(), and ~SdModule().

◆ pSearchItem

std::unique_ptr<SvxSearchItem> SdModule::pSearchItem
private

Definition at line 141 of file sdmod.hxx.

Referenced by SetSearchItem(), and ~SdModule().

◆ pTransferClip

SdTransferable* SdModule::pTransferClip

Definition at line 99 of file sdmod.hxx.

Referenced by SdTransferable::ObjectReleased().

◆ pTransferDrag

SdTransferable* SdModule::pTransferDrag

Definition at line 100 of file sdmod.hxx.

Referenced by SdTransferable::ObjectReleased().

◆ pTransferSelection

SdTransferable* SdModule::pTransferSelection

Definition at line 101 of file sdmod.hxx.

Referenced by SdTransferable::ObjectReleased().

◆ xOptionStorage

tools::SvRef<SotStorage> SdModule::xOptionStorage
private

Definition at line 143 of file sdmod.hxx.

Referenced by GetOptionStream().


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