13334a7e6SAndrew Rist /************************************************************** 23334a7e6SAndrew Rist * 33334a7e6SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 43334a7e6SAndrew Rist * or more contributor license agreements. See the NOTICE file 53334a7e6SAndrew Rist * distributed with this work for additional information 63334a7e6SAndrew Rist * regarding copyright ownership. The ASF licenses this file 73334a7e6SAndrew Rist * to you under the Apache License, Version 2.0 (the 83334a7e6SAndrew Rist * "License"); you may not use this file except in compliance 93334a7e6SAndrew Rist * with the License. You may obtain a copy of the License at 103334a7e6SAndrew Rist * 113334a7e6SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 123334a7e6SAndrew Rist * 133334a7e6SAndrew Rist * Unless required by applicable law or agreed to in writing, 143334a7e6SAndrew Rist * software distributed under the License is distributed on an 153334a7e6SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 163334a7e6SAndrew Rist * KIND, either express or implied. See the License for the 173334a7e6SAndrew Rist * specific language governing permissions and limitations 183334a7e6SAndrew Rist * under the License. 193334a7e6SAndrew Rist * 203334a7e6SAndrew Rist *************************************************************/ 213334a7e6SAndrew Rist 22cdf0e10cSrcweir //======================================================================== 23cdf0e10cSrcweir // class SvxColorWindow_Impl -------------------------------------------------- 24cdf0e10cSrcweir //======================================================================== 25cdf0e10cSrcweir #ifndef __SVX_COLORWINDOW_HXX_ 26cdf0e10cSrcweir #define __SVX_COLORWINDOW_HXX_ 27cdf0e10cSrcweir 28cdf0e10cSrcweir #include <sfx2/tbxctrl.hxx> 29cdf0e10cSrcweir #include <svl/lstner.hxx> 30cdf0e10cSrcweir #include <rtl/ustring.hxx> 31cdf0e10cSrcweir #include <com/sun/star/frame/XFrame.hpp> 32*28bcfa49SArmin Le Grand #include <svx/SvxColorValueSet.hxx> 33cdf0e10cSrcweir 34cdf0e10cSrcweir //======================================================================== 35cdf0e10cSrcweir // class SvxColorWindow_Impl -------------------------------------------------- 36cdf0e10cSrcweir //======================================================================== 37cdf0e10cSrcweir 38cdf0e10cSrcweir class SvxColorWindow_Impl : public SfxPopupWindow 39cdf0e10cSrcweir { 40cdf0e10cSrcweir using FloatingWindow::StateChanged; 41cdf0e10cSrcweir 42cdf0e10cSrcweir private: 43cdf0e10cSrcweir const sal_uInt16 theSlotId; 44*28bcfa49SArmin Le Grand SvxColorValueSet aColorSet; 45cdf0e10cSrcweir rtl::OUString maCommand; 46cdf0e10cSrcweir 47cdf0e10cSrcweir #if _SOLAR__PRIVATE 48cdf0e10cSrcweir DECL_LINK( SelectHdl, void * ); 49cdf0e10cSrcweir #endif 50cdf0e10cSrcweir 51cdf0e10cSrcweir protected: 52cdf0e10cSrcweir virtual void Resize(); 53cdf0e10cSrcweir virtual sal_Bool Close(); 54cdf0e10cSrcweir 55cdf0e10cSrcweir public: 56cdf0e10cSrcweir SvxColorWindow_Impl( const rtl::OUString& rCommand, 57cdf0e10cSrcweir sal_uInt16 nSlotId, 58cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame, 59cdf0e10cSrcweir const String& rWndTitle, 60cdf0e10cSrcweir Window* pParentWindow ); 61cdf0e10cSrcweir ~SvxColorWindow_Impl(); 62cdf0e10cSrcweir void StartSelection(); 63cdf0e10cSrcweir 64cdf0e10cSrcweir virtual void KeyInput( const KeyEvent& rKEvt ); 65cdf0e10cSrcweir virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ); 66cdf0e10cSrcweir 67cdf0e10cSrcweir virtual SfxPopupWindow* Clone() const; 68cdf0e10cSrcweir }; 69cdf0e10cSrcweir 70cdf0e10cSrcweir #endif 71