LibreOffice Module vcl (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
weld::PatternFormatter Class Referencefinal

#include <weldutils.hxx>

Collaboration diagram for weld::PatternFormatter:
[legend]

Public Member Functions

 PatternFormatter (weld::Entry &rEntry)
 
 ~PatternFormatter ()
 
weld::Entryget_widget ()
 
void SetMask (const OString &rEditMask, const OUString &rLiteralMask)
 
void SetStrictFormat (bool bStrict)
 
void ReformatAll ()
 
void connect_changed (const Link< weld::Entry &, void > &rLink)
 
void connect_focus_out (const Link< weld::Widget &, void > &rLink)
 
void connect_focus_in (const Link< weld::Widget &, void > &rLink)
 
void connect_key_press (const Link< const KeyEvent &, bool > &rLink)
 
SAL_DLLPRIVATE void Modify ()
 

Private Member Functions

SAL_DLLPRIVATE void EntryGainFocus ()
 
SAL_DLLPRIVATE void EntryLostFocus ()
 
 DECL_DLLPRIVATE_LINK (ModifyHdl, weld::Entry &, void)
 
 DECL_DLLPRIVATE_LINK (FocusInHdl, weld::Widget &, void)
 
 DECL_DLLPRIVATE_LINK (FocusOutHdl, weld::Widget &, void)
 
 DECL_DLLPRIVATE_LINK (KeyInputHdl, const KeyEvent &, bool)
 

Private Attributes

weld::Entrym_rEntry
 
Link< weld::Entry &, void > m_aModifyHdl
 
Link< weld::Widget &, void > m_aFocusInHdl
 
Link< weld::Widget &, void > m_aFocusOutHdl
 
Link< const KeyEvent &, bool > m_aKeyPressHdl
 
bool m_bStrictFormat
 
bool m_bSameMask
 
bool m_bReformat
 
bool m_bInPattKeyInput
 
OString m_aEditMask
 
OUString m_aLiteralMask
 

Detailed Description

Definition at line 361 of file weldutils.hxx.

Constructor & Destructor Documentation

◆ PatternFormatter()

PatternFormatter::PatternFormatter ( weld::Entry rEntry)

◆ ~PatternFormatter()

PatternFormatter::~PatternFormatter ( )

Member Function Documentation

◆ connect_changed()

void weld::PatternFormatter::connect_changed ( const Link< weld::Entry &, void > &  rLink)
inline

Definition at line 377 of file weldutils.hxx.

◆ connect_focus_in()

void weld::PatternFormatter::connect_focus_in ( const Link< weld::Widget &, void > &  rLink)
inline

Definition at line 379 of file weldutils.hxx.

◆ connect_focus_out()

void weld::PatternFormatter::connect_focus_out ( const Link< weld::Widget &, void > &  rLink)
inline

Definition at line 378 of file weldutils.hxx.

◆ connect_key_press()

void weld::PatternFormatter::connect_key_press ( const Link< const KeyEvent &, bool > &  rLink)
inline

Definition at line 380 of file weldutils.hxx.

◆ DECL_DLLPRIVATE_LINK() [1/4]

weld::PatternFormatter::DECL_DLLPRIVATE_LINK ( FocusInHdl  ,
weld::Widget ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [2/4]

weld::PatternFormatter::DECL_DLLPRIVATE_LINK ( FocusOutHdl  ,
weld::Widget ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [3/4]

weld::PatternFormatter::DECL_DLLPRIVATE_LINK ( KeyInputHdl  ,
const KeyEvent ,
bool   
)
private

◆ DECL_DLLPRIVATE_LINK() [4/4]

weld::PatternFormatter::DECL_DLLPRIVATE_LINK ( ModifyHdl  ,
weld::Entry ,
void   
)
private

◆ EntryGainFocus()

void weld::PatternFormatter::EntryGainFocus ( )
private

Definition at line 948 of file field2.cxx.

References m_bReformat.

◆ EntryLostFocus()

void weld::PatternFormatter::EntryLostFocus ( )
private

Definition at line 953 of file field2.cxx.

References m_bReformat, and ReformatAll().

◆ get_widget()

weld::Entry & weld::PatternFormatter::get_widget ( )
inline

Definition at line 367 of file weldutils.hxx.

◆ Modify()

void weld::PatternFormatter::Modify ( )

◆ ReformatAll()

void weld::PatternFormatter::ReformatAll ( )

◆ SetMask()

void weld::PatternFormatter::SetMask ( const OString &  rEditMask,
const OUString &  rLiteralMask 
)

Definition at line 859 of file field2.cxx.

◆ SetStrictFormat()

void weld::PatternFormatter::SetStrictFormat ( bool  bStrict)

Definition at line 922 of file field2.cxx.

References m_bStrictFormat, and ReformatAll().

Member Data Documentation

◆ m_aEditMask

OString weld::PatternFormatter::m_aEditMask
private

Definition at line 394 of file weldutils.hxx.

Referenced by Modify(), and ReformatAll().

◆ m_aFocusInHdl

Link<weld::Widget&, void> weld::PatternFormatter::m_aFocusInHdl
private

Definition at line 387 of file weldutils.hxx.

◆ m_aFocusOutHdl

Link<weld::Widget&, void> weld::PatternFormatter::m_aFocusOutHdl
private

Definition at line 388 of file weldutils.hxx.

◆ m_aKeyPressHdl

Link<const KeyEvent&, bool> weld::PatternFormatter::m_aKeyPressHdl
private

Definition at line 389 of file weldutils.hxx.

◆ m_aLiteralMask

OUString weld::PatternFormatter::m_aLiteralMask
private

Definition at line 395 of file weldutils.hxx.

Referenced by Modify(), and ReformatAll().

◆ m_aModifyHdl

Link<weld::Entry&, void> weld::PatternFormatter::m_aModifyHdl
private

Definition at line 386 of file weldutils.hxx.

Referenced by Modify().

◆ m_bInPattKeyInput

bool weld::PatternFormatter::m_bInPattKeyInput
private

Definition at line 393 of file weldutils.hxx.

Referenced by Modify().

◆ m_bReformat

bool weld::PatternFormatter::m_bReformat
private

Definition at line 392 of file weldutils.hxx.

Referenced by EntryGainFocus(), EntryLostFocus(), and Modify().

◆ m_bSameMask

bool weld::PatternFormatter::m_bSameMask
private

Definition at line 391 of file weldutils.hxx.

Referenced by Modify(), and ReformatAll().

◆ m_bStrictFormat

bool weld::PatternFormatter::m_bStrictFormat
private

Definition at line 390 of file weldutils.hxx.

Referenced by Modify(), ReformatAll(), and SetStrictFormat().

◆ m_rEntry

weld::Entry& weld::PatternFormatter::m_rEntry
private

Definition at line 385 of file weldutils.hxx.

Referenced by Modify(), PatternFormatter(), ReformatAll(), and ~PatternFormatter().


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