From 632c0e14ae14233abc0cb69b07cee854eb25ec04 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 3 Feb 2014 00:25:16 +0000 Subject: convert link database dialog .ui Change-Id: Ide66c2f088616b1677d03bad9095fa5829c4ffb7 --- svtools/source/control/urlcontrol.cxx | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'svtools') 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 #include -#include "svl/filenotation.hxx" +#include //......................................................................... 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 ) { -- cgit