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

Generated by: LCOV version 1.10