LCOV - code coverage report
Current view: top level - include/sfx2 - sfxdlg.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 8 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 29 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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             : #include <com/sun/star/embed/XEmbeddedObject.hpp>
      27             : #include <com/sun/star/embed/XStorage.hpp>
      28             : #include <com/sun/star/frame/XFrame.hpp>
      29             : 
      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>
      34             : 
      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;
      43             : };
      44             : class SfxItemPool;
      45             : class SvObjectServerList;
      46             : class TransferableDataHelper;
      47             : struct TransferableObjectDescriptor;
      48             : 
      49             : #include <sfx2/tabdlg.hxx>
      50             : 
      51             : namespace sfx2
      52             : {
      53             :     class LinkManager;
      54             : }
      55             : 
      56             : namespace com { namespace sun { namespace star { namespace frame {
      57             :     class XModel;
      58             : } } } }
      59             : 
      60           0 : class SfxAbstractDialog : virtual public VclAbstractDialog
      61             : {
      62             : public:
      63             :     /** Get a set of items changed in the dialog.
      64             :       */
      65             :     virtual const SfxItemSet*   GetOutputItemSet() const = 0;
      66             :     virtual void                SetText( const OUString& rStr ) = 0;
      67             :     virtual OUString            GetText() const = 0;
      68             : };
      69             : 
      70           0 : class SfxAbstractTabDialog : virtual public SfxAbstractDialog
      71             : {
      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;
      77             : };
      78             : 
      79           0 : class SfxAbstractApplyTabDialog : virtual public SfxAbstractTabDialog
      80             : {
      81             : public:
      82             :     virtual void                SetApplyHdl( const Link<>& rLink ) = 0;
      83             : };
      84             : 
      85           0 : class SfxAbstractInsertObjectDialog : virtual public VclAbstractDialog
      86             : {
      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;
      91             : };
      92             : 
      93           0 : class SfxAbstractPasteDialog : virtual public VclAbstractDialog
      94             : {
      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;
     101             : };
     102             : 
     103           0 : class SfxAbstractLinksDialog : virtual public VclAbstractDialog
     104             : {
     105             : };
     106             : 
     107           0 : class AbstractScriptSelectorDialog : virtual public VclAbstractDialog
     108             : {
     109             : public:
     110             :     virtual rtl::OUString       GetScriptURL() const = 0;
     111             :     virtual void                SetRunLabel() = 0;
     112             : };
     113             : 
     114             : namespace com { namespace sun { namespace star { namespace frame { class XFrame; } } } }
     115             : 
     116           0 : class SFX2_DLLPUBLIC SfxAbstractDialogFactory : virtual public VclAbstractDialogFactory
     117             : {
     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;
     145             : 
     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;
     152             : 
     153             :     virtual VclAbstractDialog* CreateScriptErrorDialog(
     154             :         vcl::Window* pParent, const css::uno::Any& rException ) = 0;
     155             : 
     156             :     virtual VclAbstractDialog*  CreateOptionsDialog(
     157             :         vcl::Window* pParent, const OUString& rExtensionId, const OUString& rApplicationContext ) = 0;
     158             : };
     159             : 
     160             : #endif
     161             : 
     162             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11