LibreOffice Module sd (master) 1
|
#include <sdmod.hxx>
Public Member Functions | |
DECL_DLLPRIVATE_LINK (CalcFieldValueHdl, EditFieldInfo *, void) | |
SdModule (SfxObjectFactory *pDrawObjFact, SfxObjectFactory *pGraphicObjFact) | |
virtual | ~SdModule () override |
void | Execute (SfxRequest &rReq) |
void | GetState (SfxItemSet &) |
SdOptions * | GetSdOptions (DocumentType eDocType) |
Return options. More... | |
SD_DLLPUBLIC tools::SvRef< SotStorageStream > | 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. More... | |
bool | GetWaterCan () const |
void | SetWaterCan (bool bWC) |
SvxSearchItem * | GetSearchItem () |
void | SetSearchItem (std::unique_ptr< SvxSearchItem > pItem) |
OutputDevice * | GetVirtualRefDevice () |
Return the virtual device that can be used for printer independent layout. More... | |
SD_DLLPUBLIC SvNumberFormatter * | GetNumberFormatter () |
virtual std::optional< SfxItemSet > | CreateItemSet (sal_uInt16 nId) override |
virtual methods for option dialog More... | |
virtual void | ApplyItemSet (sal_uInt16 nId, const SfxItemSet &rSet) override |
virtual std::unique_ptr< SfxTabPage > | CreateTabPage (sal_uInt16 nId, weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet) override |
virtual std::optional< SfxStyleFamilies > | CreateStyleFamilies () override |
svtools::ColorConfig & | GetColorConfig () |
Public Member Functions inherited from SfxModule | |
SfxModule (const OString &rResName, std::initializer_list< SfxObjectFactory * > pFactoryList) | |
virtual | ~SfxModule () override |
std::locale | GetResLocale () const |
SfxSlotPool * | GetSlotPool () const |
void | RegisterToolBoxControl (const SfxTbxCtrlFactory &) |
void | RegisterChildWindow (const SfxChildWinFactory &) |
void | RegisterStatusBarControl (const SfxStbCtrlFactory &) |
virtual std::unique_ptr< SfxTabPage > | CreateTabPage (sal_uInt16 nId, weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet) |
virtual void | Invalidate (sal_uInt16 nId=0) override |
virtual std::optional< SfxStyleFamilies > | CreateStyleFamilies () |
FieldUnit | GetFieldUnit () const |
SAL_DLLPRIVATE SfxTbxCtrlFactory * | GetTbxCtrlFactory (const std::type_info &rSlotType, sal_uInt16 nSlotID) const |
SAL_DLLPRIVATE SfxStbCtrlFactory * | GetStbCtrlFactory (const std::type_info &rSlotType, sal_uInt16 nSlotID) const |
SAL_DLLPRIVATE SfxChildWinFactory * | GetChildWinFactoryById (sal_uInt16 nId) const |
Public Member Functions inherited from SfxShell | |
virtual | ~SfxShell () override |
virtual SfxInterface * | GetInterface () const |
void | SetName (const OUString &rName) |
const OUString & | GetName () const |
SfxViewShell * | GetViewShell () const |
const SfxPoolItem * | GetSlotState (sal_uInt16 nSlotId, const SfxInterface *pIF=nullptr, SfxItemSet *pStateSet=nullptr) |
const SfxPoolItem * | ExecuteSlot (SfxRequest &rReq, const SfxInterface *pIF=nullptr) |
void | ExecuteSlot (SfxRequest &rReq, bool bAsync) |
SfxItemPool & | GetPool () const |
void | SetPool (SfxItemPool *pNewPool) |
virtual SfxUndoManager * | GetUndoManager () |
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) |
SfxDispatcher * | GetDispatcher () const |
SfxViewFrame * | GetFrame () const |
virtual bool | HasUIFeature (SfxShellFeature nFeature) const |
void | UIFeatureChanged () |
const SfxPoolItem * | GetItem (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 SfxSlot * | GetVerbSlot_Impl (sal_uInt16 nId) const |
virtual SfxObjectShell * | GetObjectShell () |
void | SetDisableFlags (SfxDisableFlags nFlags) |
SfxDisableFlags | GetDisableFlags () const |
virtual std::optional< SfxItemSet > | CreateItemSet (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 |
SfxBroadcaster * | GetBroadcasterJOE (sal_uInt16 nNo) const |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) |
void | RemoveBroadcaster_Impl (SfxBroadcaster &rBC) |
virtual bool | IsSdrView () const |
Private Member Functions | |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override |
get notifications More... | |
SfxFrame * | ExecuteNewDocument (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 SfxFrame * | CreateEmptyDocument (const css::uno::Reference< css::frame::XFrame > &i_rFrame) |
static SfxFrame * | CreateFromTemplate (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 | |
SdOptions * | pImpressOptions |
SdOptions * | pDrawOptions |
std::unique_ptr< SvxSearchItem > | pSearchItem |
std::unique_ptr< SvNumberFormatter > | pNumberFormatter |
tools::SvRef< SotStorage > | xOptionStorage |
bool | bWaterCan |
std::unique_ptr< SfxErrorHandler > | mpErrorHdl |
VclPtr< VirtualDevice > | mpVirtualRefDevice |
This device is used for printer independent layout. More... | |
bool | mbEventListenerAdded |
std::unique_ptr< svtools::ColorConfig > | mpColorConfig |
Additional Inherited Members | |
Static Public Member Functions inherited from SfxModule | |
static SfxModule * | GetActiveModule (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 SfxInterface * | GetStaticInterface () |
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 &) |
SdModule::SdModule | ( | SfxObjectFactory * | pDrawObjFact, |
SfxObjectFactory * | pGraphicObjFact | ||
) |
|
overridevirtual |
Definition at line 94 of file sdmod.cxx.
References VclPtr< class reference_type >::disposeAndClear(), LINK, mbEventListenerAdded, mpErrorHdl, mpVirtualRefDevice, pNumberFormatter, pSearchItem, and Application::RemoveEventListener().
|
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().
|
staticprivate |
Definition at line 509 of file sdmod1.cxx.
References SdDrawDocument::CreateFirstPages(), SfxObjectShell::DoInitNew(), sd::DrawDocShell::GetDoc(), SfxViewFrame::GetFrame(), SfxMedium::GetItemSet(), SfxObjectShell::GetMedium(), Impress, SfxViewFrame::LoadDocumentIntoFrame(), SfxItemSet::Put(), and SdDrawDocument::StopWorkStartupDelay().
Referenced by ExecuteNewDocument().
|
staticprivate |
Definition at line 414 of file sdmod1.cxx.
References SfxViewFrame::GetFrame(), SfxMedium::GetItemSet(), SfxObjectShell::GetMedium(), SfxShell::GetPool(), ErrorHandler::HandleError(), SfxViewFrame::LoadDocumentIntoFrame(), SfxApplication::LoadTemplate(), SfxItemSet::Put(), and SfxGetpApp().
Referenced by ExecuteNewDocument().
|
overridevirtual |
virtual methods for option dialog
Reimplemented from SfxShell.
Definition at line 425 of file sdmod2.cxx.
References SfxObjectShell::Current(), Draw, SdrModel::GetDefaultTabulator(), SdOptionsLayout::GetDefTab(), Fraction::GetDenominator(), sd::DrawDocShell::GetDoc(), SdDrawDocument::GetDocumentType(), SfxModule::GetFieldUnit(), sd::DrawDocShell::GetFrameView(), SdOptionsLayout::GetMetric(), Fraction::GetNumerator(), SdOptionsMiscItem::GetOptionsMisc(), SfxShell::GetPool(), SdDrawDocument::GetPrinterIndependentLayout(), SdOptionsZoom::GetScale(), GetSdOptions(), SdDrawDocument::GetSdPage(), SdrPage::GetSize(), SdrModel::GetUIScale(), SdrModel::GetUIUnit(), sd::DrawDocShell::GetViewShell(), Size::Height(), Impress, SdDrawDocument::IsSummationOfParagraphs(), SfxItemPool::SetDefaultMetric(), SdOptionsMisc::SetPrinterIndependentLayout(), SdOptionsMisc::SetSummationOfParagraphs(), Standard, Size::Width(), and sd::ViewShell::WriteFrameViewData().
|
overridevirtual |
Reimplemented from SfxModule.
Definition at line 792 of file sdmod2.cxx.
References SfxModule::GetResLocale(), SD_MOD, and SdResId().
|
overridevirtual |
Reimplemented from SfxModule.
Definition at line 726 of file sdmod2.cxx.
References SfxAbstractDialogFactory::Create(), SdAbstractDialogFactory::Create(), CreateTabPage(), DBG_ASSERT, SfxItemSet::GetPool(), SdAbstractDialogFactory::GetSdOptionsContentsTabPageCreatorFunc(), SdAbstractDialogFactory::GetSdOptionsMiscTabPageCreatorFunc(), SdAbstractDialogFactory::GetSdOptionsSnapTabPageCreatorFunc(), SdAbstractDialogFactory::GetSdPrintOptionsTabPageCreatorFunc(), SfxAbstractDialogFactory::GetTabPageCreatorFunc(), nId, SfxItemSet::Put(), and rSet.
Referenced by CreateTabPage().
SdModule::DECL_DLLPRIVATE_LINK | ( | CalcFieldValueHdl | , |
EditFieldInfo * | , | ||
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 )
void SdModule::Execute | ( | SfxRequest & | rReq | ) |
Definition at line 77 of file sdmod1.cxx.
References Link< typename Arg, typename Ret >::Call(), Application::CreateMessageDialog(), SfxObjectShell::Current(), SfxRequest::Done(), EE_CHAR_LANGUAGE(), EE_CHAR_LANGUAGE_CJK(), EE_CHAR_LANGUAGE_CTL(), ExecuteNewDocument(), SfxShell::ExecuteSlot(), SfxRequest::GetArg(), SfxRequest::GetArgs(), sd::DrawDocShell::GetDoc(), SdDrawDocument::GetDocumentType(), SfxShell::GetInterface(), SfxItemSet::GetItemIfSet(), SfxItemSet::GetItemState(), SdDrawDocument::GetOnlineSpell(), GetSdOptions(), SfxRequest::GetSlot(), SfxLinkItem::GetValue(), CntUInt16Item::GetValue(), SfxBoolItem::GetValue(), GetValue, sd::DrawDocShell::GetViewShell(), sd::ViewShell::GetViewShellBase(), sd::SlideShow::IsRunning(), OutlineToImpress(), SfxShell::PutItem(), SdResId(), SdDrawDocument::SetLanguage(), SdOptionsLayout::SetMetric(), SdDrawDocument::SetOnlineSpell(), SfxRequest::SetReturnValue(), SfxGetpApp(), SdDrawDocument::StartOnlineSpelling(), and SdDrawDocument::StopOnlineSpelling().
|
private |
Definition at line 445 of file sdmod1.cxx.
References CreateEmptyDocument(), CreateFromTemplate(), SfxRequest::GetArg(), SfxShell::GetDispatcher(), SfxUnoFrameItem::GetFrame(), SfxFrame::GetFrameInterface(), GetSdOptions(), SfxRequest::GetSlot(), SfxObjectFactory::GetStandardTemplate(), SfxTemplateSelectionDlg::getTemplatePath(), Impress, SfxApplication::IsHeadlessOrUITest(), SfxTemplateSelectionDlg::IsStartWithTemplate(), SdOptionsMisc::IsStartWithTemplate(), SfxApplication::IsTipOfTheDayDue(), SfxTemplateSelectionDlg::run(), SdOptionsMisc::SetStartWithTemplate(), SfxGetpApp(), and u.
Referenced by Execute().
svtools::ColorConfig & SdModule::GetColorConfig | ( | ) |
Definition at line 211 of file sdmod.cxx.
References mpColorConfig.
SvNumberFormatter * SdModule::GetNumberFormatter | ( | ) |
Definition at line 203 of file sdmod.cxx.
References LANGUAGE_SYSTEM, and pNumberFormatter.
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.
SdOptions * SdModule::GetSdOptions | ( | DocumentType | eDocType | ) |
Return options.
Definition at line 126 of file sdmod.cxx.
References SfxObjectShell::Current(), Draw, sd::DrawDocShell::GetDoc(), SdDrawDocument::GetDocumentType(), SdOptionsLayout::GetMetric(), Impress, pDrawOptions, pImpressOptions, and SfxShell::PutItem().
Referenced by ApplyItemSet(), CreateItemSet(), Execute(), ExecuteNewDocument(), GetState(), and sd::SlideshowImpl::~SlideshowImpl().
|
inline |
void SdModule::GetState | ( | SfxItemSet & | rItemSet | ) |
Definition at line 301 of file sdmod1.cxx.
References Application::AddEventListener(), SfxObjectShell::Current(), EE_CHAR_LANGUAGE(), EE_CHAR_LANGUAGE_CJK(), EE_CHAR_LANGUAGE_CTL(), sd::DrawDocShell::GetDoc(), SdDrawDocument::GetDocumentType(), sd::DrawDocShell::GetDocumentType(), SfxShell::GetInterface(), SfxItemSet::GetItemState(), SdDrawDocument::GetLanguage(), SdOptionsLayout::GetMetric(), SdDrawDocument::GetOnlineSpell(), GetSdOptions(), SfxShell::GetSlotState(), sd::DrawDocShell::GetViewShell(), Impress, LINK, mbEventListenerAdded, SfxItemSet::Put(), and SfxGetpApp().
|
inline |
|
staticprivate |
SfxInterface initializer.
|
overrideprivatevirtual |
get notifications
Reimplemented from SfxListener.
Definition at line 114 of file sdmod.cxx.
References SfxHint::GetId(), pDrawOptions, and pImpressOptions.
|
staticprivate |
Take an outline from a text document and create a new impress document according to the structure of the outline.
rRequest | This 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().
void SdModule::SetSearchItem | ( | std::unique_ptr< SvxSearchItem > | pItem | ) |
Definition at line 108 of file sdmod.cxx.
References pSearchItem.
SdExtPropertySetInfoCache SdModule::gImplDrawPropertySetInfoCache |
SdExtPropertySetInfoCache SdModule::gImplImpressPropertySetInfoCache |
SdTypesCache SdModule::gImplTypesCache |
|
private |
Definition at line 161 of file sdmod.hxx.
Referenced by GetState(), and ~SdModule().
|
private |
Definition at line 181 of file sdmod.hxx.
Referenced by GetColorConfig().
|
private |
Definition at line 145 of file sdmod.hxx.
Referenced by ~SdModule().
|
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().
|
private |
Definition at line 140 of file sdmod.hxx.
Referenced by GetSdOptions(), and Notify().
|
private |
Definition at line 139 of file sdmod.hxx.
Referenced by GetSdOptions(), and Notify().
|
private |
Definition at line 142 of file sdmod.hxx.
Referenced by GetNumberFormatter(), and ~SdModule().
|
private |
Definition at line 141 of file sdmod.hxx.
Referenced by SetSearchItem(), and ~SdModule().
SdTransferable* SdModule::pTransferClip |
Definition at line 99 of file sdmod.hxx.
Referenced by SdTransferable::ObjectReleased().
SdTransferable* SdModule::pTransferDrag |
Definition at line 100 of file sdmod.hxx.
Referenced by SdTransferable::ObjectReleased().
SdTransferable* SdModule::pTransferSelection |
Definition at line 101 of file sdmod.hxx.
Referenced by SdTransferable::ObjectReleased().
|
private |
Definition at line 143 of file sdmod.hxx.
Referenced by GetOptionStream().