Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 :
20 : #ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_TP_WIZARD_TITLESANDOBJECTS_HXX
21 : #define INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_TP_WIZARD_TITLESANDOBJECTS_HXX
22 :
23 : #include "TimerTriggeredControllerLock.hxx"
24 :
25 : #include <com/sun/star/chart2/XChartDocument.hpp>
26 : #include <svtools/wizardmachine.hxx>
27 : #include <vcl/edit.hxx>
28 : #include <vcl/fixed.hxx>
29 : #include <com/sun/star/uno/XComponentContext.hpp>
30 :
31 : #include <boost/scoped_ptr.hpp>
32 :
33 : #include "res_LegendPosition.hxx"
34 : #include "res_Titles.hxx"
35 :
36 : namespace chart
37 : {
38 :
39 0 : class TitlesAndObjectsTabPage : public svt::OWizardPage
40 : {
41 : public:
42 : TitlesAndObjectsTabPage( svt::OWizardMachine* pParent
43 : , const ::com::sun::star::uno::Reference<
44 : ::com::sun::star::chart2::XChartDocument >& xChartModel
45 : , const ::com::sun::star::uno::Reference<
46 : ::com::sun::star::uno::XComponentContext >& xContext );
47 :
48 : virtual void initializePage() SAL_OVERRIDE;
49 : virtual bool commitPage( ::svt::WizardTypes::CommitPageReason eReason ) SAL_OVERRIDE;
50 : virtual bool canAdvance() const SAL_OVERRIDE;
51 :
52 : protected:
53 : void commitToModel();
54 : DECL_LINK( ChangeHdl, void* );
55 :
56 : protected:
57 : boost::scoped_ptr< TitleResources > m_xTitleResources;
58 : boost::scoped_ptr< LegendPositionResources > m_xLegendPositionResources;
59 :
60 : CheckBox* m_pCB_Grid_X;
61 : CheckBox* m_pCB_Grid_Y;
62 : CheckBox* m_pCB_Grid_Z;
63 :
64 : ::com::sun::star::uno::Reference<
65 : ::com::sun::star::chart2::XChartDocument > m_xChartModel;
66 : ::com::sun::star::uno::Reference<
67 : ::com::sun::star::uno::XComponentContext> m_xCC;
68 :
69 : bool m_bCommitToModel;
70 : TimerTriggeredControllerLock m_aTimerTriggeredControllerLock;
71 : };
72 :
73 : } //namespace chart
74 : #endif
75 :
76 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|