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 
23 
24 #ifndef _CHART2_TP_WIZARD_TITLESANDOBJECTS_HXX
25 #define _CHART2_TP_WIZARD_TITLESANDOBJECTS_HXX
26 
27 #include "TimerTriggeredControllerLock.hxx"
28 
29 #include <com/sun/star/chart2/XChartDocument.hpp>
30 #include <svtools/wizardmachine.hxx>
31 #include <vcl/edit.hxx>
32 #include <vcl/fixed.hxx>
33 //for auto_ptr
34 #include <memory>
35 #include <com/sun/star/uno/XComponentContext.hpp>
36 
37 //.............................................................................
38 namespace chart
39 {
40 //.............................................................................
41 
42 //-----------------------------------------------------------------------------
43 /**
44 */
45 class TitleResources;
46 class LegendPositionResources;
47 class TitlesAndObjectsTabPage : public svt::OWizardPage
48 {
49 public:
50     TitlesAndObjectsTabPage( svt::OWizardMachine* pParent
51                 , const ::com::sun::star::uno::Reference<
52                 ::com::sun::star::chart2::XChartDocument >& xChartModel
53                 , const ::com::sun::star::uno::Reference<
54                 ::com::sun::star::uno::XComponentContext >& xContext );
55     virtual ~TitlesAndObjectsTabPage();
56 
57     virtual void		initializePage();
58     virtual sal_Bool	commitPage( ::svt::WizardTypes::CommitPageReason eReason );
59 	virtual bool        canAdvance() const;
60 
61 protected:
62     void commitToModel();
63     DECL_LINK( ChangeHdl, void* );
64 
65 protected:
66     FixedText           m_aFT_TitleDescription;
67     FixedLine           m_aFL_Vertical;
68 
69     ::std::auto_ptr< TitleResources >            m_apTitleResources;
70     ::std::auto_ptr< LegendPositionResources >   m_apLegendPositionResources;
71 
72     FixedLine           m_aFL_Grids;
73     CheckBox            m_aCB_Grid_X;
74     CheckBox            m_aCB_Grid_Y;
75     CheckBox            m_aCB_Grid_Z;
76 
77     ::com::sun::star::uno::Reference<
78                        ::com::sun::star::chart2::XChartDocument >   m_xChartModel;
79     ::com::sun::star::uno::Reference<
80                        ::com::sun::star::uno::XComponentContext>    m_xCC;
81 
82     bool    m_bCommitToModel;
83     TimerTriggeredControllerLock   m_aTimerTriggeredControllerLock;
84 };
85 
86 //.............................................................................
87 } //namespace chart
88 //.............................................................................
89 #endif
90