LibreOffice Module sfx2 (master) 1
sfxdlg.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19#ifndef INCLUDED_SFX2_SFXDLG_HXX
20#define INCLUDED_SFX2_SFXDLG_HXX
21
22#include <sal/config.h>
23#include <sfx2/dllapi.h>
24
25#include <vcl/abstdlg.hxx>
26
27#include <sot/formats.hxx>
28#include <sfx2/tabdlg.hxx>
29#include <com/sun/star/uno/Reference.h>
30
31class SfxItemSet;
32class SfxItemPool;
35class SvGlobalName;
36
37namespace sfx2
38{
39 class LinkManager;
40 class SvBaseLink;
41}
42
43namespace com::sun::star::embed { class XEmbeddedObject; }
44namespace com::sun::star::embed { class XStorage; }
45namespace com::sun::star::io { class XInputStream; }
46namespace com::sun::star::uno { class Any; }
47
49{
50protected:
51 virtual ~SfxAbstractDialog() override = default;
52public:
55 virtual const SfxItemSet* GetOutputItemSet() const = 0;
56 virtual void SetText( const OUString& rStr ) = 0;
57};
58
60{
61protected:
62 virtual ~SfxAbstractTabDialog() override = default;
63public:
64 virtual void SetCurPageId( const OUString &rName ) = 0;
66 virtual void SetInputSet( const SfxItemSet* pInSet ) = 0;
67};
68
70{
71protected:
72 virtual ~SfxAbstractApplyTabDialog() override = default;
73public:
74 virtual void SetApplyHdl( const Link<LinkParamNone*,void>& rLink ) = 0;
75};
76
78{
79protected:
80 virtual ~SfxAbstractInsertObjectDialog() override = default;
81public:
82 virtual css::uno::Reference < css::embed::XEmbeddedObject > GetObject()=0;
83 virtual css::uno::Reference< css::io::XInputStream > GetIconIfIconified( OUString* pGraphicMediaType )=0;
84 virtual bool IsCreateNew()=0;
85};
86
88{
89protected:
90 virtual ~SfxAbstractPasteDialog() override = default;
91public:
92 virtual void Insert( SotClipboardFormatId nFormat, const OUString & rFormatName ) = 0;
93 virtual void InsertUno( const OUString& sCmd, const OUString& sLabel ) = 0;
94 virtual void SetObjName( const SvGlobalName & rClass, const OUString & rObjName ) = 0;
95 virtual void PreGetFormat( const TransferableDataHelper& aHelper ) = 0;
98};
99
101{
102protected:
103 virtual ~SfxAbstractLinksDialog() override = default;
104};
105
107{
108protected:
109 virtual ~AbstractScriptSelectorDialog() override = default;
110public:
111 virtual OUString GetScriptURL() const = 0;
112 virtual void SetRunLabel() = 0;
113};
114
115namespace com::sun::star::frame { class XFrame; }
116
118{
119public:
120 virtual ~SfxAbstractDialogFactory() override; // needed for export of vtable
122 virtual VclPtr<VclAbstractDialog> CreateFrameDialog(weld::Window* pParent, const css::uno::Reference< css::frame::XFrame >& rFrame, sal_uInt32 nResId, const OUString& rParameter) = 0;
125 const SfxItemSet* pAttrSet,
126 const css::uno::Reference< css::frame::XFrame >& xViewFrame ) = 0;
127 virtual CreateTabPage GetTabPageCreatorFunc( sal_uInt16 nId ) = 0;
128 virtual GetTabPageRanges GetTabPageRangesFunc( sal_uInt16 nId ) = 0;
130 const css::uno::Reference < css::embed::XStorage >& xStor,
131 const SvObjectServerList* pList )=0;
132 virtual VclPtr<VclAbstractDialog> CreateEditObjectDialog(weld::Window* pParent, const OUString& rCommand,
133 const css::uno::Reference < css::embed::XEmbeddedObject >& xObj )=0;
135 virtual VclPtr<SfxAbstractLinksDialog> CreateLinksDialog(weld::Window* pParent, sfx2::LinkManager* pMgr, bool bHTML=false, sfx2::SvBaseLink* p=nullptr) = 0;
136 virtual VclPtr<VclAbstractDialog> CreateSvxScriptOrgDialog(weld::Window* pParent, const OUString& rLanguage) = 0;
137
139 const css::uno::Reference< css::frame::XFrame >& rxFrame) = 0;
140
141 virtual void ShowAsyncScriptErrorDialog( weld::Window* pParent, const css::uno::Any& rException ) = 0;
142
144 weld::Window* pParent, const OUString& rExtensionId ) = 0;
145
147
149
151
153};
154
155#endif
156
157/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
WhichRangesContainer(* GetTabPageRanges)()
Definition: basedlgs.hxx:85
virtual OUString GetScriptURL() const =0
virtual ~AbstractScriptSelectorDialog() override=default
virtual void SetRunLabel()=0
virtual void SetApplyHdl(const Link< LinkParamNone *, void > &rLink)=0
virtual ~SfxAbstractApplyTabDialog() override=default
virtual VclPtr< AbstractScriptSelectorDialog > CreateScriptSelectorDialog(weld::Window *pParent, const css::uno::Reference< css::frame::XFrame > &rxFrame)=0
virtual void ShowAsyncScriptErrorDialog(weld::Window *pParent, const css::uno::Any &rException)=0
virtual GetTabPageRanges GetTabPageRangesFunc(sal_uInt16 nId)=0
virtual VclPtr< SfxAbstractLinksDialog > CreateLinksDialog(weld::Window *pParent, sfx2::LinkManager *pMgr, bool bHTML=false, sfx2::SvBaseLink *p=nullptr)=0
virtual VclPtr< VclAbstractDialog > CreateEditObjectDialog(weld::Window *pParent, const OUString &rCommand, const css::uno::Reference< css::embed::XEmbeddedObject > &xObj)=0
virtual VclPtr< VclAbstractDialog > CreateWidgetTestDialog(weld::Window *_pParent)=0
virtual VclPtr< VclAbstractDialog > CreateToolbarmodeDialog(weld::Window *_pParent)=0
virtual VclPtr< SfxAbstractTabDialog > CreateAutoCorrTabDialog(weld::Window *pParent, const SfxItemSet *pAttrSet)=0
virtual VclPtr< SfxAbstractInsertObjectDialog > CreateInsertObjectDialog(weld::Window *pParent, const OUString &rCommand, const css::uno::Reference< css::embed::XStorage > &xStor, const SvObjectServerList *pList)=0
virtual VclPtr< VclAbstractDialog > CreateAboutDialog(weld::Window *_pParent)=0
virtual VclPtr< VclAbstractDialog > CreateTipOfTheDayDialog(weld::Window *_pParent)=0
virtual VclPtr< VclAbstractDialog > CreateFrameDialog(weld::Window *pParent, const css::uno::Reference< css::frame::XFrame > &rFrame, sal_uInt32 nResId, const OUString &rParameter)=0
virtual VclPtr< SfxAbstractTabDialog > CreateCustomizeTabDialog(weld::Window *pParent, const SfxItemSet *pAttrSet, const css::uno::Reference< css::frame::XFrame > &xViewFrame)=0
virtual VclPtr< VclAbstractDialog > CreateOptionsDialog(weld::Window *pParent, const OUString &rExtensionId)=0
virtual VclPtr< SfxAbstractPasteDialog > CreatePasteDialog(weld::Window *pParent)=0
virtual CreateTabPage GetTabPageCreatorFunc(sal_uInt16 nId)=0
virtual VclPtr< VclAbstractDialog > CreateSvxScriptOrgDialog(weld::Window *pParent, const OUString &rLanguage)=0
virtual const SfxItemSet * GetOutputItemSet() const =0
Get a set of items changed in the dialog.
virtual ~SfxAbstractDialog() override=default
virtual void SetText(const OUString &rStr)=0
virtual bool IsCreateNew()=0
virtual ~SfxAbstractInsertObjectDialog() override=default
virtual css::uno::Reference< css::embed::XEmbeddedObject > GetObject()=0
virtual css::uno::Reference< css::io::XInputStream > GetIconIfIconified(OUString *pGraphicMediaType)=0
virtual ~SfxAbstractLinksDialog() override=default
virtual void PreGetFormat(const TransferableDataHelper &aHelper)=0
virtual void SetObjName(const SvGlobalName &rClass, const OUString &rObjName)=0
virtual SotClipboardFormatId GetFormatOnly()=0
virtual void Insert(SotClipboardFormatId nFormat, const OUString &rFormatName)=0
virtual SotClipboardFormatId GetFormat(const TransferableDataHelper &aHelper)=0
virtual ~SfxAbstractPasteDialog() override=default
virtual void InsertUno(const OUString &sCmd, const OUString &sLabel)=0
virtual void SetCurPageId(const OUString &rName)=0
virtual WhichRangesContainer GetInputRanges(const SfxItemPool &)=0
virtual void SetInputSet(const SfxItemSet *pInSet)=0
virtual ~SfxAbstractTabDialog() override=default
static VclAbstractDialogFactory * Create()
#define SFX2_DLLPUBLIC
Definition: dllapi.h:29
SotClipboardFormatId
Implementation of the interface com.sun.star.rdf.XDocumentMetadataAccess.
std::unique_ptr< SfxTabPage >(* CreateTabPage)(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: tabdlg.hxx:39