LibreOffice Module chart2 (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
chart::ScaleTabPage Class Reference

#include <tp_Scale.hxx>

Inheritance diagram for chart::ScaleTabPage:
[legend]
Collaboration diagram for chart::ScaleTabPage:
[legend]

Public Member Functions

 ScaleTabPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rInAttrs)
 
virtual ~ScaleTabPage () override
 
virtual bool FillItemSet (SfxItemSet *rOutAttrs) override
 
virtual void Reset (const SfxItemSet *rInAttrs) override
 
virtual DeactivateRC DeactivatePage (SfxItemSet *pItemSet) override
 
void SetNumFormatter (SvNumberFormatter *pFormatter)
 
void SetNumFormat ()
 
void ShowAxisOrigin (bool bShowOrigin)
 
- Public Member Functions inherited from SfxTabPage
void SetDialogController (SfxOkDialogController *pDialog)
 
virtual ~SfxTabPage () override
 
void set_visible (bool bVisible)
 
const SfxItemSetGetItemSet () const
 
virtual bool FillItemSet (SfxItemSet *)
 
virtual void Reset (const SfxItemSet *)
 
virtual bool DeferResetToFirstActivation ()
 
bool HasExchangeSupport () const
 
void SetExchangeSupport ()
 
virtual void ActivatePage (const SfxItemSet &)
 
virtual DeactivateRC DeactivatePage (SfxItemSet *pSet)
 
void SetUserData (const OUString &rString)
 
const OUString & GetUserData () const
 
virtual void FillUserData ()
 
virtual bool IsReadOnly () const
 
virtual void PageCreated (const SfxAllItemSet &aSet)
 
virtual void ChangesApplied ()
 
void SetFrame (const css::uno::Reference< css::frame::XFrame > &xFrame)
 
css::uno::Reference< css::frame::XFrame > GetFrame () const
 
const SfxItemSetGetDialogExampleSet () const
 
OUString GetHelpId () const
 
OUString GetConfigId () const
 
bool IsVisible () const
 
weld::WindowGetFrameWeld () const
 
std::unordered_map< OUString, css::uno::Any > & getAdditionalProperties ()
 

Static Public Member Functions

static std::unique_ptr< SfxTabPageCreate (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rInAttrs)
 
- Static Public Member Functions inherited from SfxTabPage
static const SfxPoolItemGetItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
 
static const T * GetItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true)
 

Private Member Functions

void EnableControls ()
 
 DECL_LINK (SelectAxisTypeHdl, weld::ComboBox &, void)
 
 DECL_LINK (EnableValueHdl, weld::Toggleable &, void)
 
bool ShowWarning (TranslateId pResIdMessage, weld::Widget *pControl)
 shows a warning window due to an invalid input. More...
 
void HideAllControls ()
 

Private Attributes

double fMin
 
double fMax
 
double fStepMain
 
sal_Int32 nStepHelp
 
double fOrigin
 
sal_Int32 m_nTimeResolution
 
sal_Int32 m_nMainTimeUnit
 
sal_Int32 m_nHelpTimeUnit
 
int m_nAxisType
 
bool m_bAllowDateAxis
 
SvNumberFormatterpNumFormatter
 
bool m_bShowAxisOrigin
 
std::unique_ptr< weld::CheckButtonm_xCbxReverse
 
std::unique_ptr< weld::CheckButtonm_xCbxLogarithm
 
std::unique_ptr< weld::Widgetm_xBxType
 
std::unique_ptr< weld::ComboBoxm_xLB_AxisType
 
std::unique_ptr< weld::Widgetm_xBxMinMax
 
std::unique_ptr< weld::FormattedSpinButtonm_xFmtFldMin
 
std::unique_ptr< weld::CheckButtonm_xCbxAutoMin
 
std::unique_ptr< weld::FormattedSpinButtonm_xFmtFldMax
 
std::unique_ptr< weld::CheckButtonm_xCbxAutoMax
 
std::unique_ptr< weld::Widgetm_xBxResolution
 
std::unique_ptr< weld::ComboBoxm_xLB_TimeResolution
 
std::unique_ptr< weld::CheckButtonm_xCbx_AutoTimeResolution
 
std::unique_ptr< weld::Labelm_xTxtMain
 
std::unique_ptr< weld::FormattedSpinButtonm_xFmtFldStepMain
 
std::unique_ptr< weld::SpinButtonm_xMt_MainDateStep
 
std::unique_ptr< weld::ComboBoxm_xLB_MainTimeUnit
 
