/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #ifndef INCLUDED_SFX2_SFXDLG_HXX #define INCLUDED_SFX2_SFXDLG_HXX #include #include #include #include #include #include #include #include #include #include #include class SfxTabPage; class SfxViewFrame; class SfxBindings; class SfxItemSet; namespace vcl { class Window; } namespace rtl { class OUString; }; class SfxItemPool; class SvObjectServerList; class TransferableDataHelper; struct TransferableObjectDescriptor; namespace sfx2 { class LinkManager; } namespace com { namespace sun { namespace star { namespace frame { class XModel; } } } } class SfxAbstractDialog : virtual public VclAbstractDialog { protected: virtual ~SfxAbstractDialog() override = default; public: /** Get a set of items changed in the dialog. */ virtual const SfxItemSet* GetOutputItemSet() const = 0; virtual void SetText( const OUString& rStr ) = 0; virtual OUString GetText() const = 0; }; class SfxAbstractTabDialog : virtual public SfxAbstractDialog { protected: virtual ~SfxAbstractTabDialog() override = default; public: virtual void SetCurPageId( sal_uInt16 nId ) = 0; virtual void SetCurPageId( const OString &rName ) = 0; virtual const sal_uInt16* GetInputRanges( const SfxItemPool& ) = 0; virtual void SetInputSet( const SfxItemSet* pInSet ) = 0; }; class SfxAbstractApplyTabDialog : virtual public SfxAbstractTabDialog { protected: virtual ~SfxAbstractApplyTabDialog() override = default; public: virtual void SetApplyHdl( const Link& rLink ) = 0; }; class SfxAbstractInsertObjectDialog : virtual public VclAbstractDialog { protected: virtual ~SfxAbstractInsertObjectDialog() override = default; public: virtual css::uno::Reference < css::embed::XEmbeddedObject > GetObject()=0; virtual css::uno::Reference< css::io::XInputStream > GetIconIfIconified( OUString* pGraphicMediaType )=0; virtual bool IsCreateNew()=0; }; class SfxAbstractPasteDialog : virtual public VclAbstractDialog { protected: virtual ~SfxAbstractPasteDialog() override = default; public: virtual void Insert( SotClipboardFormatId nFormat, const rtl::OUString & rFormatName ) = 0; virtual void SetObjName( const SvGlobalName & rClass, const rtl::OUString & rObjName ) = 0; virtual SotClipboardFormatId GetFormat( const TransferableDataHelper& aHelper ) = 0; }; class SfxAbstractLinksDialog : virtual public VclAbstractDialog { protected: virtual ~SfxAbstractLinksDialog() override = default; }; class AbstractScriptSelectorDialog : virtual public VclAbstractDialog { protected: virtual ~AbstractScriptSelectorDialog() override = default; public: virtual rtl::OUString GetScriptURL() const = 0; virtual void SetRunLabel() = 0; }; namespace com { namespace sun { namespace star { namespace frame { class XFrame; } } } } class SFX2_DLLPUBLIC SfxAbstractDialogFactory : virtual public VclAbstractDialogFactory { public: virtual ~SfxAbstractDialogFactory() override; // needed for export of vtable static SfxAbstractDialogFactory* Create(); virtual VclPtr CreateFrameDialog( const css::uno::Reference< css::frame::XFrame >& rFrame, sal_uInt32 nResId, const rtl::OUString& rParameter ) = 0; virtual VclPtr CreateAutoCorrTabDialog(vcl::Window* pParent, const SfxItemSet* pAttrSet) = 0; virtual VclPtr CreateCustomizeTabDialog( const SfxItemSet* pAttrSet, const css::uno::Reference< css::frame::XFrame >& xViewFrame ) = 0; virtual CreateTabPage GetTabPageCreatorFunc( sal_uInt16 nId ) = 0; virtual GetTabPageRanges GetTabPageRangesFunc( sal_uInt16 nId ) = 0; virtual VclPtr CreateInsertObjectDialog( vcl::Window* pParent, const OUString& rCommand, const css::uno::Reference < css::embed::XStorage >& xStor, const SvObjectServerList* pList )=0; virtual VclPtr CreateEditObjectDialog( const OUString& rCommand, const css::uno::Reference < css::embed::XEmbeddedObject >& xObj )=0; virtual VclPtr CreatePasteDialog( vcl::Window* pParent )=0; virtual VclPtr CreateLinksDialog( vcl::Window* pParent, sfx2::LinkManager* pMgr, bool bHTML=false, sfx2::SvBaseLink* p=nullptr )=0; virtual VclPtr CreateSvxScriptOrgDialog( vcl::Window* pParent, const rtl::OUString& rLanguage ) = 0; virtual VclPtr CreateScriptSelectorDialog( vcl::Window* pParent, const css::uno::Reference< css::frame::XFrame >& _rxFrame ) = 0; virtual VclPtr CreateScriptErrorDialog( const css::uno::Any& rException ) = 0; virtual VclPtr CreateOptionsDialog( vcl::Window* pParent, const OUString& rExtensionId ) = 0; }; #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */