LibreOffice Module reportdesign (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
rptui::ODateTimeDialog Class Reference

#include <DateTime.hxx>

Inheritance diagram for rptui::ODateTimeDialog:
[legend]
Collaboration diagram for rptui::ODateTimeDialog:
[legend]

Public Member Functions

 ODateTimeDialog (weld::Window *pParent, css::uno::Reference< css::report::XSection > _xHoldAlive, ::rptui::OReportController *_pController)
 
virtual short run () override
 
- Public Member Functions inherited from weld::GenericDialogController
 GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OString &rDialogId, bool bMobile=false)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
virtual DialoggetDialog ()=0
 
const DialoggetConstDialog () const
 
virtual short run ()
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OString &rHelpId)
 
OString get_help_id () const
 
void response (int nResponse)
 
virtual ~DialogController () COVERITY_NOEXCEPT_FALSE
 

Private Member Functions

OUString getFormatStringByKey (::sal_Int32 _nNumberFormatKey, const css::uno::Reference< css::util::XNumberFormats > &_xFormats, bool _bTime)
 returns the format string More...
 
sal_Int32 getFormatKey (bool _bDate) const
 returns the number format key More...
 
 DECL_LINK (CBClickHdl, weld::Toggleable &, void)
 
 ODateTimeDialog (const ODateTimeDialog &)=delete
 
void operator= (const ODateTimeDialog &)=delete
 
void InsertEntry (sal_Int16 _nNumberFormatId)
 

Private Attributes

::rptui::OReportControllerm_pController
 
css::uno::Reference< css::report::XSection > m_xHoldAlive
 
css::lang::Locale m_nLocale
 
std::unique_ptr< weld::CheckButtonm_xDate
 
std::unique_ptr< weld::Labelm_xFTDateFormat
 
std::unique_ptr< weld::ComboBoxm_xDateListBox
 
std::unique_ptr< weld::CheckButtonm_xTime
 
std::unique_ptr< weld::Labelm_xFTTimeFormat
 
std::unique_ptr< weld::ComboBoxm_xTimeListBox
 
std::unique_ptr< weld::Buttonm_xPB_OK
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::DialogController
static bool runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
 
- Protected Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

Definition at line 35 of file DateTime.hxx.

Constructor & Destructor Documentation

◆ ODateTimeDialog() [1/2]

rptui::ODateTimeDialog::ODateTimeDialog ( const ODateTimeDialog )
privatedelete

◆ ODateTimeDialog() [2/2]

rptui::ODateTimeDialog::ODateTimeDialog ( weld::Window pParent,
css::uno::Reference< css::report::XSection >  _xHoldAlive,
::rptui::OReportController _pController 
)

Member Function Documentation

◆ DECL_LINK()

rptui::ODateTimeDialog::DECL_LINK ( CBClickHdl  ,
weld::Toggleable ,
void   
)
private

◆ getFormatKey()

sal_Int32 rptui::ODateTimeDialog::getFormatKey ( bool  _bDate) const
private

returns the number format key

Parameters
_nNumberFormatIndexthe number format index
See also
css::i18n::NumberFormatIndex

Definition at line 192 of file DateTime.cxx.

◆ getFormatStringByKey()

OUString rptui::ODateTimeDialog::getFormatStringByKey ( ::sal_Int32  _nNumberFormatKey,
const css::uno::Reference< css::util::XNumberFormats > &  _xFormats,
bool  _bTime 
)
private

returns the format string

Parameters
_nNumberFormatKeythe number format key
_xFormats
_bTime
Returns

Definition at line 147 of file DateTime.cxx.

References Date::GetDate(), tools::Time::GetTime(), nValue, Date::SYSTEM, and tools::Time::SYSTEM.

◆ InsertEntry()

void rptui::ODateTimeDialog::InsertEntry ( sal_Int16  _nNumberFormatId)
private

Definition at line 75 of file DateTime.cxx.

References weld::ComboBox::append().

◆ operator=()

void rptui::ODateTimeDialog::operator= ( const ODateTimeDialog )
privatedelete

◆ run()

short rptui::ODateTimeDialog::run ( )
overridevirtual

Member Data Documentation

◆ m_nLocale

css::lang::Locale rptui::ODateTimeDialog::m_nLocale
private

Definition at line 40 of file DateTime.hxx.

◆ m_pController

::rptui::OReportController* rptui::ODateTimeDialog::m_pController
private

Definition at line 37 of file DateTime.hxx.

◆ m_xDate

std::unique_ptr<weld::CheckButton> rptui::ODateTimeDialog::m_xDate
private

Definition at line 42 of file DateTime.hxx.

◆ m_xDateListBox

std::unique_ptr<weld::ComboBox> rptui::ODateTimeDialog::m_xDateListBox
private

Definition at line 44 of file DateTime.hxx.

◆ m_xFTDateFormat

std::unique_ptr<weld::Label> rptui::ODateTimeDialog::m_xFTDateFormat
private

Definition at line 43 of file DateTime.hxx.

◆ m_xFTTimeFormat

std::unique_ptr<weld::Label> rptui::ODateTimeDialog::m_xFTTimeFormat
private

Definition at line 46 of file DateTime.hxx.

◆ m_xHoldAlive

css::uno::Reference< css::report::XSection> rptui::ODateTimeDialog::m_xHoldAlive
private

Definition at line 39 of file DateTime.hxx.

◆ m_xPB_OK

std::unique_ptr<weld::Button> rptui::ODateTimeDialog::m_xPB_OK
private

Definition at line 48 of file DateTime.hxx.

◆ m_xTime

std::unique_ptr<weld::CheckButton> rptui::ODateTimeDialog::m_xTime
private

Definition at line 45 of file DateTime.hxx.

◆ m_xTimeListBox

std::unique_ptr<weld::ComboBox> rptui::ODateTimeDialog::m_xTimeListBox
private

Definition at line 47 of file DateTime.hxx.


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