2010-10-27 12:43:08 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2007-07-25 07:34:15 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 19:04:29 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2007-07-25 07:34:15 +00:00
|
|
|
*
|
2010-02-12 15:01:35 +01:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2007-07-25 07:34:15 +00:00
|
|
|
*
|
2008-04-10 19:04:29 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2007-07-25 07:34:15 +00:00
|
|
|
*
|
2008-04-10 19:04:29 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2007-07-25 07:34:15 +00:00
|
|
|
*
|
2008-04-10 19:04:29 +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.
|
2007-07-25 07:34:15 +00:00
|
|
|
*
|
2008-04-10 19:04:29 +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).
|
2007-07-25 07:34:15 +00:00
|
|
|
*
|
2008-04-10 19:04:29 +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.
|
2007-07-25 07:34:15 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
#ifndef CHART2_RES_DATALABEL_HXX
|
|
|
|
#define CHART2_RES_DATALABEL_HXX
|
|
|
|
|
2007-10-22 15:46:39 +00:00
|
|
|
#include "res_TextSeparator.hxx"
|
2007-07-25 07:34:15 +00:00
|
|
|
// header for class CheckBox
|
|
|
|
#include <vcl/button.hxx>
|
|
|
|
// header for class SfxItemSet
|
2009-10-16 00:05:16 +02:00
|
|
|
#include <svl/itemset.hxx>
|
2008-11-26 15:19:48 +00:00
|
|
|
#include "TextDirectionListBox.hxx"
|
2007-07-25 07:34:15 +00:00
|
|
|
|
2009-06-04 09:41:18 +00:00
|
|
|
#include <svx/dialcontrol.hxx>
|
2011-10-22 21:45:14 +02:00
|
|
|
#include <svx/wrapfield.hxx>
|
2009-06-04 09:41:18 +00:00
|
|
|
|
2007-07-25 07:34:15 +00:00
|
|
|
class SvNumberFormatter;
|
|
|
|
|
|
|
|
//.............................................................................
|
|
|
|
namespace chart
|
|
|
|
{
|
|
|
|
//.............................................................................
|
|
|
|
|
|
|
|
class DataLabelResources
|
|
|
|
{
|
|
|
|
public:
|
2009-06-04 09:41:18 +00:00
|
|
|
DataLabelResources( Window* pParent, const SfxItemSet& rInAttrs );
|
2007-07-25 07:34:15 +00:00
|
|
|
virtual ~DataLabelResources();
|
|
|
|
|
2011-01-14 15:18:08 +01:00
|
|
|
sal_Bool FillItemSet(SfxItemSet& rOutAttrs) const;
|
2007-07-25 07:34:15 +00:00
|
|
|
void Reset(const SfxItemSet& rInAttrs);
|
|
|
|
|
|
|
|
void SetNumberFormatter( SvNumberFormatter* pFormatter );
|
|
|
|
|
|
|
|
private:
|
2007-10-22 15:46:39 +00:00
|
|
|
CheckBox m_aCBNumber;
|
|
|
|
PushButton m_aPB_NumberFormatForValue;
|
|
|
|
CheckBox m_aCBPercent;
|
|
|
|
PushButton m_aPB_NumberFormatForPercent;
|
|
|
|
CheckBox m_aCBCategory;
|
|
|
|
CheckBox m_aCBSymbol;
|
|
|
|
|
|
|
|
TextSeparatorResources m_aSeparatorResources;
|
2007-07-25 07:34:15 +00:00
|
|
|
|
2007-11-23 10:47:59 +00:00
|
|
|
FixedText m_aFT_LabelPlacement;
|
|
|
|
ListBox m_aLB_LabelPlacement;
|
|
|
|
|
2009-06-04 09:41:18 +00:00
|
|
|
FixedLine m_aFL_Rotate;
|
|
|
|
svx::DialControl m_aDC_Dial;
|
|
|
|
FixedText m_aFT_Degrees;
|
2011-10-22 21:45:14 +02:00
|
|
|
svx::WrapField m_aNF_Degrees;
|
2009-06-04 09:41:18 +00:00
|
|
|
|
2008-11-26 15:19:48 +00:00
|
|
|
FixedText m_aFT_TextDirection;
|
|
|
|
TextDirectionListBox m_aLB_TextDirection;
|
|
|
|
|
2011-01-14 15:18:08 +01:00
|
|
|
::std::map< sal_Int32, sal_uInt16 > m_aPlacementToListBoxMap;
|
|
|
|
::std::map< sal_uInt16, sal_Int32 > m_aListBoxToPlacementMap;
|
2007-11-23 10:47:59 +00:00
|
|
|
|
2007-07-25 07:34:15 +00:00
|
|
|
SvNumberFormatter* m_pNumberFormatter;
|
2007-10-22 15:46:39 +00:00
|
|
|
bool m_bNumberFormatMixedState;
|
|
|
|
bool m_bPercentFormatMixedState;
|
2011-01-14 15:18:08 +01:00
|
|
|
sal_uLong m_nNumberFormatForValue;
|
|
|
|
sal_uLong m_nNumberFormatForPercent;
|
2007-10-22 15:46:39 +00:00
|
|
|
|
|
|
|
bool m_bSourceFormatMixedState;
|
|
|
|
bool m_bPercentSourceMixedState;
|
2007-07-25 07:34:15 +00:00
|
|
|
bool m_bSourceFormatForValue;
|
|
|
|
bool m_bSourceFormatForPercent;
|
|
|
|
|
|
|
|
Window* m_pWindow;
|
|
|
|
SfxItemPool* m_pPool;
|
|
|
|
|
2007-10-22 15:46:39 +00:00
|
|
|
DECL_LINK(NumberFormatDialogHdl, PushButton * );
|
2007-07-25 07:34:15 +00:00
|
|
|
DECL_LINK(CheckHdl, CheckBox* );
|
|
|
|
void EnableControls();
|
|
|
|
};
|
|
|
|
|
|
|
|
//.............................................................................
|
|
|
|
} //namespace chart
|
|
|
|
//.............................................................................
|
|
|
|
|
|
|
|
#endif
|
2010-10-27 12:43:08 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|