2003-10-06 08:58:36 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 18:53:20 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2003-10-06 08:58:36 +00:00
|
|
|
*
|
2008-04-10 18:53:20 +00:00
|
|
|
* Copyright 2008 by Sun Microsystems, Inc.
|
2003-10-06 08:58:36 +00:00
|
|
|
*
|
2008-04-10 18:53:20 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2003-10-06 08:58:36 +00:00
|
|
|
*
|
2008-04-10 18:53:20 +00:00
|
|
|
* $RCSfile: dlg_InsertDataLabel.cxx,v $
|
2008-11-26 15:19:48 +00:00
|
|
|
* $Revision: 1.10.72.1 $
|
2003-10-06 08:58:36 +00:00
|
|
|
*
|
2008-04-10 18:53:20 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2003-10-06 08:58:36 +00:00
|
|
|
*
|
2008-04-10 18:53:20 +00:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2003-10-06 08:58:36 +00:00
|
|
|
*
|
2008-04-10 18:53:20 +00:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2003-10-06 08:58:36 +00:00
|
|
|
*
|
2008-04-10 18:53:20 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2003-10-06 08:58:36 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
2006-09-17 11:57:55 +00:00
|
|
|
|
|
|
|
// MARKER(update_precomp.py): autogen include statement, do not remove
|
|
|
|
#include "precompiled_chart2.hxx"
|
2007-07-25 07:32:53 +00:00
|
|
|
|
2003-10-06 08:58:36 +00:00
|
|
|
#include "dlg_InsertDataLabel.hxx"
|
|
|
|
#include "dlg_InsertDataLabel.hrc"
|
|
|
|
#include "ResId.hxx"
|
2007-05-22 16:34:31 +00:00
|
|
|
#include "ObjectNameProvider.hxx"
|
2007-07-25 07:32:53 +00:00
|
|
|
#include "res_DataLabel.hxx"
|
2003-10-06 08:58:36 +00:00
|
|
|
|
|
|
|
//.............................................................................
|
|
|
|
namespace chart
|
|
|
|
{
|
|
|
|
//.............................................................................
|
|
|
|
|
2007-07-25 07:32:53 +00:00
|
|
|
DataLabelsDialog::DataLabelsDialog(Window* pWindow, const SfxItemSet& rInAttrs, SvNumberFormatter* pFormatter) :
|
2003-10-06 08:58:36 +00:00
|
|
|
ModalDialog(pWindow, SchResId(DLG_DATA_DESCR)),
|
2007-07-25 07:32:53 +00:00
|
|
|
m_aBtnOK(this, SchResId(BTN_OK)),
|
|
|
|
m_aBtnCancel(this, SchResId(BTN_CANCEL)),
|
|
|
|
m_aBtnHelp(this, SchResId(BTN_HELP)),
|
2009-06-04 09:41:18 +00:00
|
|
|
m_apDataLabelResources( new DataLabelResources(this,rInAttrs) ),
|
2004-01-26 08:13:31 +00:00
|
|
|
m_rInAttrs(rInAttrs)
|
2003-10-06 08:58:36 +00:00
|
|
|
{
|
|
|
|
FreeResource();
|
2007-05-22 16:34:31 +00:00
|
|
|
SetText( ObjectNameProvider::getName(OBJECTTYPE_DATA_LABELS) );
|
2007-07-25 07:32:53 +00:00
|
|
|
m_apDataLabelResources->SetNumberFormatter( pFormatter );
|
2003-10-06 08:58:36 +00:00
|
|
|
Reset();
|
|
|
|
}
|
|
|
|
|
2007-07-25 07:32:53 +00:00
|
|
|
DataLabelsDialog::~DataLabelsDialog()
|
2003-10-06 08:58:36 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2007-07-25 07:32:53 +00:00
|
|
|
void DataLabelsDialog::Reset()
|
2003-10-06 08:58:36 +00:00
|
|
|
{
|
2007-07-25 07:32:53 +00:00
|
|
|
m_apDataLabelResources->Reset(m_rInAttrs);
|
2003-10-06 08:58:36 +00:00
|
|
|
}
|
|
|
|
|
2007-07-25 07:32:53 +00:00
|
|
|
void DataLabelsDialog::FillItemSet(SfxItemSet& rOutAttrs)
|
2003-10-06 08:58:36 +00:00
|
|
|
{
|
2007-07-25 07:32:53 +00:00
|
|
|
m_apDataLabelResources->FillItemSet(rOutAttrs);
|
2003-10-06 08:58:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//.............................................................................
|
|
|
|
} //namespace chart
|
|
|
|
//.............................................................................
|
|
|
|
|