1*b9e67834SAndre Fischer /************************************************************** 2*b9e67834SAndre Fischer * 3*b9e67834SAndre Fischer * Licensed to the Apache Software Foundation (ASF) under one 4*b9e67834SAndre Fischer * or more contributor license agreements. See the NOTICE file 5*b9e67834SAndre Fischer * distributed with this work for additional information 6*b9e67834SAndre Fischer * regarding copyright ownership. The ASF licenses this file 7*b9e67834SAndre Fischer * to you under the Apache License, Version 2.0 (the 8*b9e67834SAndre Fischer * "License"); you may not use this file except in compliance 9*b9e67834SAndre Fischer * with the License. You may obtain a copy of the License at 10*b9e67834SAndre Fischer * 11*b9e67834SAndre Fischer * http://www.apache.org/licenses/LICENSE-2.0 12*b9e67834SAndre Fischer * 13*b9e67834SAndre Fischer * Unless required by applicable law or agreed to in writing, 14*b9e67834SAndre Fischer * software distributed under the License is distributed on an 15*b9e67834SAndre Fischer * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*b9e67834SAndre Fischer * KIND, either express or implied. See the License for the 17*b9e67834SAndre Fischer * specific language governing permissions and limitations 18*b9e67834SAndre Fischer * under the License. 19*b9e67834SAndre Fischer * 20*b9e67834SAndre Fischer *************************************************************/ 21*b9e67834SAndre Fischer 22*b9e67834SAndre Fischer #ifndef SVX_SIDEBAR_SB_FONT_NAME_BOX_HXX 23*b9e67834SAndre Fischer #define SVX_SIDEBAR_SB_FONT_NAME_BOX_HXX 24*b9e67834SAndre Fischer 25*b9e67834SAndre Fischer #include <sfx2/bindings.hxx> 26*b9e67834SAndre Fischer #include <svtools/ctrlbox.hxx> 27*b9e67834SAndre Fischer #include <svtools/ctrltool.hxx> 28*b9e67834SAndre Fischer 29*b9e67834SAndre Fischer /* 30*b9e67834SAndre Fischer #include <sfx2/sectionpage.hxx> 31*b9e67834SAndre Fischer #include <svx/svxdllapi.h> 32*b9e67834SAndre Fischer #include <vcl/fixed.hxx> 33*b9e67834SAndre Fischer 34*b9e67834SAndre Fischer #include <vcl/button.hxx> 35*b9e67834SAndre Fischer #include <svl/lstner.hxx> 36*b9e67834SAndre Fischer #include <vcl/toolbox.hxx> 37*b9e67834SAndre Fischer 38*b9e67834SAndre Fischer #include <svx/tbxcolorupdate.hxx> 39*b9e67834SAndre Fischer #include <svx/svxenum.hxx> 40*b9e67834SAndre Fischer #include <svx/fhgtitem.hxx> 41*b9e67834SAndre Fischer 42*b9e67834SAndre Fischer #define FONT_COLOR 1 43*b9e67834SAndre Fischer #define BACK_COLOR 2 44*b9e67834SAndre Fischer */ 45*b9e67834SAndre Fischer namespace svx 46*b9e67834SAndre Fischer { 47*b9e67834SAndre Fischer class ToolboxButtonColorUpdater; 48*b9e67834SAndre Fischer } 49*b9e67834SAndre Fischer 50*b9e67834SAndre Fischer namespace svx { namespace sidebar { 51*b9e67834SAndre Fischer 52*b9e67834SAndre Fischer class SvxSBFontNameBox : public FontNameBox//, public SfxListener 53*b9e67834SAndre Fischer { 54*b9e67834SAndre Fischer private: 55*b9e67834SAndre Fischer const FontList* pFontList; 56*b9e67834SAndre Fischer Font aCurFont; 57*b9e67834SAndre Fischer String aCurText; 58*b9e67834SAndre Fischer sal_uInt16 nFtCount; 59*b9e67834SAndre Fischer bool bInput; 60*b9e67834SAndre Fischer void EnableControls_Impl(); 61*b9e67834SAndre Fischer SfxBindings* pBindings;// 62*b9e67834SAndre Fischer protected: 63*b9e67834SAndre Fischer virtual void Select(); 64*b9e67834SAndre Fischer 65*b9e67834SAndre Fischer public: 66*b9e67834SAndre Fischer SvxSBFontNameBox( Window* pParent, const ResId& rResId ); 67*b9e67834SAndre Fischer void FillList(); GetListCount()68*b9e67834SAndre Fischer sal_uInt16 GetListCount() { return nFtCount; } Clear()69*b9e67834SAndre Fischer void Clear() { FontNameBox::Clear(); nFtCount = 0; } Fill(const FontList * pList)70*b9e67834SAndre Fischer void Fill( const FontList* pList ) 71*b9e67834SAndre Fischer { FontNameBox::Fill( pList ); 72*b9e67834SAndre Fischer nFtCount = pList->GetFontNameCount(); } 73*b9e67834SAndre Fischer void SetBindings(SfxBindings* pBinding);// 74*b9e67834SAndre Fischer virtual long PreNotify( NotifyEvent& rNEvt ); 75*b9e67834SAndre Fischer virtual long Notify( NotifyEvent& rNEvt );// 76*b9e67834SAndre Fischer }; 77*b9e67834SAndre Fischer 78*b9e67834SAndre Fischer } } // end of namespace svx::sidebar 79*b9e67834SAndre Fischer 80*b9e67834SAndre Fischer #endif 81