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