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

Generated by: LCOV version 1.10