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

Generated by: LCOV version 1.10