merge the formfield patch from ooo-build
[ooovba.git] / chart2 / source / controller / dialogs / res_TextSeparator.hxx
bloba89def967b2a88306c43777c5f234265c2af2e8e
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: res_TextSeparator.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 ************************************************************************/
30 #ifndef CHART2_RES_TEXTSEPARATOR_HXX
31 #define CHART2_RES_TEXTSEPARATOR_HXX
33 // header for class FixedText
34 #include <vcl/fixed.hxx>
35 // header for class ListBox
36 #include <vcl/lstbox.hxx>
38 #include <map>
40 //.............................................................................
41 namespace chart
43 //.............................................................................
45 class TextSeparatorResources
47 public:
48 TextSeparatorResources( Window* pParent );
49 virtual ~TextSeparatorResources();
51 void Show( bool bShow );
52 void Enable( bool bEnable );
54 void PositionBelowControl( const Window& rWindow );
55 void AlignListBoxWidthAndXPos( long nWantedLeftBorder /*use -1 to indicate that this can be automatic*/
56 , long nWantedRightBorder /*use -1 to indicate that this can be automatic*/
57 , long nMinimumListBoxWidth /*use -1 to indicate that this can be automatic*/ );
58 Point GetCurrentListBoxPosition() const;
59 Size GetCurrentListBoxSize() const;
61 ::rtl::OUString GetValue() const;
62 void SetValue( const ::rtl::OUString& rSeparator );
63 void SetDefault();
65 private:
66 FixedText m_aFT_Separator;
67 ListBox m_aLB_Separator;
69 ::std::map< ::rtl::OUString, USHORT > m_aEntryMap;
71 const USHORT m_nDefaultPos;
74 //.............................................................................
75 } //namespace chart
76 //.............................................................................
78 #endif