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 #ifndef SVX_SIDEBAR_SB_FONT_NAME_BOX_HXX
23 #define SVX_SIDEBAR_SB_FONT_NAME_BOX_HXX
24 
25 #include <sfx2/bindings.hxx>
26 #include <svtools/ctrlbox.hxx>
27 #include <svtools/ctrltool.hxx>
28 
29 /*
30 #include <sfx2/sectionpage.hxx>
31 #include <svx/svxdllapi.h>
32 #include <vcl/fixed.hxx>
33 
34 #include <vcl/button.hxx>
35 #include <svl/lstner.hxx>
36 #include <vcl/toolbox.hxx>
37 
38 #include <svx/tbxcolorupdate.hxx>
39 #include <svx/svxenum.hxx>
40 #include <svx/fhgtitem.hxx>
41 
42 #define FONT_COLOR			1
43 #define BACK_COLOR			2
44 */
45 namespace svx
46 {
47     class ToolboxButtonColorUpdater;
48 }
49 
50 namespace svx { namespace sidebar {
51 
52 class SvxSBFontNameBox : public FontNameBox//, public SfxListener
53 {
54 private:
55 	const FontList*	pFontList;
56 	Font			aCurFont;
57 	String			aCurText;
58 	sal_uInt16 nFtCount;
59    	bool bInput;
60 	void			EnableControls_Impl();
61 	SfxBindings*	pBindings;//
62 protected:
63 	virtual void 	Select();
64 
65 public:
66     SvxSBFontNameBox( Window* pParent, const ResId& rResId  );
67 	void			FillList();
GetListCount()68 	sal_uInt16 GetListCount() { return nFtCount; }
Clear()69 	void			Clear() { FontNameBox::Clear(); nFtCount = 0; }
Fill(const FontList * pList)70 	void			Fill( const FontList* pList )
71 						{ FontNameBox::Fill( pList );
72 						  nFtCount = pList->GetFontNameCount(); }
73 	void			SetBindings(SfxBindings* pBinding);//
74 	virtual long	PreNotify( NotifyEvent& rNEvt );
75 	virtual long	Notify(  NotifyEvent& rNEvt );//
76 };
77 
78 } } // end of namespace svx::sidebar
79 
80 #endif
81