1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 #ifndef _CHART2_RES_TITLES_HXX
28 #define _CHART2_RES_TITLES_HXX
29 
30 #include "TitleDialogData.hxx"
31 #include <vcl/edit.hxx>
32 #include <vcl/fixed.hxx>
33 
34 //.............................................................................
35 namespace chart
36 {
37 //.............................................................................
38 
39 class TitleResources
40 {
41 public:
42 	TitleResources( Window* pParent, bool bShowSecondaryAxesTitle );
43 	virtual ~TitleResources();
44 
45     void writeToResources( const TitleDialogData& rInput );
46     void readFromResources( TitleDialogData& rOutput );
47 
48     void SetUpdateDataHdl( const Link& rLink );
49     bool IsModified();
50     void ClearModifyFlag();
51 
52 private:
53 	FixedText 			m_aFT_Main;
54 	Edit     			m_aEd_Main;
55 	FixedText 			m_aFT_Sub;
56 	Edit     			m_aEd_Sub;
57 
58     FixedLine           m_aFL_Axes;
59 	FixedText 			m_aFT_XAxis;
60 	Edit     			m_aEd_XAxis;
61 	FixedText 			m_aFT_YAxis;
62 	Edit     			m_aEd_YAxis;
63 	FixedText 			m_aFT_ZAxis;
64 	Edit     			m_aEd_ZAxis;
65 
66     FixedLine           m_aFL_SecondaryAxes;
67     FixedText           m_aFT_SecondaryXAxis;
68     Edit                m_aEd_SecondaryXAxis;
69     FixedText           m_aFT_SecondaryYAxis;
70     Edit                m_aEd_SecondaryYAxis;
71 };
72 
73 //.............................................................................
74 } //namespace chart
75 //.............................................................................
76 
77 #endif
78