LCOV - code coverage report
Current view: top level - sw/source/ui/inc - unotools.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 8 0.0 %
Date: 2012-08-25 Functions: 0 9 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 4 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 _UNOTOOLS_HXX
      29                 :            : #define _UNOTOOLS_HXX
      30                 :            : 
      31                 :            : 
      32                 :            : #include <vcl/dialog.hxx>
      33                 :            : #include <vcl/fixed.hxx>
      34                 :            : #include <vcl/edit.hxx>
      35                 :            : #include <vcl/button.hxx>
      36                 :            : #include <actctrl.hxx>
      37                 :            : #include <com/sun/star/frame/XController.hpp>
      38                 :            : #include <com/sun/star/text/XTextCursor.hpp>
      39                 :            : #include <com/sun/star/container/XNameAccess.hpp>
      40                 :            : #include <com/sun/star/awt/XControl.hpp>
      41                 :            : #include <com/sun/star/container/XNamed.hpp>
      42                 :            : #include <tools/resary.hxx>
      43                 :            : #include "swdllapi.h"
      44                 :            : 
      45                 :            : class SwOneExampleFrame;
      46                 :            : 
      47         [ #  # ]:          0 : class SwFrmCtrlWindow : public Window
      48                 :            : {
      49                 :            :     SwOneExampleFrame*  pExampleFrame;
      50                 :            : public:
      51                 :            :     SwFrmCtrlWindow(Window* pParent, WinBits nBits, SwOneExampleFrame*  pFrame);
      52                 :            : 
      53                 :            :     virtual void    Command( const CommandEvent& rCEvt );
      54                 :            : };
      55                 :            : 
      56         [ #  # ]:          0 : class MenuResource : public Resource
      57                 :            : {
      58                 :            :     ResStringArray      aMenuArray;
      59                 :            : 
      60                 :            : public:
      61                 :            :     MenuResource(const ResId& rResId);
      62                 :            : 
      63                 :          0 :     ResStringArray& GetMenuArray() {return aMenuArray;}
      64                 :            : };
      65                 :            : 
      66                 :            : #define EX_SHOW_ONLINE_LAYOUT   0x001
      67                 :            : 
      68                 :            : // hard zoom value
      69                 :            : #define EX_SHOW_BUSINESS_CARDS  0x02
      70                 :            : //don't modify page size
      71                 :            : #define EX_SHOW_DEFAULT_PAGE    0x04
      72                 :            : 
      73                 :            : class SwView;
      74                 :            : 
      75                 :            : class SW_DLLPUBLIC SwOneExampleFrame
      76                 :            : {
      77                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl >         _xControl;
      78                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >         _xModel;
      79                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::frame::XController >    _xController;
      80                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextCursor >     _xCursor;
      81                 :            : 
      82                 :            :     SwFrmCtrlWindow aTopWindow;
      83                 :            :     Window&         rWindow;
      84                 :            :     Timer           aLoadedTimer;
      85                 :            :     Link            aInitializedLink;
      86                 :            : 
      87                 :            :     MenuResource    aMenuRes;
      88                 :            :     String          sArgumentURL;
      89                 :            : 
      90                 :            :     SwView*         pModuleView;
      91                 :            : 
      92                 :            :     sal_uInt32          nStyleFlags;
      93                 :            : 
      94                 :            :     sal_Bool            bIsInitialized;
      95                 :            :     sal_Bool            bServiceAvailable;
      96                 :            : 
      97                 :            :     static  sal_Bool    bShowServiceNotAvailableMessage;
      98                 :            : 
      99                 :            :     SW_DLLPRIVATE DECL_LINK( TimeoutHdl, Timer* );
     100                 :            :     SW_DLLPRIVATE DECL_LINK( PopupHdl, Menu* );
     101                 :            : 
     102                 :            :     SW_DLLPRIVATE void  CreateControl();
     103                 :            :     SW_DLLPRIVATE void  DisposeControl();
     104                 :            : 
     105                 :            : public:
     106                 :            :     SwOneExampleFrame(Window& rWin,
     107                 :            :                     sal_uInt32 nStyleFlags = EX_SHOW_ONLINE_LAYOUT,
     108                 :            :                     const Link* pInitalizedLink = 0,
     109                 :            :                     String* pURL = 0);
     110                 :            :     ~SwOneExampleFrame();
     111                 :            : 
     112                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl > &       GetControl()    {return _xControl; }
     113                 :          0 :     ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > &       GetModel()      {return _xModel;}
     114                 :          0 :     ::com::sun::star::uno::Reference< ::com::sun::star::frame::XController > &  GetController() {return _xController;}
     115                 :          0 :     ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextCursor > &   GetTextCursor() {return _xCursor;}
     116                 :            : 
     117                 :            :     void ClearDocument( sal_Bool bStartTimer = sal_False );
     118                 :            : 
     119                 :          0 :     sal_Bool IsInitialized() const {return bIsInitialized;}
     120                 :          0 :     sal_Bool IsServiceAvailable() const {return bServiceAvailable;}
     121                 :            : 
     122                 :            :     void CreatePopup(const Point& rPt);
     123                 :            : 
     124                 :            :     static void     CreateErrorMessage(Window* pParent);
     125                 :            : };
     126                 :            : 
     127                 :            : #endif
     128                 :            : 
     129                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10