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, const 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
const DialoggetConstDialog () const
 
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::ToggleButton &, 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

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

Member Function Documentation

rptui::ODateTimeDialog::DECL_LINK ( CBClickHdl  ,
weld::ToggleButton ,
void   
)
private
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 190 of file DateTime.cxx.

References m_xDateListBox, and m_xTimeListBox.

Referenced by run().

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 145 of file DateTime.cxx.

References Date::GetDate(), rptui::OReportController::getReportNumberFormatter(), tools::Time::GetTime(), m_nLocale, m_pController, nValue, Date::SYSTEM, tools::Time::SYSTEM, dbtools::DBTypeConversion::toDate(), and dbtools::DBTypeConversion::toTime().

Referenced by InsertEntry().

void rptui::ODateTimeDialog::InsertEntry ( sal_Int16  _nNumberFormatId)
private
void rptui::ODateTimeDialog::operator= ( const ODateTimeDialog )
privatedelete
short rptui::ODateTimeDialog::run ( )
overridevirtual

Member Data Documentation

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

Definition at line 40 of file DateTime.hxx.

Referenced by getFormatStringByKey(), and InsertEntry().

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

Definition at line 37 of file DateTime.hxx.

Referenced by getFormatStringByKey(), InsertEntry(), and run().

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

Definition at line 42 of file DateTime.hxx.

Referenced by run().

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

Definition at line 44 of file DateTime.hxx.

Referenced by getFormatKey(), InsertEntry(), and run().

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

Definition at line 43 of file DateTime.hxx.

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

Definition at line 46 of file DateTime.hxx.

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

Definition at line 39 of file DateTime.hxx.

Referenced by run().

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

Definition at line 48 of file DateTime.hxx.

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

Definition at line 45 of file DateTime.hxx.

Referenced by run().

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

Definition at line 47 of file DateTime.hxx.

Referenced by getFormatKey(), InsertEntry(), and run().


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