update emoji autocorrect entries from po-files
[LibreOffice.git] / include / sfx2 / sfxdlg.hxx
blob0c91fab65ccd0d4312790432ebea9012e812f980
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_SFX2_SFXDLG_HXX
20 #define INCLUDED_SFX2_SFXDLG_HXX
22 #include <sal/config.h>
23 #include <sfx2/dllapi.h>
25 #include <vcl/abstdlg.hxx>
26 #include <com/sun/star/embed/XEmbeddedObject.hpp>
27 #include <com/sun/star/embed/XStorage.hpp>
28 #include <com/sun/star/frame/XFrame.hpp>
30 #include <sot/exchange.hxx>
31 #include <sfx2/lnkbase.hxx>
32 #include <com/sun/star/uno/Any.hxx>
33 #include <com/sun/star/uno/Reference.h>
35 class SfxTabPage;
36 class SfxViewFrame;
37 class SfxBindings;
38 class SfxItemSet;
39 class ResId;
40 namespace vcl { class Window; }
41 namespace rtl {
42 class OUString;
44 class SfxItemPool;
45 class SvObjectServerList;
46 class TransferableDataHelper;
47 struct TransferableObjectDescriptor;
49 #include <sfx2/tabdlg.hxx>
51 namespace sfx2
53 class LinkManager;
56 namespace com { namespace sun { namespace star { namespace frame {
57 class XModel;
58 } } } }
60 class SfxAbstractDialog : virtual public VclAbstractDialog
62 public:
63 /** Get a set of items changed in the dialog.
65 virtual const SfxItemSet* GetOutputItemSet() const = 0;
66 virtual void SetText( const OUString& rStr ) = 0;
67 virtual OUString GetText() const = 0;
70 class SfxAbstractTabDialog : virtual public SfxAbstractDialog
72 public:
73 virtual void SetCurPageId( sal_uInt16 nId ) = 0;
74 virtual void SetCurPageId( const OString &rName ) = 0;
75 virtual const sal_uInt16* GetInputRanges( const SfxItemPool& ) = 0;
76 virtual void SetInputSet( const SfxItemSet* pInSet ) = 0;
79 class SfxAbstractApplyTabDialog : virtual public SfxAbstractTabDialog
81 public:
82 virtual void SetApplyHdl( const Link<>& rLink ) = 0;
85 class SfxAbstractInsertObjectDialog : virtual public VclAbstractDialog
87 public:
88 virtual com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject > GetObject()=0;
89 virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > GetIconIfIconified( OUString* pGraphicMediaType )=0;
90 virtual bool IsCreateNew()=0;
93 class SfxAbstractPasteDialog : virtual public VclAbstractDialog
95 public:
96 virtual void Insert( SotClipboardFormatId nFormat, const rtl::OUString & rFormatName ) = 0;
97 virtual void SetObjName( const SvGlobalName & rClass, const rtl::OUString & rObjName ) = 0;
98 virtual SotClipboardFormatId GetFormat( const TransferableDataHelper& aHelper,
99 const DataFlavorExVector* pFormats=0,
100 const TransferableObjectDescriptor* pDesc=0 ) = 0;
103 class SfxAbstractLinksDialog : virtual public VclAbstractDialog
107 class AbstractScriptSelectorDialog : virtual public VclAbstractDialog
109 public:
110 virtual rtl::OUString GetScriptURL() const = 0;
111 virtual void SetRunLabel() = 0;
114 namespace com { namespace sun { namespace star { namespace frame { class XFrame; } } } }
116 class SFX2_DLLPUBLIC SfxAbstractDialogFactory : virtual public VclAbstractDialogFactory
118 public:
119 virtual ~SfxAbstractDialogFactory(); // needed for export of vtable
120 static SfxAbstractDialogFactory* Create();
121 virtual VclAbstractDialog* CreateSfxDialog( vcl::Window* pParent, const SfxBindings& rBindings, sal_uInt32 nResId ) = 0;
122 virtual VclAbstractDialog* CreateFrameDialog( vcl::Window* pParent, const com::sun::star::uno::Reference< com::sun::star::frame::XFrame >& rFrame, sal_uInt32 nResId, const rtl::OUString& rParameter ) = 0;
123 virtual SfxAbstractTabDialog* CreateTabDialog( sal_uInt32 nResId,
124 vcl::Window* pParent,
125 const SfxItemSet* pAttrSet,
126 SfxViewFrame* pViewFrame,
127 bool bEditFmt=false,
128 const rtl::OUString *pUserButtonText=0 ) = 0;
129 virtual SfxAbstractTabDialog* CreateTabDialog( sal_uInt32 nResId,
130 vcl::Window* pParent,
131 const SfxItemSet* pAttrSet,
132 const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xViewFrame,
133 bool bEditFmt=false,
134 const rtl::OUString *pUserButtonText=0 ) = 0;
135 virtual CreateTabPage GetTabPageCreatorFunc( sal_uInt16 nId ) = 0;
136 virtual GetTabPageRanges GetTabPageRangesFunc( sal_uInt16 nId ) = 0;
137 virtual SfxAbstractInsertObjectDialog* CreateInsertObjectDialog( vcl::Window* pParent, const OUString& rCommand,
138 const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& xStor,
139 const SvObjectServerList* pList = 0 )=0;
140 virtual VclAbstractDialog* CreateEditObjectDialog( vcl::Window* pParent, const OUString& rCommand,
141 const com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject >& xObj )=0;
142 virtual SfxAbstractPasteDialog* CreatePasteDialog( vcl::Window* pParent )=0;
143 virtual SfxAbstractLinksDialog* CreateLinksDialog( vcl::Window* pParent, sfx2::LinkManager* pMgr, bool bHTML=false, sfx2::SvBaseLink* p=0 )=0;
144 virtual VclAbstractDialog * CreateSvxScriptOrgDialog( vcl::Window* pParent, const rtl::OUString& rLanguage ) = 0;
146 virtual AbstractScriptSelectorDialog*
147 CreateScriptSelectorDialog(
148 vcl::Window* pParent,
149 bool bShowSlots,
150 const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _rxFrame
151 ) = 0;
153 virtual VclAbstractDialog* CreateScriptErrorDialog(
154 vcl::Window* pParent, const css::uno::Any& rException ) = 0;
156 virtual VclAbstractDialog* CreateOptionsDialog(
157 vcl::Window* pParent, const OUString& rExtensionId, const OUString& rApplicationContext ) = 0;
160 #endif
162 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */