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

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : #ifndef _SVX_INSDLG_HXX
      29                 :            : #define _SVX_INSDLG_HXX
      30                 :            : 
      31                 :            : #include <com/sun/star/uno/Reference.h>
      32                 :            : #include <com/sun/star/embed/XEmbeddedObject.hpp>
      33                 :            : #include <com/sun/star/embed/XStorage.hpp>
      34                 :            : 
      35                 :            : #include <svtools/insdlg.hxx>
      36                 :            : #include <vcl/dialog.hxx>
      37                 :            : #include <vcl/fixed.hxx>
      38                 :            : #include <vcl/button.hxx>
      39                 :            : #include <vcl/field.hxx>
      40                 :            : #include <vcl/edit.hxx>
      41                 :            : #include <vcl/lstbox.hxx>
      42                 :            : #include <svtools/svmedit.hxx>  // MultiLineEdit
      43                 :            : #include <comphelper/embeddedobjectcontainer.hxx>
      44                 :            : 
      45                 :            : class INetURLObject;
      46                 :            : 
      47 [ #  # ][ #  # ]:          0 : class InsertObjectDialog_Impl : public ModalDialog
      48                 :            : {
      49                 :            : protected:
      50                 :            :     com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject > m_xObj;
      51                 :            :     const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& m_xStorage;
      52                 :            :     comphelper::EmbeddedObjectContainer aCnt;
      53                 :            : 
      54                 :            :     InsertObjectDialog_Impl( Window * pParent, const ResId & rResId, const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& xStorage );
      55                 :            : public:
      56                 :          0 :     com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject > GetObject()
      57                 :          0 :                         { return m_xObj; }
      58                 :            :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > GetIconIfIconified( ::rtl::OUString* pGraphicMediaType );
      59                 :            :     virtual sal_Bool IsCreateNew() const;
      60                 :            : };
      61                 :            : 
      62 [ #  # ][ #  # ]:          0 : class SvInsertOleDlg : public InsertObjectDialog_Impl
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
      63                 :            : {
      64                 :            :     RadioButton aRbNewObject;
      65                 :            :     RadioButton aRbObjectFromfile;
      66                 :            :     FixedLine aGbObject;
      67                 :            :     ListBox aLbObjecttype;
      68                 :            :     Edit aEdFilepath;
      69                 :            :     PushButton aBtnFilepath;
      70                 :            :     CheckBox aCbFilelink;
      71                 :            :     OKButton aOKButton1;
      72                 :            :     CancelButton aCancelButton1;
      73                 :            :     HelpButton aHelpButton1;
      74                 :            :     String aStrFile;
      75                 :            :     String      _aOldStr;
      76                 :            :     const SvObjectServerList* m_pServers;
      77                 :            : 
      78                 :            :     ::com::sun::star::uno::Sequence< sal_Int8 > m_aIconMetaFile;
      79                 :            :     ::rtl::OUString m_aIconMediaType;
      80                 :            : 
      81                 :            :     DECL_LINK(          DoubleClickHdl, void* );
      82                 :            :     DECL_LINK(BrowseHdl, void *);
      83                 :            :     DECL_LINK(RadioHdl, void *);
      84                 :            :     void                SelectDefault();
      85                 :          0 :     ListBox&            GetObjectTypes()
      86                 :          0 :                         { return aLbObjecttype; }
      87                 :          0 :     String              GetFilePath() const { return aEdFilepath.GetText(); }
      88                 :          0 :     sal_Bool                IsLinked() const    { return aCbFilelink.IsChecked(); }
      89                 :          0 :     sal_Bool                IsCreateNew() const { return aRbNewObject.IsChecked(); }
      90                 :            : 
      91                 :            : public:
      92                 :            :                         SvInsertOleDlg( Window* pParent,
      93                 :            :                             const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& xStorage,
      94                 :            :                             const SvObjectServerList* pServers = NULL );
      95                 :            :     virtual short       Execute();
      96                 :            : 
      97                 :            :     /// get replacement for the iconified embedded object and the mediatype of the replacement
      98                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > GetIconIfIconified( ::rtl::OUString* pGraphicMediaType );
      99                 :            : };
     100                 :            : 
     101                 :            : class SvInsertPlugInDialog : public InsertObjectDialog_Impl
     102                 :            : {
     103                 :            : private:
     104                 :            :     FixedLine aGbFileurl;
     105                 :            :     Edit aEdFileurl;
     106                 :            :     PushButton aBtnFileurl;
     107                 :            :     FixedLine aGbPluginsOptions;
     108                 :            :     MultiLineEdit aEdPluginsOptions;
     109                 :            :     OKButton aOKButton1;
     110                 :            :     CancelButton aCancelButton1;
     111                 :            :     HelpButton aHelpButton1;
     112                 :            :     INetURLObject*      m_pURL;
     113                 :            :     String              m_aCommands;
     114                 :            : 
     115                 :            :     DECL_LINK(BrowseHdl, void *);
     116                 :          0 :     String              GetPlugInFile() const { return aEdFileurl.GetText(); }
     117                 :          0 :     String              GetPlugInOptions() const { return aEdPluginsOptions.GetText(); }
     118                 :            : 
     119                 :            : public:
     120                 :            :                         SvInsertPlugInDialog( Window* pParent,
     121                 :            :                             const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& xStorage );
     122                 :            : 
     123                 :            :                         ~SvInsertPlugInDialog();
     124                 :            : 
     125                 :            :     virtual short       Execute();
     126                 :            : };
     127                 :            : 
     128 [ #  # ][ #  # ]:          0 : class SfxInsertFloatingFrameDialog : public InsertObjectDialog_Impl
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
                 [ #  # ]
     129                 :            : {
     130                 :            : private:
     131                 :            :     FixedText               aFTName;
     132                 :            :     Edit                    aEDName;
     133                 :            :     FixedText               aFTURL;
     134                 :            :     Edit                    aEDURL;
     135                 :            :     PushButton              aBTOpen;
     136                 :            : 
     137                 :            :     FixedLine               aFLScrolling;
     138                 :            :     RadioButton             aRBScrollingOn;
     139                 :            :     RadioButton             aRBScrollingOff;
     140                 :            :     RadioButton             aRBScrollingAuto;
     141                 :            : 
     142                 :            : 
     143                 :            :     FixedLine               aFLSepLeft;
     144                 :            :     FixedLine               aFLFrameBorder;
     145                 :            :     RadioButton             aRBFrameBorderOn;
     146                 :            :     RadioButton             aRBFrameBorderOff;
     147                 :            : 
     148                 :            :     FixedLine               aFLSepRight;
     149                 :            :     FixedLine               aFLMargin;
     150                 :            :     FixedText               aFTMarginWidth;
     151                 :            :     NumericField            aNMMarginWidth;
     152                 :            :     CheckBox                aCBMarginWidthDefault;
     153                 :            :     FixedText               aFTMarginHeight;
     154                 :            :     NumericField            aNMMarginHeight;
     155                 :            :     CheckBox                aCBMarginHeightDefault;
     156                 :            : 
     157                 :            :     OKButton aOKButton1;
     158                 :            :     CancelButton aCancelButton1;
     159                 :            :     HelpButton aHelpButton1;
     160                 :            : 
     161                 :            :     DECL_STATIC_LINK(       SfxInsertFloatingFrameDialog, OpenHdl, PushButton* );
     162                 :            :     DECL_STATIC_LINK(       SfxInsertFloatingFrameDialog, CheckHdl, CheckBox* );
     163                 :            : 
     164                 :            : public:
     165                 :            :                             SfxInsertFloatingFrameDialog( Window *pParent,
     166                 :            :                                 const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& xStorage );
     167                 :            :                             SfxInsertFloatingFrameDialog( Window* pParent,
     168                 :            :                                 const com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject >& xObj );
     169                 :            :     virtual short           Execute();
     170                 :            : };
     171                 :            : 
     172                 :            : #endif // _SVX_INSDLG_HXX
     173                 :            : 
     174                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10