LibreOffice Module dbaccess (master) 1
|
#include <TextConnectionHelper.hxx>
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) |
Definition at line 35 of file TextConnectionHelper.hxx.
dbaui::OTextConnectionHelper::OTextConnectionHelper | ( | weld::Widget * | pParent, |
const short | _nAvailableSections | ||
) |
Definition at line 59 of file TextConnectionHelper.cxx.
References LINK, m_aFieldSeparatorList, m_aTextNone, m_aTextSeparatorList, m_nAvailableSections, m_xAccessCSVFiles, m_xAccessOtherFiles, m_xAccessTextFiles, m_xCharSetHeader, m_xContainer, m_xExtensionHeader, m_xFieldSeparator, m_xFormatHeader, m_xOwnExtension, m_xRowHeader, m_xTextSeparator, section, TC_CHARSET, TC_EXTENSION, TC_HEADER, and TC_SEPARATORS.
|
private |
|
private |
void dbaui::OTextConnectionHelper::fillControls | ( | std::vector< std::unique_ptr< ISaveValueWrapper > > & | _rControlList | ) |
Definition at line 138 of file TextConnectionHelper.cxx.
References m_xCharSet, m_xDecimalSeparator, m_xFieldSeparator, m_xRowHeader, m_xTextSeparator, and m_xThousandsSeparator.
bool dbaui::OTextConnectionHelper::FillItemSet | ( | SfxItemSet & | rSet, |
const bool | bChangedSomething | ||
) |
Definition at line 273 of file TextConnectionHelper.cxx.
References DSID_CHARSET, DSID_DECIMALDELIMITER, DSID_FIELDDELIMITER, DSID_TEXTDELIMITER, DSID_TEXTFILEEXTENSION, DSID_TEXTFILEHEADER, DSID_THOUSANDSDELIMITER, GetExtension(), GetSeparator(), m_aFieldSeparatorList, m_aOldExtension, m_aTextSeparatorList, m_nAvailableSections, m_xCharSet, m_xDecimalSeparator, m_xFieldSeparator, m_xRowHeader, m_xTextSeparator, m_xThousandsSeparator, SfxItemSet::Put(), rSet, TC_CHARSET, TC_EXTENSION, TC_HEADER, and TC_SEPARATORS.
void dbaui::OTextConnectionHelper::fillWindows | ( | std::vector< std::unique_ptr< ISaveValueWrapper > > & | _rControlList | ) |
Definition at line 148 of file TextConnectionHelper.cxx.
References m_xCharSet, m_xCharSetHeader, m_xCharSetLabel, m_xDecimalSeparatorLabel, m_xFieldSeparatorLabel, m_xTextSeparatorLabel, and m_xThousandsSeparatorLabel.
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().
|
private |
Definition at line 359 of file TextConnectionHelper.cxx.
References weld::ComboBox::find_text(), weld::ComboBox::get_active_text(), weld::ComboBox::get_count(), o3tl::getToken(), m_xTextSeparator, nPos, and o3tl::toInt32().
Referenced by FillItemSet().
void dbaui::OTextConnectionHelper::implInitControls | ( | const SfxItemSet & | _rSet, |
bool | _bValid | ||
) |
Definition at line 159 of file TextConnectionHelper.cxx.
References DSID_CHARSET, DSID_DECIMALDELIMITER, DSID_FIELDDELIMITER, DSID_TEXTDELIMITER, DSID_TEXTFILEEXTENSION, DSID_TEXTFILEHEADER, DSID_THOUSANDSDELIMITER, SfxItemSet::GetItem(), CntUnencodedStringItem::GetValue(), SfxBoolItem::GetValue(), m_aFieldSeparatorList, m_aOldExtension, m_aTextSeparatorList, m_nAvailableSections, m_xCharSet, m_xDecimalSeparator, m_xFieldSeparator, m_xRowHeader, m_xTextSeparator, m_xThousandsSeparator, SetExtension(), SetSeparator(), TC_CHARSET, TC_EXTENSION, TC_HEADER, and TC_SEPARATORS.
bool dbaui::OTextConnectionHelper::prepareLeave | ( | ) |
Definition at line 197 of file TextConnectionHelper.cxx.
References Application::CreateMessageDialog(), DBA_RES, MnemonicGenerator::EraseAllMnemonicChars(), GetExtension(), weld::Widget::grab_focus(), m_xContainer, m_xDecimalSeparator, m_xDecimalSeparatorLabel, m_xFieldSeparator, m_xFieldSeparatorLabel, m_xOwnExtension, m_xTextSeparator, m_xTextSeparatorLabel, m_xThousandsSeparator, and m_xThousandsSeparatorLabel.
|
inline |
Definition at line 82 of file TextConnectionHelper.hxx.
References m_aGetExtensionHandler.
|
private |
Definition at line 330 of file TextConnectionHelper.cxx.
References m_xAccessCSVFiles, m_xAccessOtherFiles, m_xAccessTextFiles, and m_xExtensionExample.
Referenced by implInitControls().
|
private |
Definition at line 374 of file TextConnectionHelper.cxx.
References o3tl::getToken(), m_aTextNone, m_xTextSeparator, weld::ComboBox::set_entry_text(), and o3tl::toInt32().
Referenced by implInitControls().
|
private |
Definition at line 41 of file TextConnectionHelper.hxx.
Referenced by FillItemSet(), implInitControls(), and OTextConnectionHelper().
|
private |
Definition at line 45 of file TextConnectionHelper.hxx.
Referenced by SetClickHandler().
|
private |
Definition at line 44 of file TextConnectionHelper.hxx.
Referenced by FillItemSet(), and implInitControls().
|
private |
Definition at line 43 of file TextConnectionHelper.hxx.
Referenced by OTextConnectionHelper(), and SetSeparator().
|
private |
Definition at line 42 of file TextConnectionHelper.hxx.
Referenced by FillItemSet(), implInitControls(), and OTextConnectionHelper().
|
private |
to be called if a new type is selected
Definition at line 47 of file TextConnectionHelper.hxx.
Referenced by FillItemSet(), implInitControls(), and OTextConnectionHelper().
|
private |
Definition at line 53 of file TextConnectionHelper.hxx.
Referenced by GetExtension(), OTextConnectionHelper(), and SetExtension().
|
private |
Definition at line 54 of file TextConnectionHelper.hxx.
Referenced by OTextConnectionHelper(), and SetExtension().
|
private |
Definition at line 52 of file TextConnectionHelper.hxx.
Referenced by GetExtension(), OTextConnectionHelper(), and SetExtension().
|
private |
Definition at line 49 of file TextConnectionHelper.hxx.
|
private |
Definition at line 69 of file TextConnectionHelper.hxx.
Referenced by fillControls(), FillItemSet(), fillWindows(), and implInitControls().
|
private |
Definition at line 67 of file TextConnectionHelper.hxx.
Referenced by fillWindows(), and OTextConnectionHelper().
|
private |
Definition at line 68 of file TextConnectionHelper.hxx.
Referenced by fillWindows().
|
private |
Definition at line 50 of file TextConnectionHelper.hxx.
Referenced by OTextConnectionHelper(), and prepareLeave().
|
private |
Definition at line 63 of file TextConnectionHelper.hxx.
Referenced by fillControls(), FillItemSet(), implInitControls(), and prepareLeave().
|
private |
Definition at line 62 of file TextConnectionHelper.hxx.
Referenced by fillWindows(), and prepareLeave().
|
private |
Definition at line 56 of file TextConnectionHelper.hxx.
Referenced by SetExtension().
|
private |
Definition at line 51 of file TextConnectionHelper.hxx.
Referenced by OTextConnectionHelper().
|
private |
Definition at line 59 of file TextConnectionHelper.hxx.
Referenced by fillControls(), FillItemSet(), implInitControls(), OTextConnectionHelper(), and prepareLeave().
|
private |
Definition at line 58 of file TextConnectionHelper.hxx.
Referenced by fillWindows(), and prepareLeave().
|
private |
Definition at line 57 of file TextConnectionHelper.hxx.
Referenced by OTextConnectionHelper().
|
private |
Definition at line 55 of file TextConnectionHelper.hxx.
Referenced by GetExtension(), OTextConnectionHelper(), and prepareLeave().
|
private |
Definition at line 66 of file TextConnectionHelper.hxx.
Referenced by fillControls(), FillItemSet(), implInitControls(), and OTextConnectionHelper().
|
private |
Definition at line 61 of file TextConnectionHelper.hxx.
Referenced by fillControls(), FillItemSet(), GetSeparator(), implInitControls(), OTextConnectionHelper(), prepareLeave(), and SetSeparator().
|
private |
Definition at line 60 of file TextConnectionHelper.hxx.
Referenced by fillWindows(), and prepareLeave().
|
private |
Definition at line 65 of file TextConnectionHelper.hxx.
Referenced by fillControls(), FillItemSet(), implInitControls(), and prepareLeave().
|
private |
Definition at line 64 of file TextConnectionHelper.hxx.
Referenced by fillWindows(), and prepareLeave().