LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/sc/source/ui/inc - dwfunctr.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2013-07-09 Functions: 0 2 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 _SC_DWFUNCTR_HXX
      20             : #define _SC_DWFUNCTR_HXX
      21             : 
      22             : #include <sfx2/childwin.hxx>
      23             : #include <sfx2/dockwin.hxx>
      24             : #include <svl/lstner.hxx>
      25             : #include <svtools/stdctrl.hxx>
      26             : 
      27             : #include <vcl/lstbox.hxx>
      28             : #include <vcl/button.hxx>
      29             : #include <vcl/combobox.hxx>
      30             : #include "anyrefdg.hxx"
      31             : #include "global.hxx"       // ScAddress
      32             : #include "privsplt.hxx"
      33             : #include "funcdesc.hxx"
      34             : 
      35             : /** Derivation of SfxChildWindow as "containers" for Controller */
      36           0 : class ScFunctionChildWindow : public SfxChildWindow
      37             : {
      38             :  public:
      39             :     ScFunctionChildWindow( Window*, sal_uInt16, SfxBindings*,
      40             :                             SfxChildWinInfo* );
      41             : 
      42             :     SFX_DECL_CHILDWINDOW_WITHID(ScFunctionChildWindow);
      43             : };
      44             : 
      45             : class ScFunctionDockWin : public SfxDockingWindow, public SfxListener
      46             : {
      47             : 
      48             : private:
      49             :     Timer               aTimer;
      50             :     ScPrivatSplit       aPrivatSplit;
      51             :     ListBox             aCatBox;
      52             :     ListBox             aFuncList;
      53             :     ListBox             aDDFuncList;
      54             :     ListBox*            pAllFuncList;
      55             : 
      56             :     SfxChildAlignment   eSfxNewAlignment;
      57             :     SfxChildAlignment   eSfxOldAlignment;
      58             :     ImageButton         aInsertButton;
      59             :     FixedText           aFiFuncDesc;
      60             :     sal_uInt16              nLeftSlot;
      61             :     sal_uInt16              nRightSlot;
      62             :     sal_uLong               nMinWidth;
      63             :     sal_uLong               nMinHeight;
      64             :     Size                aOldSize;
      65             :     sal_Bool                bSizeFlag;
      66             :     sal_Bool                bInit;
      67             :     short               nDockMode;
      68             :     Point               aSplitterInitPos;
      69             :     const ScFuncDesc*   pFuncDesc;
      70             :     sal_uInt16              nArgs;
      71             : 
      72             :     ::std::vector< const formula::IFunctionDescription*> aLRUList;
      73             : 
      74             :     void            UpdateFunctionList();
      75             :     void            UpdateLRUList();
      76             :     void            DoEnter(sal_Bool bOk); //@@ ???
      77             :     void            SetDescription();
      78             :     void            SetLeftRightSize();
      79             :     void            SetTopBottonSize();
      80             :     void            SetMyWidthLeRi(Size &aNewSize);
      81             :     void            SetMyHeightLeRi(Size &aNewSize);
      82             :     void            SetMyWidthToBo(Size &aNewSize);
      83             :     void            SetMyHeightToBo(Size &aNewSize);
      84             :     void            UseSplitterInitPos();
      85             : 
      86             :                     DECL_LINK( SetSelectionHdl, void* );
      87             :                     DECL_LINK( SelHdl, ListBox* );
      88             :                     DECL_LINK(SetSplitHdl,ScPrivatSplit*);
      89             :                     DECL_LINK( TimerHdl, void*);
      90             : 
      91             : protected:
      92             : 
      93             :     virtual sal_Bool    Close();
      94             :     virtual void    Resize();
      95             :     virtual void    Resizing( Size& rSize );
      96             :     virtual void    SetSize();
      97             :     virtual void    ToggleFloatingMode();
      98             :     virtual void    StateChanged( StateChangedType nStateChange );
      99             : 
     100             : 
     101             :     virtual SfxChildAlignment CheckAlignment(SfxChildAlignment,
     102             :                                 SfxChildAlignment eAlign);
     103             : 
     104             : public:
     105             :                     ScFunctionDockWin(  SfxBindings* pBindings,
     106             :                                         SfxChildWindow *pCW,
     107             :                                         Window* pParent,
     108             :                                         const ResId& rResId );
     109             : 
     110             :                     ~ScFunctionDockWin();
     111             : 
     112             :     using SfxDockingWindow::Notify;
     113             :     virtual void    Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
     114             : 
     115             :     void            SetSlotIDs( sal_uInt16 nLeft, sal_uInt16 nRight )
     116             :                         { nLeftSlot = nLeft; nRightSlot = nRight; }
     117             : 
     118             :     void            InitLRUList();
     119             : 
     120             :     void            Initialize (SfxChildWinInfo* pInfo);
     121             :     virtual void    FillInfo(SfxChildWinInfo&) const;
     122             : };
     123             : 
     124             : #endif
     125             : 
     126             : 
     127             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10