std::unique_ptr< weld::CheckButtonm_xCbxAutoStepMain
 
std::unique_ptr< weld::Labelm_xTxtHelpCount
 
std::unique_ptr< weld::Labelm_xTxtHelp
 
std::unique_ptr< weld::SpinButtonm_xMtStepHelp
 
std::unique_ptr< weld::ComboBoxm_xLB_HelpTimeUnit
 
std::unique_ptr< weld::CheckButtonm_xCbxAutoStepHelp
 
std::unique_ptr< weld::FormattedSpinButtonm_xFmtFldOrigin
 
std::unique_ptr< weld::CheckButtonm_xCbxAutoOrigin
 
std::unique_ptr< weld::Widgetm_xBxOrigin
 

Additional Inherited Members

- Protected Member Functions inherited from SfxTabPage
 SfxTabPage (weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet *rAttrSet)
 
sal_uInt16 GetWhich (sal_uInt16 nSlot, bool bDeep=true) const
 
TypedWhichId< T > GetWhich (TypedWhichId< T > nSlot, bool bDeep=true) const
 
const SfxPoolItemGetOldItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
 
const T * GetOldItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true)
 
SfxOkDialogControllerGetDialogController () const
 

Detailed Description

Definition at line 27 of file tp_Scale.hxx.

Constructor & Destructor Documentation

◆ ScaleTabPage()

chart::ScaleTabPage::ScaleTabPage ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rInAttrs 
)

◆ ~ScaleTabPage()

chart::ScaleTabPage::~ScaleTabPage ( )
overridevirtual

Definition at line 121 of file tp_Scale.cxx.

Member Function Documentation

◆ Create()

std::unique_ptr< SfxTabPage > chart::ScaleTabPage::Create ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rInAttrs 
)
static

Definition at line 229 of file tp_Scale.cxx.

Referenced by chart::SchAttribTabDlg::SchAttribTabDlg().

◆ DeactivatePage()

DeactivateRC chart::ScaleTabPage::DeactivatePage ( SfxItemSet pItemSet)
overridevirtual

◆ DECL_LINK() [1/2]

