1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_TP_WIZARD_TITLESANDOBJECTS_HXX
21 #define INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_TP_WIZARD_TITLESANDOBJECTS_HXX
23 #include "TimerTriggeredControllerLock.hxx"
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>
31 #include <boost/scoped_ptr.hpp>
33 #include "res_LegendPosition.hxx"
34 #include "res_Titles.hxx"
39 class TitlesAndObjectsTabPage
: public svt::OWizardPage
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 virtual ~TitlesAndObjectsTabPage();
48 virtual void dispose() SAL_OVERRIDE
;
50 virtual void initializePage() SAL_OVERRIDE
;
51 virtual bool commitPage( ::svt::WizardTypes::CommitPageReason eReason
) SAL_OVERRIDE
;
52 virtual bool canAdvance() const SAL_OVERRIDE
;
56 DECL_LINK( ChangeHdl
, void* );
59 boost::scoped_ptr
< TitleResources
> m_xTitleResources
;
60 boost::scoped_ptr
< LegendPositionResources
> m_xLegendPositionResources
;
62 VclPtr
<CheckBox
> m_pCB_Grid_X
;
63 VclPtr
<CheckBox
> m_pCB_Grid_Y
;
64 VclPtr
<CheckBox
> m_pCB_Grid_Z
;
66 ::com::sun::star::uno::Reference
<
67 ::com::sun::star::chart2::XChartDocument
> m_xChartModel
;
68 ::com::sun::star::uno::Reference
<
69 ::com::sun::star::uno::XComponentContext
> m_xCC
;
71 bool m_bCommitToModel
;
72 TimerTriggeredControllerLock m_aTimerTriggeredControllerLock
;
78 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */