diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-03 00:25:16 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-04 09:20:58 +0000 |
commit | 632c0e14ae14233abc0cb69b07cee854eb25ec04 (patch) | |
tree | 298cff5bef43c6f19f22ccd734d36cecb2c42094 /svtools | |
parent | a2297881820367980efab53970cb64fba35a00b8 (diff) |
convert link database dialog .ui
Change-Id: Ide66c2f088616b1677d03bad9095fa5829c4ffb7
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/urlcontrol.cxx | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/svtools/source/control/urlcontrol.cxx b/svtools/source/control/urlcontrol.cxx index 3a39ccaad402..d526a68e2e1a 100644 --- a/svtools/source/control/urlcontrol.cxx +++ b/svtools/source/control/urlcontrol.cxx @@ -18,8 +18,9 @@ */ +#include <svl/filenotation.hxx> #include <svtools/urlcontrol.hxx> -#include "svl/filenotation.hxx" +#include <vcl/layout.hxx> //......................................................................... namespace svt @@ -31,11 +32,26 @@ namespace svt //===================================================================== //--------------------------------------------------------------------- OFileURLControl::OFileURLControl(Window* _pParent, const ResId& _rId) - :SvtURLBox(_pParent, _rId, INET_PROT_FILE) + : SvtURLBox(_pParent, _rId, INET_PROT_FILE) { DisableHistory(); } + OFileURLControl::OFileURLControl(Window* _pParent, WinBits nStyle) + : SvtURLBox(_pParent, nStyle, INET_PROT_FILE) + { + DisableHistory(); + } + + extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeOFileURLControl(Window *pParent, VclBuilder::stringmap &) + { + WinBits nWinBits = WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_TABSTOP| + WB_DROPDOWN|WB_AUTOSIZE|WB_AUTOHSCROLL; + OFileURLControl* pListBox = new OFileURLControl(pParent, nWinBits); + pListBox->EnableAutoSize(true); + return pListBox; + } + //--------------------------------------------------------------------- bool OFileURLControl::PreNotify( NotifyEvent& _rNEvt ) { |