1*3334a7e6SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*3334a7e6SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*3334a7e6SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*3334a7e6SAndrew Rist * distributed with this work for additional information 6*3334a7e6SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*3334a7e6SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*3334a7e6SAndrew Rist * "License"); you may not use this file except in compliance 9*3334a7e6SAndrew Rist * with the License. You may obtain a copy of the License at 10*3334a7e6SAndrew Rist * 11*3334a7e6SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*3334a7e6SAndrew Rist * 13*3334a7e6SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*3334a7e6SAndrew Rist * software distributed under the License is distributed on an 15*3334a7e6SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*3334a7e6SAndrew Rist * KIND, either express or implied. See the License for the 17*3334a7e6SAndrew Rist * specific language governing permissions and limitations 18*3334a7e6SAndrew Rist * under the License. 19*3334a7e6SAndrew Rist * 20*3334a7e6SAndrew Rist *************************************************************/ 21*3334a7e6SAndrew Rist 22*3334a7e6SAndrew Rist 23cdf0e10cSrcweir #ifndef _SVX_TBXFORM_HXX 24cdf0e10cSrcweir #define _SVX_TBXFORM_HXX 25cdf0e10cSrcweir 26cdf0e10cSrcweir #include <sfx2/tbxctrl.hxx> 27cdf0e10cSrcweir #include <vcl/field.hxx> 28cdf0e10cSrcweir #include <vcl/dialog.hxx> 29cdf0e10cSrcweir 30cdf0e10cSrcweir #ifndef _SV_BUTTON_HXX //autogen 31cdf0e10cSrcweir #include <vcl/button.hxx> 32cdf0e10cSrcweir #endif 33cdf0e10cSrcweir 34cdf0e10cSrcweir //======================================================================== 35cdf0e10cSrcweir class SvxFmAbsRecWin : public NumericField 36cdf0e10cSrcweir { 37cdf0e10cSrcweir SfxToolBoxControl* m_pController; 38cdf0e10cSrcweir // for invalidating our content whe losing the focus 39cdf0e10cSrcweir public: 40cdf0e10cSrcweir SvxFmAbsRecWin( Window* _pParent, SfxToolBoxControl* _pController ); 41cdf0e10cSrcweir ~SvxFmAbsRecWin(); 42cdf0e10cSrcweir 43cdf0e10cSrcweir virtual void KeyInput( const KeyEvent& rKeyEvt ); 44cdf0e10cSrcweir virtual void LoseFocus(); 45cdf0e10cSrcweir 46cdf0e10cSrcweir protected: 47cdf0e10cSrcweir virtual void FirePosition( sal_Bool _bForce ); 48cdf0e10cSrcweir }; 49cdf0e10cSrcweir 50cdf0e10cSrcweir 51cdf0e10cSrcweir //======================================================================== 52cdf0e10cSrcweir class SvxFmConfigWin : public SfxPopupWindow 53cdf0e10cSrcweir { 54cdf0e10cSrcweir private: 55cdf0e10cSrcweir DECL_LINK( TbxSelectHdl, ToolBox* ); 56cdf0e10cSrcweir 57cdf0e10cSrcweir public: 58cdf0e10cSrcweir SvxFmConfigWin( sal_uInt16 nId, ResId aRIdWin, ResId aRIdTbx ); 59cdf0e10cSrcweir ~SvxFmConfigWin(); 60cdf0e10cSrcweir 61cdf0e10cSrcweir void Update(); 62cdf0e10cSrcweir virtual void PopupModeEnd(); 63cdf0e10cSrcweir }; 64cdf0e10cSrcweir 65cdf0e10cSrcweir 66cdf0e10cSrcweir //======================================================================== 67cdf0e10cSrcweir class SvxFmTbxCtlConfig : public SfxToolBoxControl 68cdf0e10cSrcweir { 69cdf0e10cSrcweir private: 70cdf0e10cSrcweir sal_uInt16 nLastSlot; 71cdf0e10cSrcweir 72cdf0e10cSrcweir protected: 73cdf0e10cSrcweir using SfxToolBoxControl::Select; 74cdf0e10cSrcweir 75cdf0e10cSrcweir public: 76cdf0e10cSrcweir SFX_DECL_TOOLBOX_CONTROL(); 77cdf0e10cSrcweir 78cdf0e10cSrcweir SvxFmTbxCtlConfig( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); ~SvxFmTbxCtlConfig()79cdf0e10cSrcweir ~SvxFmTbxCtlConfig() {} 80cdf0e10cSrcweir 81cdf0e10cSrcweir virtual void Select( sal_uInt16 nModifier ); 82cdf0e10cSrcweir virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, 83cdf0e10cSrcweir const SfxPoolItem* pState ); 84cdf0e10cSrcweir virtual SfxPopupWindowType GetPopupWindowType() const; 85cdf0e10cSrcweir virtual SfxPopupWindow* CreatePopupWindow(); 86cdf0e10cSrcweir }; 87cdf0e10cSrcweir 88cdf0e10cSrcweir //======================================================================== 89cdf0e10cSrcweir class FixedText; 90cdf0e10cSrcweir class SvxFmTbxCtlAbsRec : public SfxToolBoxControl 91cdf0e10cSrcweir { 92cdf0e10cSrcweir public: 93cdf0e10cSrcweir SFX_DECL_TOOLBOX_CONTROL(); 94cdf0e10cSrcweir 95cdf0e10cSrcweir SvxFmTbxCtlAbsRec( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); 96cdf0e10cSrcweir ~SvxFmTbxCtlAbsRec(); 97cdf0e10cSrcweir 98cdf0e10cSrcweir virtual Window* CreateItemWindow( Window* pParent ); 99cdf0e10cSrcweir 100cdf0e10cSrcweir virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, 101cdf0e10cSrcweir const SfxPoolItem* pState ); 102cdf0e10cSrcweir }; 103cdf0e10cSrcweir 104cdf0e10cSrcweir //======================================================================== 105cdf0e10cSrcweir class SvxFmTbxCtlRecText : public SfxToolBoxControl 106cdf0e10cSrcweir { 107cdf0e10cSrcweir public: 108cdf0e10cSrcweir SFX_DECL_TOOLBOX_CONTROL(); 109cdf0e10cSrcweir 110cdf0e10cSrcweir SvxFmTbxCtlRecText( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); 111cdf0e10cSrcweir ~SvxFmTbxCtlRecText(); 112cdf0e10cSrcweir 113cdf0e10cSrcweir virtual Window* CreateItemWindow( Window* pParent ); 114cdf0e10cSrcweir }; 115cdf0e10cSrcweir 116cdf0e10cSrcweir //======================================================================== 117cdf0e10cSrcweir class SvxFmTbxCtlRecFromText : public SfxToolBoxControl 118cdf0e10cSrcweir { 119cdf0e10cSrcweir public: 120cdf0e10cSrcweir SFX_DECL_TOOLBOX_CONTROL(); 121cdf0e10cSrcweir 122cdf0e10cSrcweir SvxFmTbxCtlRecFromText( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); 123cdf0e10cSrcweir ~SvxFmTbxCtlRecFromText(); 124cdf0e10cSrcweir 125cdf0e10cSrcweir virtual Window* CreateItemWindow( Window* pParent ); 126cdf0e10cSrcweir }; 127cdf0e10cSrcweir 128cdf0e10cSrcweir //======================================================================== 129cdf0e10cSrcweir class SvxFmTbxCtlRecTotal : public SfxToolBoxControl 130cdf0e10cSrcweir { 131cdf0e10cSrcweir FixedText* pFixedText; 132cdf0e10cSrcweir 133cdf0e10cSrcweir public: 134cdf0e10cSrcweir SFX_DECL_TOOLBOX_CONTROL(); 135cdf0e10cSrcweir 136cdf0e10cSrcweir SvxFmTbxCtlRecTotal( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); 137cdf0e10cSrcweir ~SvxFmTbxCtlRecTotal(); 138cdf0e10cSrcweir 139cdf0e10cSrcweir virtual Window* CreateItemWindow( Window* pParent ); 140cdf0e10cSrcweir virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, 141cdf0e10cSrcweir const SfxPoolItem* pState ); 142cdf0e10cSrcweir }; 143cdf0e10cSrcweir 144cdf0e10cSrcweir //======================================================================== 145cdf0e10cSrcweir class SvxFmTbxNextRec : public SfxToolBoxControl 146cdf0e10cSrcweir { 147cdf0e10cSrcweir public: 148cdf0e10cSrcweir SFX_DECL_TOOLBOX_CONTROL(); 149cdf0e10cSrcweir SvxFmTbxNextRec( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); 150cdf0e10cSrcweir }; 151cdf0e10cSrcweir 152cdf0e10cSrcweir //======================================================================== 153cdf0e10cSrcweir class SvxFmTbxPrevRec : public SfxToolBoxControl 154cdf0e10cSrcweir { 155cdf0e10cSrcweir public: 156cdf0e10cSrcweir SFX_DECL_TOOLBOX_CONTROL(); 157cdf0e10cSrcweir SvxFmTbxPrevRec( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); 158cdf0e10cSrcweir }; 159cdf0e10cSrcweir 160cdf0e10cSrcweir 161cdf0e10cSrcweir #endif 162cdf0e10cSrcweir 163