2010-10-27 12:43:08 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-07-17 12:30:48 +01:00
|
|
|
/*
|
|
|
|
* 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 .
|
|
|
|
*/
|
2013-10-23 22:48:59 +02:00
|
|
|
#ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_TP_SCALE_HXX
|
|
|
|
#define INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_TP_SCALE_HXX
|
2003-10-06 08:58:36 +00:00
|
|
|
|
|
|
|
#include <sfx2/tabdlg.hxx>
|
|
|
|
|
|
|
|
namespace chart
|
|
|
|
{
|
|
|
|
|
2007-10-22 15:48:24 +00:00
|
|
|
class ScaleTabPage : public SfxTabPage
|
2003-10-06 08:58:36 +00:00
|
|
|
{
|
2008-12-12 12:17:17 +00:00
|
|
|
public:
|
2018-11-14 21:15:59 +00:00
|
|
|
ScaleTabPage(TabPageParent pParent, const SfxItemSet& rInAttrs);
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~ScaleTabPage() override;
|
2008-12-12 12:17:17 +00:00
|
|
|
|
2018-04-20 11:06:07 +01:00
|
|
|
static VclPtr<SfxTabPage> Create( TabPageParent pParent, const SfxItemSet* rInAttrs );
|
2015-10-12 16:04:04 +02:00
|
|
|
virtual bool FillItemSet( SfxItemSet* rOutAttrs ) override;
|
|
|
|
virtual void Reset( const SfxItemSet* rInAttrs ) override;
|
2008-12-12 12:17:17 +00:00
|
|
|
using TabPage::DeactivatePage;
|
2016-07-22 14:35:27 +02:00
|
|
|
virtual DeactivateRC DeactivatePage( SfxItemSet* pItemSet ) override;
|
2008-12-12 12:17:17 +00:00
|
|
|
|
|
|
|
void SetNumFormatter( SvNumberFormatter* pFormatter );
|
|
|
|
void SetNumFormat();
|
|
|
|
|
|
|
|
void ShowAxisOrigin( bool bShowOrigin );
|
|
|
|
|
2003-10-06 08:58:36 +00:00
|
|
|
private:
|
|
|
|
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;
|
|
|
|
|
2018-11-14 21:15:59 +00:00
|
|
|
std::unique_ptr<weld::CheckButton> m_xCbxReverse;
|
|
|
|
std::unique_ptr<weld::CheckButton> m_xCbxLogarithm;
|
|
|
|
std::unique_ptr<weld::Widget> m_xBxType;
|
|
|
|
std::unique_ptr<weld::ComboBox> m_xLB_AxisType;
|
|
|
|
std::unique_ptr<weld::Widget> m_xBxMinMax;
|
|
|
|
std::unique_ptr<weld::FormattedSpinButton> m_xFmtFldMin;
|
|
|
|
std::unique_ptr<weld::CheckButton> m_xCbxAutoMin;
|
|
|
|
std::unique_ptr<weld::FormattedSpinButton> m_xFmtFldMax;
|
|
|
|
std::unique_ptr<weld::CheckButton> m_xCbxAutoMax;
|
|
|
|
std::unique_ptr<weld::Widget> m_xBxResolution;
|
|
|
|
std::unique_ptr<weld::ComboBox> m_xLB_TimeResolution;
|
|
|
|
std::unique_ptr<weld::CheckButton> m_xCbx_AutoTimeResolution;
|
|
|
|
std::unique_ptr<weld::Label> m_xTxtMain;
|
|
|
|
std::unique_ptr<weld::FormattedSpinButton> m_xFmtFldStepMain;
|
|
|
|
std::unique_ptr<weld::SpinButton> m_xMt_MainDateStep;
|
|
|
|
std::unique_ptr<weld::ComboBox> m_xLB_MainTimeUnit;
|
|
|
|
std::unique_ptr<weld::CheckButton> m_xCbxAutoStepMain;
|
|
|
|
std::unique_ptr<weld::Label> m_xTxtHelpCount;
|
|
|
|
std::unique_ptr<weld::Label> m_xTxtHelp;
|
|
|
|
std::unique_ptr<weld::SpinButton> m_xMtStepHelp;
|
|
|
|
std::unique_ptr<weld::ComboBox> m_xLB_HelpTimeUnit;
|
|
|
|
std::unique_ptr<weld::CheckButton> m_xCbxAutoStepHelp;
|
|
|
|
std::unique_ptr<weld::FormattedSpinButton> m_xFmtFldOrigin;
|
|
|
|
std::unique_ptr<weld::CheckButton> m_xCbxAutoOrigin;
|
|
|
|
std::unique_ptr<weld::Widget> m_xBxOrigin;
|
|
|
|
|
2007-10-22 15:48:24 +00:00
|
|
|
void EnableControls();
|
|
|
|
|
2018-11-14 21:15:59 +00:00
|
|
|
DECL_LINK(SelectAxisTypeHdl, weld::ComboBox&, void);
|
|
|
|
DECL_LINK(EnableValueHdl, weld::ToggleButton&, void);
|
2003-10-06 08:58:36 +00:00
|
|
|
|
|
|
|
/** shows a warning window due to an invalid input.
|
|
|
|
|
2017-06-11 20:56:30 +01:00
|
|
|
@param pResIdMessage
|
2003-10-06 08:58:36 +00:00
|
|
|
The resource identifier that represents the localized warning text.
|
2017-06-11 20:56:30 +01:00
|
|
|
If this is nullptr, no warning is shown and false is returned.
|
2003-10-06 08:58:36 +00:00
|
|
|
|
|
|
|
@param pControl
|
|
|
|
If non-NULL, contains a pointer to the control in which the
|
2019-01-16 23:48:42 +00:00
|
|
|
erroneous value was in. This method gives this control the focus
|
2003-10-06 08:58:36 +00:00
|
|
|
and selects its content.
|
|
|
|
|
|
|
|
@return false, if nResIdMessage was 0, true otherwise
|
|
|
|
*/
|
2018-11-14 21:15:59 +00:00
|
|
|
bool ShowWarning(const char* pResIdMessage, weld::Widget* pControl);
|
2011-05-06 22:34:11 -04:00
|
|
|
|
|
|
|
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: */
|