Update ooo320-m1
[ooovba.git] / chart2 / source / controller / dialogs / tp_Wizard_TitlesAndObjects.hxx
blobd473fe9f8cd84a0900b5707aa7299dfe277f40a2
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: tp_Wizard_TitlesAndObjects.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 _CHART2_TP_WIZARD_TITLESANDOBJECTS_HXX
32 #define _CHART2_TP_WIZARD_TITLESANDOBJECTS_HXX
34 #include "TimerTriggeredControllerLock.hxx"
36 #include <com/sun/star/chart2/XChartDocument.hpp>
37 #include <svtools/wizardmachine.hxx>
38 #include <vcl/edit.hxx>
39 #include <vcl/fixed.hxx>
40 //for auto_ptr
41 #include <memory>
42 #include <com/sun/star/uno/XComponentContext.hpp>
44 //.............................................................................
45 namespace chart
47 //.............................................................................
49 //-----------------------------------------------------------------------------
50 /**
52 class TitleResources;
53 class LegendPositionResources;
54 class TitlesAndObjectsTabPage : public svt::OWizardPage
56 public:
57 TitlesAndObjectsTabPage( svt::OWizardMachine* pParent
58 , const ::com::sun::star::uno::Reference<
59 ::com::sun::star::chart2::XChartDocument >& xChartModel
60 , const ::com::sun::star::uno::Reference<
61 ::com::sun::star::uno::XComponentContext >& xContext );
62 virtual ~TitlesAndObjectsTabPage();
64 virtual void initializePage();
65 virtual sal_Bool commitPage( CommitPageReason eReason );
66 virtual bool canAdvance() const;
68 protected:
69 void commitToModel();
70 DECL_LINK( ChangeHdl, void* );
72 protected:
73 FixedText m_aFT_TitleDescription;
74 FixedLine m_aFL_Vertical;
76 ::std::auto_ptr< TitleResources > m_apTitleResources;
77 ::std::auto_ptr< LegendPositionResources > m_apLegendPositionResources;
79 FixedLine m_aFL_Grids;
80 CheckBox m_aCB_Grid_X;
81 CheckBox m_aCB_Grid_Y;
82 CheckBox m_aCB_Grid_Z;
84 ::com::sun::star::uno::Reference<
85 ::com::sun::star::chart2::XChartDocument > m_xChartModel;
86 ::com::sun::star::uno::Reference<
87 ::com::sun::star::uno::XComponentContext> m_xCC;
89 bool m_bCommitToModel;
90 TimerTriggeredControllerLock m_aTimerTriggeredControllerLock;
93 //.............................................................................
94 } //namespace chart
95 //.............................................................................
96 #endif