LibreOffice Module dbaccess (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
dbaui::OTextConnectionHelper Class Referencefinal

#include <TextConnectionHelper.hxx>

Collaboration diagram for dbaui::OTextConnectionHelper:
[legend]

Public Member Functions

 OTextConnectionHelper (weld::Widget *pParent, const short _nAvailableSections)
 
void implInitControls (const SfxItemSet &_rSet, bool _bValid)
 
void fillControls (std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList)
 
void fillWindows (std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList)
 
void SetClickHandler (const Link< OTextConnectionHelper *, void > &_rHandler)
 
OUString GetExtension () const
 
bool FillItemSet (SfxItemSet &rSet, const bool bChangedSomething)
 
bool prepareLeave ()
 

Private Member Functions

 DECL_LINK (OnSetExtensionHdl, weld::Toggleable &, void)
 
 DECL_LINK (OnEditModified, weld::Entry &, void)
 
OUString GetSeparator (const weld::ComboBox &rBox, std::u16string_view rList)
 
void SetSeparator (weld::ComboBox &rBox, std::u16string_view rList, const OUString &rVal)
 
void SetExtension (const OUString &_rVal)
 

Private Attributes

OUString m_aFieldSeparatorList
 
OUString m_aTextSeparatorList
 
OUString m_aTextNone
 
OUString m_aOldExtension
 
Link< OTextConnectionHelper *, void > m_aGetExtensionHandler
 
short m_nAvailableSections
 to be called if a new type is selected More...
 
std::unique_ptr< weld::Builderm_xBuilder
 
std::unique_ptr< weld::Widgetm_xContainer
 
std::unique_ptr< weld::Widgetm_xExtensionHeader
 
std::unique_ptr< weld::RadioButtonm_xAccessTextFiles
 
std::unique_ptr< weld::RadioButtonm_xAccessCSVFiles
 
std::unique_ptr< weld::RadioButtonm_xAccessOtherFiles
 
std::unique_ptr< weld::Entrym_xOwnExtension
 
std::unique_ptr< weld::Labelm_xExtensionExample
 
std::unique_ptr< weld::Widgetm_xFormatHeader
 
std::unique_ptr< weld::Labelm_xFieldSeparatorLabel
 
std::unique_ptr< weld::ComboBoxm_xFieldSeparator
 
std::unique_ptr< weld::Labelm_xTextSeparatorLabel
 
std::unique_ptr< weld::ComboBoxm_xTextSeparator
 
std::unique_ptr< weld::Labelm_xDecimalSeparatorLabel
 
std::unique_ptr< weld::ComboBoxm_xDecimalSeparator
 
std::unique_ptr< weld::Labelm_xThousandsSeparatorLabel
 
std::unique_ptr< weld::ComboBoxm_xThousandsSeparator
 
std::unique_ptr< weld::CheckButtonm_xRowHeader
 
std::unique_ptr< weld::Widgetm_xCharSetHeader
 
std::unique_ptr< weld::Labelm_xCharSetLabel
 
std::unique_ptr< CharSetListBoxm_xCharSet
 

Detailed Description

Definition at line 35 of file TextConnectionHelper.hxx.

Constructor & Destructor Documentation

◆ OTextConnectionHelper()

dbaui::OTextConnectionHelper::OTextConnectionHelper ( weld::Widget pParent,
const short  _nAvailableSections 
)

Member Function Documentation

◆ DECL_LINK() [1/2]

dbaui::OTextConnectionHelper::DECL_LINK ( OnEditModified  ,
weld::Entry ,
void   
)
private

◆ DECL_LINK() [2/2]

dbaui::OTextConnectionHelper::DECL_LINK ( OnSetExtensionHdl  ,
weld::Toggleable ,
void   
)
private

◆ fillControls()

void dbaui::OTextConnectionHelper::fillControls ( std::vector< std::unique_ptr< ISaveValueWrapper > > &  _rControlList)

◆ FillItemSet()

bool dbaui::OTextConnectionHelper::FillItemSet ( SfxItemSet rSet,
const bool  bChangedSomething 
)

◆ fillWindows()

void dbaui::OTextConnectionHelper::fillWindows ( std::vector< std::unique_ptr< ISaveValueWrapper > > &  _rControlList)

◆ GetExtension()

OUString dbaui::OTextConnectionHelper::GetExtension ( ) const

Definition at line 343 of file TextConnectionHelper.cxx.

References m_xAccessCSVFiles, m_xAccessTextFiles, and m_xOwnExtension.

Referenced by FillItemSet(), and prepareLeave().

◆ GetSeparator()

OUString dbaui::OTextConnectionHelper::GetSeparator ( const weld::ComboBox rBox,
std::u16string_view  rList 
)
private

◆ implInitControls()

void dbaui::OTextConnectionHelper::implInitControls ( const SfxItemSet _rSet,
bool  _bValid 
)

◆ prepareLeave()

bool dbaui::OTextConnectionHelper::prepareLeave ( )

◆ SetClickHandler()

void dbaui::OTextConnectionHelper::SetClickHandler ( const Link< OTextConnectionHelper *, void > &  _rHandler)
inline

Definition at line 82 of file TextConnectionHelper.hxx.

References m_aGetExtensionHandler.

◆ SetExtension()

void dbaui::OTextConnectionHelper::SetExtension ( const OUString &  _rVal)
private

◆ SetSeparator()

void dbaui::OTextConnectionHelper::SetSeparator ( weld::ComboBox rBox,
std::u16string_view  rList,
const OUString &  rVal 
)
private

Member Data Documentation

◆ m_aFieldSeparatorList

OUString dbaui::OTextConnectionHelper::m_aFieldSeparatorList
private

Definition at line 41 of file TextConnectionHelper.hxx.

Referenced by FillItemSet(), implInitControls(), and OTextConnectionHelper().

◆ m_aGetExtensionHandler

Link<OTextConnectionHelper*, void> dbaui::OTextConnectionHelper::m_aGetExtensionHandler
private

Definition at line 45 of file TextConnectionHelper.hxx.

Referenced by SetClickHandler().

◆ m_aOldExtension

OUString dbaui::OTextConnectionHelper::m_aOldExtension
private

Definition at line 44 of file TextConnectionHelper.hxx.

Referenced by FillItemSet(), and implInitControls().

◆ m_aTextNone

OUString dbaui::OTextConnectionHelper::m_aTextNone
private

Definition at line 43 of file TextConnectionHelper.hxx.

Referenced by OTextConnectionHelper(), and SetSeparator().

◆ m_aTextSeparatorList

OUString dbaui::OTextConnectionHelper::m_aTextSeparatorList
private

Definition at line 42 of file TextConnectionHelper.hxx.

Referenced by FillItemSet(), implInitControls(), and OTextConnectionHelper().

◆ m_nAvailableSections

short dbaui::OTextConnectionHelper::m_nAvailableSections
private

to be called if a new type is selected

Definition at line 47 of file TextConnectionHelper.hxx.

Referenced by FillItemSet(), implInitControls(), and OTextConnectionHelper().

◆ m_xAccessCSVFiles

std::unique_ptr<weld::RadioButton> dbaui::OTextConnectionHelper::m_xAccessCSVFiles
private

Definition at line 53 of file TextConnectionHelper.hxx.

Referenced by GetExtension(), OTextConnectionHelper(), and SetExtension().

◆ m_xAccessOtherFiles

std::unique_ptr<weld::RadioButton> dbaui::OTextConnectionHelper::m_xAccessOtherFiles
private

Definition at line 54 of file TextConnectionHelper.hxx.

Referenced by OTextConnectionHelper(), and SetExtension().

◆ m_xAccessTextFiles

std::unique_ptr<weld::RadioButton> dbaui::OTextConnectionHelper::m_xAccessTextFiles
private

Definition at line 52 of file TextConnectionHelper.hxx.

Referenced by GetExtension(), OTextConnectionHelper(), and SetExtension().

◆ m_xBuilder

std::unique_ptr<weld::Builder> dbaui::OTextConnectionHelper::m_xBuilder
private

Definition at line 49 of file TextConnectionHelper.hxx.

◆ m_xCharSet

std::unique_ptr<CharSetListBox> dbaui::OTextConnectionHelper::m_xCharSet
private

Definition at line 69 of file TextConnectionHelper.hxx.

Referenced by fillControls(), FillItemSet(), fillWindows(), and implInitControls().

◆ m_xCharSetHeader

std::unique_ptr<weld::Widget> dbaui::OTextConnectionHelper::m_xCharSetHeader
private

Definition at line 67 of file TextConnectionHelper.hxx.

Referenced by fillWindows(), and OTextConnectionHelper().

◆ m_xCharSetLabel

std::unique_ptr<weld::Label> dbaui::OTextConnectionHelper::m_xCharSetLabel
private

Definition at line 68 of file TextConnectionHelper.hxx.

Referenced by fillWindows().

◆ m_xContainer

std::unique_ptr<weld::Widget> dbaui::OTextConnectionHelper::m_xContainer
private

Definition at line 50 of file TextConnectionHelper.hxx.

Referenced by OTextConnectionHelper(), and prepareLeave().

◆ m_xDecimalSeparator

std::unique_ptr<weld::ComboBox> dbaui::OTextConnectionHelper::m_xDecimalSeparator
private

Definition at line 63 of file TextConnectionHelper.hxx.

Referenced by fillControls(), FillItemSet(), implInitControls(), and prepareLeave().

◆ m_xDecimalSeparatorLabel

std::unique_ptr<weld::Label> dbaui::OTextConnectionHelper::m_xDecimalSeparatorLabel
private

Definition at line 62 of file TextConnectionHelper.hxx.

Referenced by fillWindows(), and prepareLeave().

◆ m_xExtensionExample

std::unique_ptr<weld::Label> dbaui::OTextConnectionHelper::m_xExtensionExample
private

Definition at line 56 of file TextConnectionHelper.hxx.

Referenced by SetExtension().

◆ m_xExtensionHeader

std::unique_ptr<weld::Widget> dbaui::OTextConnectionHelper::m_xExtensionHeader
private

Definition at line 51 of file TextConnectionHelper.hxx.

Referenced by OTextConnectionHelper().

◆ m_xFieldSeparator

std::unique_ptr<weld::ComboBox> dbaui::OTextConnectionHelper::m_xFieldSeparator
private

◆ m_xFieldSeparatorLabel

std::unique_ptr<weld::Label> dbaui::OTextConnectionHelper::m_xFieldSeparatorLabel
private

Definition at line 58 of file TextConnectionHelper.hxx.

Referenced by fillWindows(), and prepareLeave().

◆ m_xFormatHeader

std::unique_ptr<weld::Widget> dbaui::OTextConnectionHelper::m_xFormatHeader
private

Definition at line 57 of file TextConnectionHelper.hxx.

Referenced by OTextConnectionHelper().

◆ m_xOwnExtension

std::unique_ptr<weld::Entry> dbaui::OTextConnectionHelper::m_xOwnExtension
private

Definition at line 55 of file TextConnectionHelper.hxx.

Referenced by GetExtension(), OTextConnectionHelper(), and prepareLeave().

◆ m_xRowHeader

std::unique_ptr<weld::CheckButton> dbaui::OTextConnectionHelper::m_xRowHeader
private

◆ m_xTextSeparator

std::unique_ptr<weld::ComboBox> dbaui::OTextConnectionHelper::m_xTextSeparator
private

◆ m_xTextSeparatorLabel

std::unique_ptr<weld::Label> dbaui::OTextConnectionHelper::m_xTextSeparatorLabel
private

Definition at line 60 of file TextConnectionHelper.hxx.

Referenced by fillWindows(), and prepareLeave().

◆ m_xThousandsSeparator

std::unique_ptr<weld::ComboBox> dbaui::OTextConnectionHelper::m_xThousandsSeparator
private

Definition at line 65 of file TextConnectionHelper.hxx.

Referenced by fillControls(), FillItemSet(), implInitControls(), and prepareLeave().

◆ m_xThousandsSeparatorLabel

std::unique_ptr<weld::Label> dbaui::OTextConnectionHelper::m_xThousandsSeparatorLabel
private

Definition at line 64 of file TextConnectionHelper.hxx.

Referenced by fillWindows(), and prepareLeave().


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