33#include <svx/svxids.hrc>
46#define ShellClass_SdModule
53 GetStaticInterface()->RegisterStatusBar(StatusBarId::DrawStatusBar);
59 pTransferClip(
nullptr),
60 pTransferDrag(
nullptr),
61 pTransferSelection(
nullptr),
62 pImpressOptions(
nullptr),
63 pDrawOptions(
nullptr),
65 mbEventListenerAdded(
false),
68 SetName(
"StarDraw" );
70 pSearchItem->SetAppFlag(SvxSearchApp::DRAW);
73 mpErrorHdl.reset(
new SfxErrorHandler(RID_SD_ERRHDL, ErrCodeArea::Sd, ErrCodeArea::Sd, GetResLocale()) );
79 mpVirtualRefDevice->SetMapMode(
MapMode(MapUnit::Map100thMM));
116 if( rHint.
GetId() == SfxHintId::Deinitializing )
146 sal_uInt16 nMetric = pOptions->
GetMetric();
179 aURL.Append(
u"drawing.cfg" );
192 aStmName =
"Impress_";
194 aStmName += rOptionName;
SfxApplication * SfxGetpApp()
static void RemoveEventListener(const Link< VclSimpleEvent &, void > &rEventListener)
SAL_DLLPRIVATE DocumentType GetDocumentType() const
std::unique_ptr< SvNumberFormatter > pNumberFormatter
void SetSearchItem(std::unique_ptr< SvxSearchItem > pItem)
svtools::ColorConfig & GetColorConfig()
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
get notifications
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 ...
virtual ~SdModule() override
SD_DLLPUBLIC SvNumberFormatter * GetNumberFormatter()
VclPtr< VirtualDevice > mpVirtualRefDevice
This device is used for printer independent layout.
SdOptions * GetSdOptions(DocumentType eDocType)
Return options.
tools::SvRef< SotStorage > xOptionStorage
SdModule(SfxObjectFactory *pDrawObjFact, SfxObjectFactory *pGraphicObjFact)
bool mbEventListenerAdded
std::unique_ptr< SfxErrorHandler > mpErrorHdl
std::unique_ptr< svtools::ColorConfig > mpColorConfig
SdOptions * pImpressOptions
std::unique_ptr< SvxSearchItem > pSearchItem
sal_uInt16 GetMetric() const
static SAL_WARN_UNUSED_RESULT SfxObjectShell * Current()
void PutItem(const SfxPoolItem &rItem)
SdDrawDocument * GetDoc()
static std::unique_ptr< SvStream > CreateStream(const OUString &rFileName, StreamMode eOpenMode, css::uno::Reference< css::awt::XWindow > xParentWin=nullptr)
#define LINK(Instance, Class, Member)
OUString nget(TranslateNId aContextSingularPlural, int n, const std::locale &loc)
OUString get(TranslateId sContextAndId, const std::locale &loc)
OUString SdResId(TranslateId aId)
#define SFX_IMPL_INTERFACE(Class, SuperClass)