LCOV - code coverage report
Current view: top level - libreoffice/sc/source/ui/inc - tphfedit.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 3 0.0 %
Date: 2012-12-27 Functions: 0 4 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             : 
      20             : #ifndef SC_TPHFEDIT_HXX
      21             : #define SC_TPHFEDIT_HXX
      22             : 
      23             : #include <sfx2/tabdlg.hxx>
      24             : #include <svx/pageitem.hxx>
      25             : #include <svtools/stdctrl.hxx>
      26             : #include <vcl/group.hxx>
      27             : #include <vcl/lstbox.hxx>
      28             : #include <vcl/timer.hxx>
      29             : #include <vcl/virdev.hxx>
      30             : #include "scdllapi.h"
      31             : #include "scitems.hxx"          // due to enum SvxNumType
      32             : #include "popmenu.hxx"
      33             : #include <com/sun/star/accessibility/XAccessible.hpp>
      34             : #include <cppuhelper/weakref.hxx>
      35             : 
      36             : //===================================================================
      37             : 
      38             : class ScHeaderEditEngine;
      39             : class ScPatternAttr;
      40             : class EditView;
      41             : class EditTextObject;
      42             : class SvxFieldItem;
      43             : class ScAccessibleEditObject;
      44             : class ScEditWindow;
      45             : 
      46             : SC_DLLPUBLIC ScEditWindow* GetScEditWindow ();
      47             : 
      48             : enum ScEditWindowLocation
      49             : {
      50             :     Left,
      51             :     Center,
      52             :     Right
      53             : };
      54             : 
      55             : class SC_DLLPUBLIC ScEditWindow : public Control
      56             : {
      57             : public:
      58             :             ScEditWindow( Window* pParent, const ResId& rResId, ScEditWindowLocation eLoc );
      59             :             ~ScEditWindow();
      60             : 
      61             :     using Control::SetFont;
      62             :     void            SetFont( const ScPatternAttr& rPattern );
      63             :     using Control::SetText;
      64             :     void            SetText( const EditTextObject& rTextObject );
      65             :     EditTextObject* CreateTextObject();
      66             :     void            SetCharAttriutes();
      67             : 
      68             :     void            InsertField( const SvxFieldItem& rFld );
      69             : 
      70             :     void            SetNumType(SvxNumType eNumType);
      71             : 
      72             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > CreateAccessible();
      73             : 
      74           0 :     inline ScHeaderEditEngine*  GetEditEngine() const {return pEdEngine;}
      75             : protected:
      76             :     virtual void    Paint( const Rectangle& rRec );
      77             :     virtual void    MouseMove( const MouseEvent& rMEvt );
      78             :     virtual void    MouseButtonDown( const MouseEvent& rMEvt );
      79             :     virtual void    MouseButtonUp( const MouseEvent& rMEvt );
      80             :     virtual void    KeyInput( const KeyEvent& rKEvt );
      81             :     virtual void    Command( const CommandEvent& rCEvt );
      82             :     virtual void    GetFocus();
      83             :     virtual void    LoseFocus();
      84             : 
      85             : private:
      86             :     ScHeaderEditEngine* pEdEngine;
      87             :     EditView*           pEdView;
      88             :     ScEditWindowLocation eLocation;
      89             :     bool mbRTL;
      90             : 
      91             :     com::sun::star::uno::WeakReference< ::com::sun::star::accessibility::XAccessible > xAcc;
      92             :     ScAccessibleEditObject* pAcc;
      93             : };
      94             : 
      95             : //===================================================================
      96           0 : class SC_DLLPUBLIC ScExtIButton : public ImageButton
      97             : {
      98             : private:
      99             : 
     100             :     Timer           aTimer;
     101             :     ScPopupMenu*    pPopupMenu;
     102             :     Link            aMLink;
     103             :     sal_uInt16          nSelected;
     104             : 
     105             :     SC_DLLPRIVATE  DECL_LINK( TimerHdl, void*);
     106             : 
     107             : protected:
     108             : 
     109             :     virtual void    MouseButtonDown( const MouseEvent& rMEvt );
     110             :     virtual void    MouseButtonUp( const MouseEvent& rMEvt);
     111             :     virtual void    Click();
     112             : 
     113             :     virtual void    StartPopup();
     114             : 
     115             : public:
     116             : 
     117             :     ScExtIButton(Window* pParent, const ResId& rResId );
     118             : 
     119             :     void            SetPopupMenu(ScPopupMenu* pPopUp);
     120             : 
     121             :     sal_uInt16          GetSelected();
     122             : 
     123           0 :     void            SetMenuHdl( const Link& rLink ) { aMLink = rLink; }
     124             :     const Link&     GetMenuHdl() const { return aMLink; }
     125             : 
     126             :     virtual long    PreNotify( NotifyEvent& rNEvt );
     127             : };
     128             : 
     129             : #endif // SC_TPHFEDIT_HXX
     130             : 
     131             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10