chart::ScaleTabPage::DECL_LINK ( EnableValueHdl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [2/2]

chart::ScaleTabPage::DECL_LINK ( SelectAxisTypeHdl  ,
weld::ComboBox ,
void   
)
private

◆ EnableControls()

void chart::ScaleTabPage::EnableControls ( )
private

◆ FillItemSet()

bool chart::ScaleTabPage::FillItemSet ( SfxItemSet rOutAttrs)
overridevirtual

◆ HideAllControls()

void chart::ScaleTabPage::HideAllControls ( )
private

◆ Reset()

void chart::ScaleTabPage::Reset ( const SfxItemSet rInAttrs)
overridevirtual

◆ SetNumFormat()

void chart::ScaleTabPage::SetNumFormat ( )

◆ SetNumFormatter()

void chart::ScaleTabPage::SetNumFormatter ( SvNumberFormatter pFormatter)

◆ ShowAxisOrigin()

void chart::ScaleTabPage::ShowAxisOrigin ( bool  bShowOrigin)

◆ ShowWarning()

bool chart::ScaleTabPage::ShowWarning ( TranslateId  pResIdMessage,
weld::Widget pControl 
)
private

shows a warning window due to an invalid input.

Parameters
pResIdMessageThe resource identifier that represents the localized warning text. If this is nullptr, no warning is shown and false is returned.
pControlIf non-NULL, contains a pointer to the control in which the erroneous value was in. This method gives this control the focus and selects its content.
Returns
false, if nResIdMessage was 0, true otherwise

Definition at line 593 of file tp_Scale.cxx.

References Application::CreateMessageDialog(), SfxTabPage::GetFrameWeld(), weld::Widget::grab_focus(), chart::SchResId(), and weld::Entry::select_region().

Referenced by DeactivatePage().

Member Data Documentation

◆ fMax

double chart::ScaleTabPage::fMax
private

Definition at line 45 of file tp_Scale.hxx.

Referenced by DeactivatePage(), FillItemSet(), and Reset().

◆ fMin

double chart::ScaleTabPage::fMin
private

Definition at line 44 of file tp_Scale.hxx.

Referenced by DeactivatePage(), FillItemSet(), and Reset().

◆ fOrigin

double chart::ScaleTabPage::fOrigin
private

Definition at line 48 of file tp_Scale.hxx.

Referenced by DeactivatePage(), FillItemSet(), and Reset().

◆ fStepMain

double chart::ScaleTabPage::fStepMain
private

Definition at line 46 of file tp_Scale.hxx.

Referenced by DeactivatePage(), FillItemSet(), and Reset().

◆ m_bAllowDateAxis

bool chart::ScaleTabPage::m_bAllowDateAxis
private

Definition at line 53 of file tp_Scale.hxx.

Referenced by EnableControls(), FillItemSet(), and Reset().

◆ m_bShowAxisOrigin

bool chart::ScaleTabPage::m_bShowAxisOrigin
private

Definition at line 56 of file tp_Scale.hxx.

Referenced by EnableControls(), and ShowAxisOrigin().

◆ m_nAxisType

int chart::ScaleTabPage::m_nAxisType
private

Definition at line 52 of file tp_Scale.hxx.

Referenced by DeactivatePage(), EnableControls(), FillItemSet(), Reset(), and SetNumFormat().

◆ m_nHelpTimeUnit

sal_Int32 chart::ScaleTabPage::m_nHelpTimeUnit
private

Definition at line 51 of file tp_Scale.hxx.

Referenced by DeactivatePage(), FillItemSet(), and Reset().

◆ m_nMainTimeUnit

sal_Int32 chart::ScaleTabPage::m_nMainTimeUnit
private

Definition at line 50 of file tp_Scale.hxx.

Referenced by DeactivatePage(), FillItemSet(), and Reset().

◆ m_nTimeResolution

sal_Int32 chart::ScaleTabPage::m_nTimeResolution
private

Definition at line 49 of file tp_Scale.hxx.

Referenced by DeactivatePage(), FillItemSet(), and Reset().

◆ m_xBxMinMax

std::unique_ptr<weld::Widget> chart::ScaleTabPage::m_xBxMinMax
private

Definition at line 62 of file tp_Scale.hxx.

Referenced by EnableControls(), and HideAllControls().

◆ m_xBxOrigin

std::unique_ptr<weld::Widget> chart::ScaleTabPage::m_xBxOrigin
private

Definition at line 82 of file tp_Scale.hxx.

Referenced by EnableControls(), and HideAllControls().

◆ m_xBxResolution

std::unique_ptr<weld::Widget> chart::ScaleTabPage::m_xBxResolution
private

Definition at line 67 of file tp_Scale.hxx.

Referenced by EnableControls(), and HideAllControls().

◆ m_xBxType

std::unique_ptr<weld::Widget> chart::ScaleTabPage::m_xBxType
private

Definition at line 60 of file tp_Scale.hxx.

Referenced by EnableControls(), and HideAllControls().

◆ m_xCbx_AutoTimeResolution

std::unique_ptr<weld::CheckButton> chart::ScaleTabPage::m_xCbx_AutoTimeResolution
private

Definition at line 69 of file tp_Scale.hxx.

Referenced by DeactivatePage(), EnableControls(), FillItemSet(), Reset(), and ScaleTabPage().

◆ m_xCbxAutoMax

std::unique_ptr<weld::CheckButton> chart::ScaleTabPage::m_xCbxAutoMax
private

Definition at line 66 of file tp_Scale.hxx.

Referenced by DeactivatePage(), EnableControls(), FillItemSet(), Reset(), and ScaleTabPage().

◆ m_xCbxAutoMin

std::unique_ptr<weld::CheckButton> chart::ScaleTabPage::m_xCbxAutoMin
private

Definition at line 64 of file tp_Scale.hxx.

Referenced by DeactivatePage(), EnableControls(), FillItemSet(), Reset(), and ScaleTabPage().

◆ m_xCbxAutoOrigin

std::unique_ptr<weld::CheckButton> chart::ScaleTabPage::m_xCbxAutoOrigin
private

Definition at line 81 of file tp_Scale.hxx.

Referenced by DeactivatePage(), EnableControls(), FillItemSet(), Reset(), and ScaleTabPage().

◆ m_xCbxAutoStepHelp

std::unique_ptr<weld::CheckButton> chart::ScaleTabPage::m_xCbxAutoStepHelp
private

◆ m_xCbxAutoStepMain

std::unique_ptr<weld::CheckButton> chart::ScaleTabPage::m_xCbxAutoStepMain
private

◆ m_xCbxLogarithm

std::unique_ptr<weld::CheckButton> chart::ScaleTabPage::m_xCbxLogarithm
private

Definition at line 59 of file tp_Scale.hxx.

Referenced by DeactivatePage(), EnableControls(), FillItemSet(), HideAllControls(), and Reset().

◆ m_xCbxReverse

std::unique_ptr<weld::CheckButton> chart::ScaleTabPage::m_xCbxReverse
private

Definition at line 58 of file tp_Scale.hxx.

Referenced by FillItemSet(), and Reset().

◆ m_xFmtFldMax

std::unique_ptr<weld::FormattedSpinButton> chart::ScaleTabPage::m_xFmtFldMax
private

Definition at line 65 of file tp_Scale.hxx.

Referenced by DeactivatePage(), Reset(), ScaleTabPage(), SetNumFormat(), and SetNumFormatter().

◆ m_xFmtFldMin

std::unique_ptr<weld::FormattedSpinButton> chart::ScaleTabPage::m_xFmtFldMin
private

Definition at line 63 of file tp_Scale.hxx.

Referenced by DeactivatePage(), Reset(), ScaleTabPage(), SetNumFormat(), and SetNumFormatter().

◆ m_xFmtFldOrigin

std::unique_ptr<weld::FormattedSpinButton> chart::ScaleTabPage::m_xFmtFldOrigin
private

Definition at line 80 of file tp_Scale.hxx.

Referenced by DeactivatePage(), Reset(), ScaleTabPage(), SetNumFormat(), and SetNumFormatter().

◆ m_xFmtFldStepMain

std::unique_ptr<weld::FormattedSpinButton> chart::ScaleTabPage::m_xFmtFldStepMain
private

◆ m_xLB_AxisType

std::unique_ptr<weld::ComboBox> chart::ScaleTabPage::m_xLB_AxisType
private

Definition at line 61 of file tp_Scale.hxx.

Referenced by FillItemSet(), Reset(), and ScaleTabPage().

◆ m_xLB_HelpTimeUnit

std::unique_ptr<weld::ComboBox> chart::ScaleTabPage::m_xLB_HelpTimeUnit
private

Definition at line 78 of file tp_Scale.hxx.

Referenced by DeactivatePage(), EnableControls(), and Reset().

◆ m_xLB_MainTimeUnit

std::unique_ptr<weld::ComboBox> chart::ScaleTabPage::m_xLB_MainTimeUnit
private

Definition at line 73 of file tp_Scale.hxx.

Referenced by DeactivatePage(), EnableControls(), HideAllControls(), and Reset().

◆ m_xLB_TimeResolution

std::unique_ptr<weld::ComboBox> chart::ScaleTabPage::m_xLB_TimeResolution
private

Definition at line 68 of file tp_Scale.hxx.

Referenced by DeactivatePage(), and Reset().

◆ m_xMt_MainDateStep

std::unique_ptr<weld::SpinButton> chart::ScaleTabPage::m_xMt_MainDateStep
private

Definition at line 72 of file tp_Scale.hxx.

Referenced by DeactivatePage(), EnableControls(), HideAllControls(), and Reset().

◆ m_xMtStepHelp

std::unique_ptr<weld::SpinButton> chart::ScaleTabPage::m_xMtStepHelp
private

Definition at line 77 of file tp_Scale.hxx.

Referenced by DeactivatePage(), EnableControls(), HideAllControls(), and Reset().

◆ m_xTxtHelp

std::unique_ptr<weld::Label> chart::ScaleTabPage::m_xTxtHelp
private

Definition at line 76 of file tp_Scale.hxx.

Referenced by EnableControls(), and HideAllControls().

◆ m_xTxtHelpCount

std::unique_ptr<weld::Label> chart::ScaleTabPage::m_xTxtHelpCount
private

Definition at line 75 of file tp_Scale.hxx.

Referenced by EnableControls(), and HideAllControls().

◆ m_xTxtMain

std::unique_ptr<weld::Label> chart::ScaleTabPage::m_xTxtMain
private

Definition at line 70 of file tp_Scale.hxx.

Referenced by EnableControls(), and HideAllControls().

◆ nStepHelp

sal_Int32 chart::ScaleTabPage::nStepHelp
private

Definition at line 47 of file tp_Scale.hxx.

Referenced by DeactivatePage(), FillItemSet(), and Reset().

◆ pNumFormatter

SvNumberFormatter* chart::ScaleTabPage::pNumFormatter
private

Definition at line 54 of file tp_Scale.hxx.

Referenced by DeactivatePage(), FillItemSet(), Reset(), SetNumFormat(), and SetNumFormatter().


The documentation for this class was generated from the following files: