Files
libreoffice/chart2/source/controller/dialogs/tp_Scale.hxx

139 lines
4.3 KiB
C++
Raw Normal View History

2010-10-27 12:43:08 +01:00
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
2003-10-06 08:58:36 +00:00
#ifndef _CHART2_TP_SCALES_HXX
#define _CHART2_TP_SCALES_HXX
// header for SfxTabPage
#include <sfx2/tabdlg.hxx>
// header for class FormattedField
#include <svtools/fmtfield.hxx>
// header for FixedText
#include <vcl/fixed.hxx>
// header for CheckBox
#include <vcl/button.hxx>
// header for MetricField
#include <vcl/field.hxx>
2010-11-30 01:45:03 +01:00
// header for class ListBox
#include <vcl/lstbox.hxx>
2003-10-06 08:58:36 +00:00
namespace chart
{
class ScaleTabPage : public SfxTabPage
2003-10-06 08:58:36 +00:00
{
2008-12-12 12:17:17 +00:00
public:
ScaleTabPage( Window* pParent, const SfxItemSet& rInAttrs );
static SfxTabPage* Create( Window* pParent, const SfxItemSet& rInAttrs );
virtual sal_Bool FillItemSet( SfxItemSet& rOutAttrs );
2008-12-12 12:17:17 +00:00
virtual void Reset( const SfxItemSet& rInAttrs );
using TabPage::DeactivatePage;
virtual int DeactivatePage( SfxItemSet* pItemSet = NULL );
void SetNumFormatter( SvNumberFormatter* pFormatter );
void SetNumFormat();
void ShowAxisOrigin( bool bShowOrigin );
CWS-TOOLING: integrate CWS chart35 2009-02-20 12:33:54 +0100 nn r268312 : correct line ends 2009-01-19 12:50:45 +0100 iha r266491 : #i91800# style:text-position='0' is wrongly imported 2009-01-19 11:59:09 +0100 iha r266486 : #i91037# Position of Datalabels in 3D Bar-Charts are crossing the edge 2009-01-16 16:45:50 +0100 iha r266435 : #i93802# clockwise does not work on solars sparc 2009-01-16 13:23:37 +0100 iha r266414 : #i91037# Position of Datalabels in 3D Bar-Charts are crossing the edge 2009-01-15 14:09:27 +0100 iha r266370 : #i98102# checkbox show equation should not be checked initially 2009-01-14 17:41:33 +0100 iha r266323 : #i97133# #i97318# chart type is not detected correctly in case of invisible series 2009-01-14 16:23:06 +0100 iha r266316 : #i97133# #i97318# chart type is not detected correctly in case of invisible series 2009-01-14 13:43:38 +0100 iha r266298 : #i84417# Unable to edit existing chart title with clipboard 2009-01-14 13:43:04 +0100 iha r266297 : #i84417# Unable to edit existing chart title with IME 2009-01-14 13:14:15 +0100 dr r266293 : do not set CharEscapement property if not needed 2009-01-14 00:48:46 +0100 er r266262 : #i81383# changed ASC and JIS to use transliteration provided by i18n transliteration; patch from <bluedwarf> 2009-01-14 00:28:06 +0100 er r266261 : #i97536# silence gcc's unbracketed && || warnings 2009-01-13 22:43:45 +0100 er r266259 : #i97905# corrected IndexKey order 2009-01-13 20:36:15 +0100 er r266254 : #i97905# add SKK/EUR conversion (plus MTL/EUR and CYP/EUR) 2009-01-13 20:31:17 +0100 er r266253 : #i97905# updated locale data; contributed by <brko> 2009-01-13 11:57:08 +0100 iha r266204 : #i84103# cannot set data in xy diagram in draw 2009-01-12 20:29:37 +0100 nn r266181 : #i97680# GetStylesContainer: handle non-available style family 2009-01-12 19:53:19 +0100 nn r266180 : #i98000# don't get initial zoom value via SfxViewFrame::Current 2009-01-12 16:11:19 +0100 iha r266166 : #i71686# XY charts without valid x values are not imported correctly from Excel 2009-01-09 17:10:20 +0100 iha r266102 : #i95051# truncated asian strings on scale tabpage 2009-01-09 15:58:46 +0100 iha r266094 : #i89430# truncated asian strings in smooth lines dialog 2009-01-09 13:09:14 +0100 iha r266076 : #i94813# importing pie chart with multiline categories crashes
2009-03-03 11:39:43 +00:00
virtual void StateChanged( StateChangedType nType );
2003-10-06 08:58:36 +00:00
private:
FixedLine aFlScale;
2010-11-30 01:45:03 +01:00
CheckBox aCbxReverse;
CheckBox aCbxLogarithm;
FixedText m_aTxt_AxisType;
ListBox m_aLB_AxisType;
2003-10-06 08:58:36 +00:00
FixedText aTxtMin;
FormattedField aFmtFldMin;
CheckBox aCbxAutoMin;
FixedText aTxtMax;
FormattedField aFmtFldMax;
CheckBox aCbxAutoMax;
2010-11-30 01:45:03 +01:00
FixedText m_aTxt_TimeResolution;
ListBox m_aLB_TimeResolution;
CheckBox m_aCbx_AutoTimeResolution;
2003-10-06 08:58:36 +00:00
FixedText aTxtMain;
FormattedField aFmtFldStepMain;
2010-11-30 01:45:03 +01:00
MetricField m_aMt_MainDateStep;
ListBox m_aLB_MainTimeUnit;
2003-10-06 08:58:36 +00:00
CheckBox aCbxAutoStepMain;
2010-11-30 01:45:03 +01:00
FixedText aTxtHelpCount;
2003-10-06 08:58:36 +00:00
FixedText aTxtHelp;
MetricField aMtStepHelp;
2010-11-30 01:45:03 +01:00
ListBox m_aLB_HelpTimeUnit;
2003-10-06 08:58:36 +00:00
CheckBox aCbxAutoStepHelp;
FixedText aTxtOrigin;
FormattedField aFmtFldOrigin;
CheckBox aCbxAutoOrigin;
2008-12-12 12:17:17 +00:00
2003-10-06 08:58:36 +00:00
double fMin;
double fMax;
double fStepMain;
sal_Int32 nStepHelp;
double fOrigin;
2010-11-30 01:45:03 +01:00
sal_Int32 m_nTimeResolution;
sal_Int32 m_nMainTimeUnit;
sal_Int32 m_nHelpTimeUnit;
int m_nAxisType;
bool m_bAllowDateAxis;
2003-10-06 08:58:36 +00:00
SvNumberFormatter* pNumFormatter;
2008-12-12 12:17:17 +00:00
bool m_bShowAxisOrigin;
CWS-TOOLING: integrate CWS chart35 2009-02-20 12:33:54 +0100 nn r268312 : correct line ends 2009-01-19 12:50:45 +0100 iha r266491 : #i91800# style:text-position='0' is wrongly imported 2009-01-19 11:59:09 +0100 iha r266486 : #i91037# Position of Datalabels in 3D Bar-Charts are crossing the edge 2009-01-16 16:45:50 +0100 iha r266435 : #i93802# clockwise does not work on solars sparc 2009-01-16 13:23:37 +0100 iha r266414 : #i91037# Position of Datalabels in 3D Bar-Charts are crossing the edge 2009-01-15 14:09:27 +0100 iha r266370 : #i98102# checkbox show equation should not be checked initially 2009-01-14 17:41:33 +0100 iha r266323 : #i97133# #i97318# chart type is not detected correctly in case of invisible series 2009-01-14 16:23:06 +0100 iha r266316 : #i97133# #i97318# chart type is not detected correctly in case of invisible series 2009-01-14 13:43:38 +0100 iha r266298 : #i84417# Unable to edit existing chart title with clipboard 2009-01-14 13:43:04 +0100 iha r266297 : #i84417# Unable to edit existing chart title with IME 2009-01-14 13:14:15 +0100 dr r266293 : do not set CharEscapement property if not needed 2009-01-14 00:48:46 +0100 er r266262 : #i81383# changed ASC and JIS to use transliteration provided by i18n transliteration; patch from <bluedwarf> 2009-01-14 00:28:06 +0100 er r266261 : #i97536# silence gcc's unbracketed && || warnings 2009-01-13 22:43:45 +0100 er r266259 : #i97905# corrected IndexKey order 2009-01-13 20:36:15 +0100 er r266254 : #i97905# add SKK/EUR conversion (plus MTL/EUR and CYP/EUR) 2009-01-13 20:31:17 +0100 er r266253 : #i97905# updated locale data; contributed by <brko> 2009-01-13 11:57:08 +0100 iha r266204 : #i84103# cannot set data in xy diagram in draw 2009-01-12 20:29:37 +0100 nn r266181 : #i97680# GetStylesContainer: handle non-available style family 2009-01-12 19:53:19 +0100 nn r266180 : #i98000# don't get initial zoom value via SfxViewFrame::Current 2009-01-12 16:11:19 +0100 iha r266166 : #i71686# XY charts without valid x values are not imported correctly from Excel 2009-01-09 17:10:20 +0100 iha r266102 : #i95051# truncated asian strings on scale tabpage 2009-01-09 15:58:46 +0100 iha r266094 : #i89430# truncated asian strings in smooth lines dialog 2009-01-09 13:09:14 +0100 iha r266076 : #i94813# importing pie chart with multiline categories crashes
2009-03-03 11:39:43 +00:00
void AdjustControlPositions();
void EnableControls();
2010-11-30 01:45:03 +01:00
void PlaceIntervalControlsAccordingToAxisType();
2010-11-30 01:45:03 +01:00
DECL_LINK( SelectAxisTypeHdl, void* );
2003-10-06 08:58:36 +00:00
DECL_LINK( EnableValueHdl, CheckBox* );
DECL_LINK( FmtFieldModifiedHdl, FormattedField* );
2003-10-06 08:58:36 +00:00
/** shows a warning window due to an invalid input.
@param nResIdMessage
The resource identifier that represents the localized warning text.
If this is 0, no warning is shown and false is returned.
@param pControl
If non-NULL, contains a pointer to the control in which the
errornous value was in. This method gives this control the focus
and selects its content.
@return false, if nResIdMessage was 0, true otherwise
*/
2011-02-07 13:06:08 +01:00
bool ShowWarning( sal_uInt16 nResIdMessage, Control* pControl = NULL );
void HideAllControls();
2003-10-06 08:58:36 +00:00
};
} //namespace chart
#endif
2010-10-27 12:43:08 +01:00
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */