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

Generated by: LCOV version 1.10