LibreOffice Module chart2 (master) 1
|
#include <tp_Scale.hxx>
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 SfxItemSet & | GetItemSet () 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 SfxItemSet * | GetDialogExampleSet () const |
OUString | GetHelpId () const |
OUString | GetConfigId () const |
bool | IsVisible () const |
weld::Window * | GetFrameWeld () const |
std::unordered_map< OUString, css::uno::Any > & | getAdditionalProperties () |
Static Public Member Functions | |
static std::unique_ptr< SfxTabPage > | Create (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rInAttrs) |
Static Public Member Functions inherited from SfxTabPage | |
static const SfxPoolItem * | GetItem (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 () |
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 SfxPoolItem * | GetOldItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true) |
const T * | GetOldItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true) |
SfxOkDialogController * | GetDialogController () const |
Definition at line 27 of file tp_Scale.hxx.
chart::ScaleTabPage::ScaleTabPage | ( | weld::Container * | pPage, |
weld::DialogController * | pController, | ||
const SfxItemSet & | rInAttrs | ||
) |
Definition at line 56 of file tp_Scale.cxx.
References Formatter::ClearMaxValue(), Formatter::ClearMinValue(), HideAllControls(), LINK, m_xCbx_AutoTimeResolution, m_xCbxAutoMax, m_xCbxAutoMin, m_xCbxAutoOrigin, m_xCbxAutoStepHelp, m_xCbxAutoStepMain, m_xFmtFldMax, m_xFmtFldMin, m_xFmtFldOrigin, m_xFmtFldStepMain, and m_xLB_AxisType.
|
overridevirtual |
Definition at line 121 of file tp_Scale.cxx.
|
static |
Definition at line 229 of file tp_Scale.cxx.
Referenced by chart::SchAttribTabDlg::SchAttribTabDlg().
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 380 of file tp_Scale.cxx.
References FillItemSet(), fMax, fMin, fOrigin, fStepMain, SvNumberFormatter::GetType(), SvNumberFormatter::IsNumberFormat(), m_nAxisType, m_nHelpTimeUnit, m_nMainTimeUnit, m_nTimeResolution, m_xCbx_AutoTimeResolution, m_xCbxAutoMax, m_xCbxAutoMin, m_xCbxAutoOrigin, m_xCbxAutoStepHelp, m_xCbxAutoStepMain, m_xCbxLogarithm, m_xFmtFldMax, m_xFmtFldMin, m_xFmtFldOrigin, m_xFmtFldStepMain, m_xLB_HelpTimeUnit, m_xLB_MainTimeUnit, m_xLB_TimeResolution, m_xMt_MainDateStep, m_xMtStepHelp, nStepHelp, pNumFormatter, and ShowWarning().
|
private |
|
private |
|
private |
Definition at line 125 of file tp_Scale.cxx.
References chart::lcl_setValue(), m_bAllowDateAxis, m_bShowAxisOrigin, m_nAxisType, m_xBxMinMax, m_xBxOrigin, m_xBxResolution, m_xBxType, m_xCbx_AutoTimeResolution, m_xCbxAutoMax, m_xCbxAutoMin, m_xCbxAutoOrigin, m_xCbxAutoStepHelp, m_xCbxAutoStepMain, m_xCbxLogarithm, m_xFmtFldStepMain, m_xLB_HelpTimeUnit, m_xLB_MainTimeUnit, m_xMt_MainDateStep, m_xMtStepHelp, m_xTxtHelp, m_xTxtHelpCount, and m_xTxtMain.
Referenced by Reset().
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 234 of file tp_Scale.cxx.
References fMax, fMin, fOrigin, fStepMain, m_bAllowDateAxis, m_nAxisType, m_nHelpTimeUnit, m_nMainTimeUnit, m_nTimeResolution, m_xCbx_AutoTimeResolution, m_xCbxAutoMax, m_xCbxAutoMin, m_xCbxAutoOrigin, m_xCbxAutoStepHelp, m_xCbxAutoStepMain, m_xCbxLogarithm, m_xCbxReverse, m_xLB_AxisType, nStepHelp, pNumFormatter, SfxItemSet::Put(), SCHATTR_AXIS_AUTO_DATEAXIS(), SCHATTR_AXIS_AUTO_MAX(), SCHATTR_AXIS_AUTO_MIN(), SCHATTR_AXIS_AUTO_ORIGIN(), SCHATTR_AXIS_AUTO_STEP_HELP(), SCHATTR_AXIS_AUTO_STEP_MAIN(), SCHATTR_AXIS_AUTO_TIME_RESOLUTION(), SCHATTR_AXIS_HELP_TIME_UNIT(), SCHATTR_AXIS_LOGARITHM(), SCHATTR_AXIS_MAIN_TIME_UNIT(), SCHATTR_AXIS_MAX(), SCHATTR_AXIS_MIN(), SCHATTR_AXIS_ORIGIN(), SCHATTR_AXIS_REVERSE(), SCHATTR_AXIS_STEP_HELP(), SCHATTR_AXIS_STEP_MAIN(), SCHATTR_AXIS_TIME_RESOLUTION(), and SCHATTR_AXISTYPE().
Referenced by DeactivatePage().
|
private |
Definition at line 612 of file tp_Scale.cxx.
References m_xBxMinMax, m_xBxOrigin, m_xBxResolution, m_xBxType, m_xCbxAutoStepHelp, m_xCbxAutoStepMain, m_xCbxLogarithm, m_xFmtFldStepMain, m_xLB_MainTimeUnit, m_xMt_MainDateStep, m_xMtStepHelp, m_xTxtHelp, m_xTxtHelpCount, and m_xTxtMain.
Referenced by ScaleTabPage().
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 269 of file tp_Scale.cxx.
References EnableControls(), fMax, fMin, fOrigin, fStepMain, SfxItemSet::GetItemIfSet(), chart::lcl_setValue(), m_bAllowDateAxis, m_nAxisType, m_nHelpTimeUnit, m_nMainTimeUnit, m_nTimeResolution, m_xCbx_AutoTimeResolution, m_xCbxAutoMax, m_xCbxAutoMin, m_xCbxAutoOrigin, m_xCbxAutoStepHelp, m_xCbxAutoStepMain, m_xCbxLogarithm, m_xCbxReverse, m_xFmtFldMax, m_xFmtFldMin, m_xFmtFldOrigin, m_xFmtFldStepMain, m_xLB_AxisType, m_xLB_HelpTimeUnit, m_xLB_MainTimeUnit, m_xLB_TimeResolution, m_xMt_MainDateStep, m_xMtStepHelp, nPos, nStepHelp, pNumFormatter, SCHATTR_AXIS_ALLOW_DATEAXIS(), SCHATTR_AXIS_AUTO_DATEAXIS(), SCHATTR_AXIS_AUTO_MAX(), SCHATTR_AXIS_AUTO_MIN(), SCHATTR_AXIS_AUTO_ORIGIN(), SCHATTR_AXIS_AUTO_STEP_HELP(), SCHATTR_AXIS_AUTO_STEP_MAIN(), SCHATTR_AXIS_AUTO_TIME_RESOLUTION(), SCHATTR_AXIS_HELP_TIME_UNIT(), SCHATTR_AXIS_LOGARITHM(), SCHATTR_AXIS_MAIN_TIME_UNIT(), SCHATTR_AXIS_MAX(), SCHATTR_AXIS_MIN(), SCHATTR_AXIS_ORIGIN(), SCHATTR_AXIS_REVERSE(), SCHATTR_AXIS_STEP_HELP(), SCHATTR_AXIS_STEP_MAIN(), SCHATTR_AXIS_TIME_RESOLUTION(), SCHATTR_AXISTYPE(), SetNumFormat(), TYPE_DATE, and TYPE_TEXT.
void chart::ScaleTabPage::SetNumFormat | ( | ) |
Definition at line 525 of file tp_Scale.cxx.
References eType, SvNumberFormatter::GetEntry(), SfxItemSet::GetItemIfSet(), SfxTabPage::GetItemSet(), SvNumberformat::GetLanguage(), GetLocaleDataWrapper(), Application::GetSettings(), SvNumberFormatter::GetStandardFormat(), SvNumberFormatter::GetStandardIndex(), SvNumberFormatter::GetType(), CntUInt32Item::GetValue(), getWidestDateTime(), m_nAxisType, m_xFmtFldMax, m_xFmtFldMin, m_xFmtFldOrigin, m_xFmtFldStepMain, pNumFormatter, Formatter::SetFormatKey(), and Width.
Referenced by Reset(), and SetNumFormatter().
void chart::ScaleTabPage::SetNumFormatter | ( | SvNumberFormatter * | pFormatter | ) |
Definition at line 499 of file tp_Scale.cxx.
References m_xFmtFldMax, m_xFmtFldMin, m_xFmtFldOrigin, m_xFmtFldStepMain, pNumFormatter, Formatter::SetFormatter(), SetNumFormat(), and Formatter::UseInputStringForFormatting().
Referenced by chart::SchAttribTabDlg::PageCreated().
void chart::ScaleTabPage::ShowAxisOrigin | ( | bool | bShowOrigin | ) |
Definition at line 586 of file tp_Scale.cxx.
References chart::AxisHelper::isAxisPositioningEnabled(), and m_bShowAxisOrigin.
Referenced by chart::SchAttribTabDlg::PageCreated().
|
private |
shows a warning window due to an invalid input.
pResIdMessage | The resource identifier that represents the localized warning text. If this is nullptr, no warning is shown and false is returned. |
pControl | If 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. |
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().
|
private |
Definition at line 45 of file tp_Scale.hxx.
Referenced by DeactivatePage(), FillItemSet(), and Reset().
|
private |
Definition at line 44 of file tp_Scale.hxx.
Referenced by DeactivatePage(), FillItemSet(), and Reset().
|
private |
Definition at line 48 of file tp_Scale.hxx.
Referenced by DeactivatePage(), FillItemSet(), and Reset().
|
private |
Definition at line 46 of file tp_Scale.hxx.
Referenced by DeactivatePage(), FillItemSet(), and Reset().
|
private |
Definition at line 53 of file tp_Scale.hxx.
Referenced by EnableControls(), FillItemSet(), and Reset().
|
private |
Definition at line 56 of file tp_Scale.hxx.
Referenced by EnableControls(), and ShowAxisOrigin().
|
private |
Definition at line 52 of file tp_Scale.hxx.
Referenced by DeactivatePage(), EnableControls(), FillItemSet(), Reset(), and SetNumFormat().
|
private |
Definition at line 51 of file tp_Scale.hxx.
Referenced by DeactivatePage(), FillItemSet(), and Reset().
|
private |
Definition at line 50 of file tp_Scale.hxx.
Referenced by DeactivatePage(), FillItemSet(), and Reset().
|
private |
Definition at line 49 of file tp_Scale.hxx.
Referenced by DeactivatePage(), FillItemSet(), and Reset().
|
private |
Definition at line 62 of file tp_Scale.hxx.
Referenced by EnableControls(), and HideAllControls().
|
private |
Definition at line 82 of file tp_Scale.hxx.
Referenced by EnableControls(), and HideAllControls().
|
private |
Definition at line 67 of file tp_Scale.hxx.
Referenced by EnableControls(), and HideAllControls().
|
private |
Definition at line 60 of file tp_Scale.hxx.
Referenced by EnableControls(), and HideAllControls().
|
private |
Definition at line 69 of file tp_Scale.hxx.
Referenced by DeactivatePage(), EnableControls(), FillItemSet(), Reset(), and ScaleTabPage().
|
private |
Definition at line 66 of file tp_Scale.hxx.
Referenced by DeactivatePage(), EnableControls(), FillItemSet(), Reset(), and ScaleTabPage().
|
private |
Definition at line 64 of file tp_Scale.hxx.
Referenced by DeactivatePage(), EnableControls(), FillItemSet(), Reset(), and ScaleTabPage().
|
private |
Definition at line 81 of file tp_Scale.hxx.
Referenced by DeactivatePage(), EnableControls(), FillItemSet(), Reset(), and ScaleTabPage().
|
private |
Definition at line 79 of file tp_Scale.hxx.
Referenced by DeactivatePage(), EnableControls(), FillItemSet(), HideAllControls(), Reset(), and ScaleTabPage().
|
private |
Definition at line 74 of file tp_Scale.hxx.
Referenced by DeactivatePage(), EnableControls(), FillItemSet(), HideAllControls(), Reset(), and ScaleTabPage().
|
private |
Definition at line 59 of file tp_Scale.hxx.
Referenced by DeactivatePage(), EnableControls(), FillItemSet(), HideAllControls(), and Reset().
|
private |
Definition at line 58 of file tp_Scale.hxx.
Referenced by FillItemSet(), and Reset().
|
private |
Definition at line 65 of file tp_Scale.hxx.
Referenced by DeactivatePage(), Reset(), ScaleTabPage(), SetNumFormat(), and SetNumFormatter().
|
private |
Definition at line 63 of file tp_Scale.hxx.
Referenced by DeactivatePage(), Reset(), ScaleTabPage(), SetNumFormat(), and SetNumFormatter().
|
private |
Definition at line 80 of file tp_Scale.hxx.
Referenced by DeactivatePage(), Reset(), ScaleTabPage(), SetNumFormat(), and SetNumFormatter().
|
private |
Definition at line 71 of file tp_Scale.hxx.
Referenced by DeactivatePage(), EnableControls(), HideAllControls(), Reset(), ScaleTabPage(), SetNumFormat(), and SetNumFormatter().
|
private |
Definition at line 61 of file tp_Scale.hxx.
Referenced by FillItemSet(), Reset(), and ScaleTabPage().
|
private |
Definition at line 78 of file tp_Scale.hxx.
Referenced by DeactivatePage(), EnableControls(), and Reset().
|
private |
Definition at line 73 of file tp_Scale.hxx.
Referenced by DeactivatePage(), EnableControls(), HideAllControls(), and Reset().
|
private |
Definition at line 68 of file tp_Scale.hxx.
Referenced by DeactivatePage(), and Reset().
|
private |
Definition at line 72 of file tp_Scale.hxx.
Referenced by DeactivatePage(), EnableControls(), HideAllControls(), and Reset().
|
private |
Definition at line 77 of file tp_Scale.hxx.
Referenced by DeactivatePage(), EnableControls(), HideAllControls(), and Reset().
|
private |
Definition at line 76 of file tp_Scale.hxx.
Referenced by EnableControls(), and HideAllControls().
|
private |
Definition at line 75 of file tp_Scale.hxx.
Referenced by EnableControls(), and HideAllControls().
|
private |
Definition at line 70 of file tp_Scale.hxx.
Referenced by EnableControls(), and HideAllControls().
|
private |
Definition at line 47 of file tp_Scale.hxx.
Referenced by DeactivatePage(), FillItemSet(), and Reset().
|
private |
Definition at line 54 of file tp_Scale.hxx.
Referenced by DeactivatePage(), FillItemSet(), Reset(), SetNumFormat(), and SetNumFormatter().