Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
8d124bc4
Kaydet (Commit)
8d124bc4
authored
Nis 15, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
make SvtURLBox ui buildable
Change-Id: I13a917c84678d4dc5a0e6dae80a1a494909ca1d3
üst
ca09d2df
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
14 deletions
+29
-14
libreoffice-catalog.xml.in
extras/source/glade/libreoffice-catalog.xml.in
+4
-0
inettbc.hxx
svtools/inc/svtools/inettbc.hxx
+4
-5
inettbc.cxx
svtools/source/control/inettbc.cxx
+21
-9
No files found.
extras/source/glade/libreoffice-catalog.xml.in
Dosyayı görüntüle @
8d124bc4
...
...
@@ -151,6 +151,10 @@
generic-name=
"ComboBoxNumeric"
parent=
"VclComboBoxText"
icon-name=
"widget-gtk-comboboxtext"
/>
<glade-widget-class
title=
"SvtURLBox"
name=
"svtlo-SvtURLBox"
generic-name=
"URLBox"
parent=
"VclComboBoxText"
icon-name=
"widget-gtk-comboboxtext"
/>
<glade-widget-class
title=
"Reference Button"
name=
"foruilo-RefButton"
generic-name=
"Reference Button"
parent=
"GtkButton"
icon-name=
"widget-gtk-button"
/>
...
...
svtools/inc/svtools/inettbc.hxx
Dosyayı görüntüle @
8d124bc4
...
...
@@ -51,8 +51,7 @@ friend class SvtURLBox_Impl;
SVT_DLLPRIVATE
void
TryAutoComplete
();
SVT_DLLPRIVATE
void
UpdatePicklistForSmartProtocol_Impl
();
DECL_DLLPRIVATE_LINK
(
AutoCompleteHdl_Impl
,
void
*
);
using
Window
::
ImplInit
;
SVT_DLLPRIVATE
void
ImplInit
();
SVT_DLLPRIVATE
void
Init
(
bool
bSetDefaultHelpID
);
protected
:
virtual
long
Notify
(
NotifyEvent
&
rNEvt
);
...
...
@@ -61,9 +60,9 @@ protected:
virtual
long
PreNotify
(
NotifyEvent
&
rNEvt
);
public
:
SvtURLBox
(
Window
*
pParent
,
INetProtocol
eSmart
=
INET_PROT_NOT_VALID
);
SvtURLBox
(
Window
*
pParent
,
WinBits
_nStyle
,
INetProtocol
eSmart
=
INET_PROT_NOT_VALID
);
SvtURLBox
(
Window
*
pParent
,
const
ResId
&
_rResId
,
INetProtocol
eSmart
=
INET_PROT_NOT_VALID
);
SvtURLBox
(
Window
*
pParent
,
INetProtocol
eSmart
=
INET_PROT_NOT_VALID
,
bool
bSetDefaultHelpID
=
true
);
SvtURLBox
(
Window
*
pParent
,
WinBits
_nStyle
,
INetProtocol
eSmart
=
INET_PROT_NOT_VALID
,
bool
bSetDefaultHelpID
=
true
);
SvtURLBox
(
Window
*
pParent
,
const
ResId
&
_rResId
,
INetProtocol
eSmart
=
INET_PROT_NOT_VALID
,
bool
bSetDefaultHelpID
=
true
);
~
SvtURLBox
();
void
SetBaseURL
(
const
String
&
rURL
);
...
...
svtools/source/control/inettbc.cxx
Dosyayı görüntüle @
8d124bc4
...
...
@@ -41,10 +41,11 @@
#include <comphelper/processfactory.hxx>
#include <comphelper/string.hxx>
#include <rtl/instance.hxx>
#include <vcl/toolbox.hxx>
#include <salhelper/thread.hxx>
#include <osl/mutex.hxx>
#include <vcl/builder.hxx>
#include <vcl/svapp.hxx>
#include <vcl/toolbox.hxx>
#include <unotools/historyoptions.hxx>
#include <svl/eitem.hxx>
#include <svl/stritem.hxx>
...
...
@@ -843,7 +844,7 @@ void SvtURLBox::TryAutoComplete()
}
//-------------------------------------------------------------------------
SvtURLBox
::
SvtURLBox
(
Window
*
pParent
,
INetProtocol
eSmart
)
SvtURLBox
::
SvtURLBox
(
Window
*
pParent
,
INetProtocol
eSmart
,
bool
bSetDefaultHelpID
)
:
ComboBox
(
pParent
,
WB_DROPDOWN
|
WB_AUTOSIZE
|
WB_AUTOHSCROLL
),
eSmartProtocol
(
eSmart
),
bAutoCompleteMode
(
sal_False
),
...
...
@@ -853,7 +854,7 @@ SvtURLBox::SvtURLBox( Window* pParent, INetProtocol eSmart )
bNoSelection
(
sal_False
),
bIsAutoCompleteEnabled
(
sal_True
)
{
I
mplInit
(
);
I
nit
(
bSetDefaultHelpID
);
if
(
GetDesktopRectPixel
().
GetWidth
()
>
800
)
SetSizePixel
(
Size
(
300
,
240
)
);
...
...
@@ -862,7 +863,8 @@ SvtURLBox::SvtURLBox( Window* pParent, INetProtocol eSmart )
}
//-------------------------------------------------------------------------
SvtURLBox
::
SvtURLBox
(
Window
*
pParent
,
WinBits
_nStyle
,
INetProtocol
eSmart
)
SvtURLBox
::
SvtURLBox
(
Window
*
pParent
,
WinBits
_nStyle
,
INetProtocol
eSmart
,
bool
bSetDefaultHelpID
)
:
ComboBox
(
pParent
,
_nStyle
),
eSmartProtocol
(
eSmart
),
bAutoCompleteMode
(
sal_False
),
...
...
@@ -872,11 +874,21 @@ SvtURLBox::SvtURLBox( Window* pParent, WinBits _nStyle, INetProtocol eSmart )
bNoSelection
(
sal_False
),
bIsAutoCompleteEnabled
(
sal_True
)
{
ImplInit
();
Init
(
bSetDefaultHelpID
);
}
extern
"C"
SAL_DLLPUBLIC_EXPORT
Window
*
SAL_CALL
makeSvtURLBox
(
Window
*
pParent
,
VclBuilder
::
stringmap
&
)
{
WinBits
nWinBits
=
WB_LEFT
|
WB_VCENTER
|
WB_3DLOOK
|
WB_TABSTOP
|
WB_DROPDOWN
|
WB_AUTOSIZE
|
WB_AUTOHSCROLL
;
SvtURLBox
*
pListBox
=
new
SvtURLBox
(
pParent
,
nWinBits
,
INET_PROT_NOT_VALID
,
false
);
pListBox
->
EnableAutoSize
(
true
);
return
pListBox
;
}
//-------------------------------------------------------------------------
SvtURLBox
::
SvtURLBox
(
Window
*
pParent
,
const
ResId
&
_rResId
,
INetProtocol
eSmart
)
SvtURLBox
::
SvtURLBox
(
Window
*
pParent
,
const
ResId
&
_rResId
,
INetProtocol
eSmart
,
bool
bSetDefaultHelpID
)
:
ComboBox
(
pParent
,
_rResId
),
eSmartProtocol
(
eSmart
),
bAutoCompleteMode
(
sal_False
),
...
...
@@ -886,14 +898,14 @@ SvtURLBox::SvtURLBox( Window* pParent, const ResId& _rResId, INetProtocol eSmart
bNoSelection
(
sal_False
),
bIsAutoCompleteEnabled
(
sal_True
)
{
I
mplInit
(
);
I
nit
(
bSetDefaultHelpID
);
}
void
SvtURLBox
::
I
mplInit
(
)
void
SvtURLBox
::
I
nit
(
bool
bSetDefaultHelpID
)
{
pImp
=
new
SvtURLBox_Impl
();
if
(
GetHelpId
().
getLength
()
==
0
)
if
(
bSetDefaultHelpID
&&
GetHelpId
().
isEmpty
()
)
SetHelpId
(
".uno:OpenURL"
);
EnableAutocomplete
(
sal_False
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment