Update ooo320-m1
[ooovba.git] / fpicker / source / win32 / filepicker / customcontrolcontainer.hxx
blobd7a5647c59ff4df5fe8047632ef27a746a6b81b8
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: customcontrolcontainer.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _CUSTOMCONTROLCONTAINER_HXX_
32 #define _CUSTOMCONTROLCONTAINER_HXX_
34 #include "customcontrol.hxx"
36 #include <list>
38 //-----------------------------------
39 // A container for custom controls
40 // the container is resposible for
41 // the destruction of the custom
42 // controls
43 //-----------------------------------
45 class CCustomControlContainer : public CCustomControl
47 public:
48 virtual ~CCustomControlContainer();
50 virtual void SAL_CALL Align();
51 virtual void SAL_CALL SetFont(HFONT hFont);
53 virtual void SAL_CALL AddControl(CCustomControl* aCustomControl);
54 virtual void SAL_CALL RemoveControl(CCustomControl* aCustomControl);
55 virtual void SAL_CALL RemoveAllControls();
57 private:
58 typedef std::list<CCustomControl*> ControlContainer_t;
60 ControlContainer_t m_ControlContainer;
63 #endif