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 : #include "dlg_ChartType.hxx"
21 : #include "dlg_ChartType.hrc"
22 : #include "ResId.hxx"
23 : #include "ResourceIds.hrc"
24 : #include "Strings.hrc"
25 : #include "tp_ChartType.hxx"
26 : #include "macros.hxx"
27 : #include <com/sun/star/chart2/XChartDocument.hpp>
28 : #include <vcl/layout.hxx>
29 :
30 : using namespace ::com::sun::star;
31 :
32 : namespace chart
33 : {
34 : using namespace ::com::sun::star;
35 : using namespace ::com::sun::star::chart2;
36 :
37 0 : ChartTypeDialog::ChartTypeDialog( Window* pParent
38 : , const uno::Reference< frame::XModel >& xChartModel
39 : , const uno::Reference< uno::XComponentContext >& xContext )
40 : : ModalDialog( pParent, "ChartTypeDialog",
41 : "modules/schart/ui/charttypedialog.ui")
42 : , m_pChartTypeTabPage(0)
43 : , m_xChartModel(xChartModel)
44 0 : , m_xCC( xContext )
45 : {
46 : m_pChartTypeTabPage = new ChartTypeTabPage(
47 0 : get_content_area(),
48 : uno::Reference<XChartDocument>::query(m_xChartModel),
49 : m_xCC,
50 : true/*live update*/,
51 0 : true/*hide title description*/);
52 :
53 0 : m_pChartTypeTabPage->initializePage();
54 0 : m_pChartTypeTabPage->Show();
55 0 : }
56 :
57 0 : ChartTypeDialog::~ChartTypeDialog()
58 : {
59 0 : delete m_pChartTypeTabPage;
60 0 : }
61 :
62 45 : } //namespace chart
63 :
64 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|