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
d7094436
Kaydet (Commit)
d7094436
authored
Mar 03, 2011
tarafından
Jan Holesovsky
Kaydeden (comit)
Jan Holesovsky
Mar 03, 2011
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
findbar: Show the find bar on Ctrl-f, hide on Escape.
üst
f6b2932e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
2 deletions
+24
-2
tbunosearchcontrollers.cxx
svx/source/tbxctrls/tbunosearchcontrollers.cxx
+24
-2
No files found.
svx/source/tbxctrls/tbunosearchcontrollers.cxx
Dosyayı görüntüle @
d7094436
...
...
@@ -139,6 +139,21 @@ long FindTextFieldControl::PreNotify( NotifyEvent& rNEvt )
{
nRet
=
1
;
GrabFocusToDocument
();
// hide the findbar
css
::
uno
::
Reference
<
css
::
beans
::
XPropertySet
>
xPropSet
(
m_xFrame
,
css
::
uno
::
UNO_QUERY
);
if
(
xPropSet
.
is
())
{
css
::
uno
::
Reference
<
css
::
frame
::
XLayoutManager
>
xLayoutManager
;
css
::
uno
::
Any
aValue
=
xPropSet
->
getPropertyValue
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"LayoutManager"
)
)
);
aValue
>>=
xLayoutManager
;
if
(
xLayoutManager
.
is
())
{
const
::
rtl
::
OUString
sResourceURL
(
RTL_CONSTASCII_USTRINGPARAM
(
"private:resource/toolbar/findbar"
)
);
xLayoutManager
->
hideElement
(
sResourceURL
);
xLayoutManager
->
destroyElement
(
sResourceURL
);
}
}
}
if
(
KEY_RETURN
==
nCode
)
...
...
@@ -804,10 +819,17 @@ void SAL_CALL FindbarDispatcher::dispatch( const css::util::URL& aURL, const css
if
(
!
xLayoutManager
.
is
())
return
;
const
::
rtl
::
OUString
sResourceURL
=
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"private:resource/toolbar/findbar"
)
);
const
::
rtl
::
OUString
sResourceURL
(
RTL_CONSTASCII_USTRINGPARAM
(
"private:resource/toolbar/findbar"
)
);
css
::
uno
::
Reference
<
css
::
ui
::
XUIElement
>
xUIElement
=
xLayoutManager
->
getElement
(
sResourceURL
);
if
(
!
xUIElement
.
is
())
return
;
{
// show the findbar if necessary
xLayoutManager
->
createElement
(
sResourceURL
);
xLayoutManager
->
showElement
(
sResourceURL
);
xUIElement
=
xLayoutManager
->
getElement
(
sResourceURL
);
if
(
!
xUIElement
.
is
()
)
return
;
}
css
::
uno
::
Reference
<
css
::
awt
::
XWindow
>
xWindow
(
xUIElement
->
getRealInterface
(),
css
::
uno
::
UNO_QUERY
);
Window
*
pWindow
=
VCLUnoHelper
::
GetWindow
(
xWindow
);
...
...
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