LCOV - code coverage report
Current view: top level - sfx2/inc/sfx2 - sfxdlg.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 3 0.0 %
Date: 2012-08-25 Functions: 0 6 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 6 0.0 %

           Branch data     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 : 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 : 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                 :            : class SfxAbstractInsertObjectDialog : public VclAbstractDialog
      75                 :            : {
      76                 :            : public:
      77                 :            :     virtual com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject > GetObject()=0;
      78                 :            :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > GetIconIfIconified( ::rtl::OUString* pGraphicMediaType )=0;
      79                 :            :     virtual sal_Bool IsCreateNew()=0;
      80                 :            : };
      81                 :            : 
      82                 :            : class SfxAbstractPasteDialog : public VclAbstractDialog
      83                 :            : {
      84                 :            : public:
      85                 :            :     virtual void Insert( SotFormatStringId nFormat, const String & rFormatName ) = 0;
      86                 :            :     virtual void SetObjName( const SvGlobalName & rClass, const String & rObjName ) = 0;
      87                 :            :     virtual sal_uIntPtr GetFormat( const TransferableDataHelper& aHelper,
      88                 :            :                         const DataFlavorExVector* pFormats=0,
      89                 :            :                         const TransferableObjectDescriptor* pDesc=0 ) = 0;
      90                 :            : };
      91                 :            : 
      92                 :            : class SfxAbstractLinksDialog : public VclAbstractDialog
      93                 :            : {
      94                 :            : };
      95                 :            : 
      96         [ #  # ]:          0 : class AbstractScriptSelectorDialog : public VclAbstractDialog
      97                 :            : {
      98                 :            : public:
      99                 :            :     virtual String              GetScriptURL() const = 0;
     100                 :            :     virtual void                SetRunLabel() = 0;
     101                 :            : };
     102                 :            : 
     103                 :            : namespace com { namespace sun { namespace star { namespace frame { class XFrame; } } } }
     104                 :            : 
     105                 :            : class SFX2_DLLPUBLIC SfxAbstractDialogFactory : virtual public VclAbstractDialogFactory
     106                 :            : {
     107                 :            : public:
     108                 :            :                                         virtual ~SfxAbstractDialogFactory();    // needed for export of vtable
     109                 :            :     static SfxAbstractDialogFactory*    Create();
     110                 :            :     virtual VclAbstractDialog*          CreateSfxDialog( Window* pParent, const SfxBindings& rBindings, sal_uInt32 nResId ) = 0;
     111                 :            :     virtual VclAbstractDialog*          CreateFrameDialog( Window* pParent, const com::sun::star::uno::Reference< com::sun::star::frame::XFrame >& rFrame, sal_uInt32 nResId, const String& rParameter ) = 0;
     112                 :            :     virtual SfxAbstractTabDialog*       CreateTabDialog( sal_uInt32 nResId,
     113                 :            :                                             Window* pParent,
     114                 :            :                                             const SfxItemSet* pAttrSet,
     115                 :            :                                             SfxViewFrame* pViewFrame,
     116                 :            :                                             bool bEditFmt=false,
     117                 :            :                                             const String *pUserButtonText=0 ) = 0;
     118                 :            :     virtual SfxAbstractTabDialog*       CreateTabDialog( sal_uInt32 nResId,
     119                 :            :                                             Window* pParent,
     120                 :            :                                             const SfxItemSet* pAttrSet,
     121                 :            :                                             const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xViewFrame,
     122                 :            :                                             bool bEditFmt=false,
     123                 :            :                                             const String *pUserButtonText=0 ) = 0;
     124                 :            :     virtual CreateTabPage               GetTabPageCreatorFunc( sal_uInt16 nId ) = 0;
     125                 :            :     virtual GetTabPageRanges            GetTabPageRangesFunc( sal_uInt16 nId ) = 0;
     126                 :            :     virtual SfxAbstractInsertObjectDialog* CreateInsertObjectDialog( Window* pParent, const rtl::OUString& rCommand,
     127                 :            :             const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& xStor,
     128                 :            :             const SvObjectServerList* pList = 0 )=0;
     129                 :            :     virtual VclAbstractDialog*          CreateEditObjectDialog( Window* pParent, const rtl::OUString& rCommand,
     130                 :            :             const com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject >& xObj )=0;
     131                 :            :     virtual  SfxAbstractPasteDialog*         CreatePasteDialog( Window* pParent )=0;
     132                 :            :     virtual  SfxAbstractLinksDialog*         CreateLinksDialog( Window* pParent, sfx2::LinkManager* pMgr, sal_Bool bHTML=sal_False, sfx2::SvBaseLink* p=0 )=0;
     133                 :            :     virtual VclAbstractDialog *         CreateSvxScriptOrgDialog( Window* pParent,  const String& rLanguage ) = 0;
     134                 :            : 
     135                 :            :     virtual AbstractScriptSelectorDialog*
     136                 :            :         CreateScriptSelectorDialog(
     137                 :            :             Window* pParent,
     138                 :            :             sal_Bool bShowSlots,
     139                 :            :             const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _rxFrame
     140                 :            :         ) = 0;
     141                 :            : 
     142                 :            :     virtual VclAbstractDialog* CreateScriptErrorDialog(
     143                 :            :         Window* pParent, com::sun::star::uno::Any aException ) = 0;
     144                 :            : 
     145                 :            :     virtual VclAbstractDialog*  CreateOptionsDialog(
     146                 :            :         Window* pParent, const rtl::OUString& rExtensionId, const rtl::OUString& rApplicationContext ) = 0;
     147                 :            : };
     148                 :            : 
     149                 :            : #endif
     150                 :            : 
     151                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10