Branch data 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_InsertLegend.hxx"
21 : : #include "dlg_InsertLegend.hrc"
22 : : #include "res_LegendPosition.hxx"
23 : : #include "ObjectNameProvider.hxx"
24 : : #include "ResId.hxx"
25 : : #include "chartview/ChartSfxItemIds.hxx"
26 : : #include "NoWarningThisInCTOR.hxx"
27 : :
28 : : // header for enum SvxChartLegendPos
29 : : #include <svx/chrtitem.hxx>
30 : : // header for class SfxItemPool
31 : : #include <svl/itempool.hxx>
32 : :
33 : : //.............................................................................
34 : : namespace chart
35 : : {
36 : : //.............................................................................
37 : :
38 : : using namespace ::com::sun::star;
39 : :
40 : 0 : SchLegendDlg::SchLegendDlg(Window* pWindow, const uno::Reference< uno::XComponentContext>& xCC )
41 : : : ModalDialog(pWindow, SchResId(DLG_LEGEND))
42 [ # # ]: 0 : , m_apLegendPositionResources( new LegendPositionResources(this,xCC) )
43 : : , aBtnOK(this, SchResId(BTN_OK))
44 : : , aBtnCancel(this, SchResId(BTN_CANCEL))
45 [ # # ][ # # ]: 0 : , aBtnHelp(this, SchResId(BTN_HELP))
[ # # ][ # # ]
[ # # ][ # # ]
[ # # ][ # # ]
46 : : {
47 [ # # ]: 0 : FreeResource();
48 [ # # ][ # # ]: 0 : this->SetText( ObjectNameProvider::getName(OBJECTTYPE_LEGEND) );
[ # # ][ # # ]
49 : 0 : }
50 : :
51 [ # # ][ # # ]: 0 : SchLegendDlg::~SchLegendDlg()
[ # # ][ # # ]
52 : : {
53 [ # # ]: 0 : }
54 : :
55 : 0 : void SchLegendDlg::init( const uno::Reference< frame::XModel >& xChartModel )
56 : : {
57 : 0 : m_apLegendPositionResources->writeToResources( xChartModel );
58 : 0 : }
59 : :
60 : 0 : bool SchLegendDlg::writeToModel( const uno::Reference< frame::XModel >& xChartModel ) const
61 : : {
62 : 0 : m_apLegendPositionResources->writeToModel( xChartModel );
63 : 0 : return true;
64 : : }
65 : :
66 : : //.............................................................................
67 : : } //namespace chart
68 : : //.............................................................................
69 : :
70 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|