LCOV - code coverage report
Current view: top level - svx/source/tbxctrls - colorwindow.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 1 0.0 %
Date: 2014-11-03 Functions: 0 1 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 INCLUDED_SVX_SOURCE_TBXCTRLS_COLORWINDOW_HXX
      21             : #define INCLUDED_SVX_SOURCE_TBXCTRLS_COLORWINDOW_HXX
      22             : 
      23             : #include <sfx2/tbxctrl.hxx>
      24             : #include <svtools/valueset.hxx>
      25             : #include <svl/lstner.hxx>
      26             : #include <rtl/ustring.hxx>
      27             : #include <com/sun/star/frame/XFrame.hpp>
      28             : #include <svx/SvxColorValueSet.hxx>
      29             : #include <svx/PaletteManager.hxx>
      30             : #include <vcl/lstbox.hxx>
      31             : 
      32             : class SvxColorWindow_Impl : public SfxPopupWindow
      33             : {
      34             :     using FloatingWindow::StateChanged;
      35             : 
      36             : private:
      37             :     const sal_uInt16    theSlotId;
      38             :     SvxColorValueSet*   mpColorSet;
      39             :     SvxColorValueSet*   mpRecentColorSet;
      40             : 
      41             :     ListBox*            mpPaletteListBox;
      42             :     PushButton*         mpButtonAutoColor;
      43             :     PushButton*         mpButtonPicker;
      44             :     FixedLine*          mpAutomaticSeparator;
      45             :     OUString            maCommand;
      46             :     Link                maSelectedLink;
      47             : 
      48             :     PaletteManager&     mrPaletteManager;
      49             : 
      50             :     DECL_LINK( SelectHdl, SvxColorValueSet* );
      51             :     DECL_LINK( SelectPaletteHdl, void *);
      52             :     DECL_LINK( AutoColorClickHdl, void * );
      53             :     DECL_LINK( OpenPickerClickHdl, void * );
      54             : 
      55             : protected:
      56             :     virtual void    Resize() SAL_OVERRIDE;
      57             :     virtual bool    Close() SAL_OVERRIDE;
      58             : 
      59             : public:
      60             :     SvxColorWindow_Impl( const OUString& rCommand,
      61             :                          PaletteManager& rPaletteManager,
      62             :                          sal_uInt16 nSlotId,
      63             :                          const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame,
      64             :                          const OUString& rWndTitle,
      65             :                          vcl::Window* pParentWindow);
      66             :     virtual ~SvxColorWindow_Impl();
      67             :     void                StartSelection();
      68             : 
      69             :     virtual void        KeyInput( const KeyEvent& rKEvt ) SAL_OVERRIDE;
      70             :     virtual void        StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ) SAL_OVERRIDE;
      71             : 
      72             :     virtual SfxPopupWindow* Clone() const SAL_OVERRIDE;
      73           0 :     void SetSelectedHdl( const Link& rLink ) { maSelectedLink = rLink; }
      74             : };
      75             : 
      76             : #endif
      77             : 
      78             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10