LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/include/sfx2 - sfxdlg.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 8 0.0 %
Date: 2013-07-09 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 _SFX2_DIALOG_HXX
      20             : #define _SFX2_DIALOG_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             : class Window;
      41             : class String;
      42             : class SfxItemPool;
      43             : class SvObjectServerList;
      44             : class TransferableDataHelper;
      45             : struct TransferableObjectDescriptor;
      46             : 
      47             : #include <sfx2/tabdlg.hxx>
      48             : 
      49             : namespace sfx2
      50             : {
      51             :     class LinkManager;
      52             : }
      53             : 
      54             : namespace com { namespace sun { namespace star { namespace frame {
      55             :     class XModel;
      56             : } } } }
      57             : 
      58           0 : class SfxAbstractDialog : virtual public VclAbstractDialog
      59             : {
      60             : public:
      61             :     /** Get a set of items changed in the dialog.
      62             :       */
      63             :     virtual const SfxItemSet*   GetOutputItemSet() const = 0;
      64             :     virtual void                SetText( const OUString& rStr ) = 0;
      65             :     virtual OUString            GetText() const = 0;
      66             : };
      67             : 
      68           0 : class SfxAbstractTabDialog : virtual public SfxAbstractDialog
      69             : {
      70             : public:
      71             :     virtual void                SetCurPageId( sal_uInt16 nId ) = 0;
      72             :     virtual void                SetCurPageId( const OString &rName ) = 0;
      73             :     virtual const sal_uInt16*   GetInputRanges( const SfxItemPool& ) = 0;
      74             :     virtual void                SetInputSet( const SfxItemSet* pInSet ) = 0;
      75             : };
      76             : 
      77           0 : class SfxAbstractApplyTabDialog : virtual public SfxAbstractTabDialog
      78             : {
      79             : public:
      80             :     virtual void                SetApplyHdl( const Link& rLink ) = 0;
      81             : };
      82             : 
      83           0 : class SfxAbstractInsertObjectDialog : virtual public VclAbstractDialog
      84             : {
      85             : public:
      86             :     virtual com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject > GetObject()=0;
      87             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > GetIconIfIconified( OUString* pGraphicMediaType )=0;
      88             :     virtual sal_Bool IsCreateNew()=0;
      89             : };
      90             : 
      91           0 : class SfxAbstractPasteDialog : virtual public VclAbstractDialog
      92             : {
      93             : public:
      94             :     virtual void Insert( SotFormatStringId nFormat, const String & rFormatName ) = 0;
      95             :     virtual void SetObjName( const SvGlobalName & rClass, const String & rObjName ) = 0;
      96             :     virtual sal_uIntPtr GetFormat( const TransferableDataHelper& aHelper,
      97             :                         const DataFlavorExVector* pFormats=0,
      98             :                         const TransferableObjectDescriptor* pDesc=0 ) = 0;
      99             : };
     100             : 
     101           0 : class SfxAbstractLinksDialog : virtual public VclAbstractDialog
     102             : {
     103             : };
     104             : 
     105           0 : class AbstractScriptSelectorDialog : virtual public VclAbstractDialog
     106             : {
     107             : public:
     108             :     virtual String              GetScriptURL() const = 0;
     109             :     virtual void                SetRunLabel() = 0;
     110             : };
     111             : 
     112             : namespace com { namespace sun { namespace star { namespace frame { class XFrame; } } } }
     113             : 
     114           0 : class SFX2_DLLPUBLIC SfxAbstractDialogFactory : virtual public VclAbstractDialogFactory
     115             : {
     116             : public:
     117             :                                         virtual ~SfxAbstractDialogFactory();    // needed for export of vtable
     118             :     static SfxAbstractDialogFactory*    Create();
     119             :     virtual VclAbstractDialog*          CreateSfxDialog( Window* pParent, const SfxBindings& rBindings, sal_uInt32 nResId ) = 0;
     120             :     virtual VclAbstractDialog*          CreateFrameDialog( Window* pParent, const com::sun::star::uno::Reference< com::sun::star::frame::XFrame >& rFrame, sal_uInt32 nResId, const String& rParameter ) = 0;
     121             :     virtual SfxAbstractTabDialog*       CreateTabDialog( sal_uInt32 nResId,
     122             :                                             Window* pParent,
     123             :                                             const SfxItemSet* pAttrSet,
     124             :                                             SfxViewFrame* pViewFrame,
     125             :                                             bool bEditFmt=false,
     126             :                                             const String *pUserButtonText=0 ) = 0;
     127             :     virtual SfxAbstractTabDialog*       CreateTabDialog( sal_uInt32 nResId,
     128             :                                             Window* pParent,
     129             :                                             const SfxItemSet* pAttrSet,
     130             :                                             const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xViewFrame,
     131             :                                             bool bEditFmt=false,
     132             :                                             const String *pUserButtonText=0 ) = 0;
     133             :     virtual CreateTabPage               GetTabPageCreatorFunc( sal_uInt16 nId ) = 0;
     134             :     virtual GetTabPageRanges            GetTabPageRangesFunc( sal_uInt16 nId ) = 0;
     135             :     virtual SfxAbstractInsertObjectDialog* CreateInsertObjectDialog( Window* pParent, const OUString& rCommand,
     136             :             const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& xStor,
     137             :             const SvObjectServerList* pList = 0 )=0;
     138             :     virtual VclAbstractDialog*          CreateEditObjectDialog( Window* pParent, const OUString& rCommand,
     139             :             const com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject >& xObj )=0;
     140             :     virtual  SfxAbstractPasteDialog*         CreatePasteDialog( Window* pParent )=0;
     141             :     virtual  SfxAbstractLinksDialog*         CreateLinksDialog( Window* pParent, sfx2::LinkManager* pMgr, sal_Bool bHTML=sal_False, sfx2::SvBaseLink* p=0 )=0;
     142             :     virtual VclAbstractDialog *         CreateSvxScriptOrgDialog( Window* pParent,  const String& rLanguage ) = 0;
     143             : 
     144             :     virtual AbstractScriptSelectorDialog*
     145             :         CreateScriptSelectorDialog(
     146             :             Window* pParent,
     147             :             sal_Bool bShowSlots,
     148             :             const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _rxFrame
     149             :         ) = 0;
     150             : 
     151             :     virtual VclAbstractDialog* CreateScriptErrorDialog(
     152             :         Window* pParent, com::sun::star::uno::Any aException ) = 0;
     153             : 
     154             :     virtual VclAbstractDialog*  CreateOptionsDialog(
     155             :         Window* pParent, const OUString& rExtensionId, const OUString& rApplicationContext ) = 0;
     156             : };
     157             : 
     158             : #endif
     159             : 
     160             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10