Hide calc input bar tooltips in online
Change-Id: I07b364d55a3578161087eef281e313d5efae3ba7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105632 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108797 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
This commit is contained in:
parent
2298b055ca
commit
ce30c3100e
@ -213,17 +213,18 @@ ScInputWindow::ScInputWindow( vcl::Window* pParent, const SfxBindings* pBind ) :
|
||||
// sigma and equal buttons
|
||||
if (!bIsLOKMobilePhone)
|
||||
{
|
||||
SetItemText (SID_INPUT_SUM, ScResId( SCSTR_QHELP_BTNSUM ) );
|
||||
SetHelpId (SID_INPUT_SUM, HID_INSWIN_SUMME);
|
||||
|
||||
SetItemText (SID_INPUT_EQUAL, ScResId( SCSTR_QHELP_BTNEQUAL ) );
|
||||
SetHelpId (SID_INPUT_EQUAL, HID_INSWIN_FUNC);
|
||||
SetHelpId (SID_INPUT_CANCEL, HID_INSWIN_CANCEL);
|
||||
SetHelpId (SID_INPUT_OK, HID_INSWIN_OK);
|
||||
|
||||
SetItemText ( SID_INPUT_CANCEL, ScResId( SCSTR_QHELP_BTNCANCEL ) );
|
||||
SetHelpId ( SID_INPUT_CANCEL, HID_INSWIN_CANCEL );
|
||||
|
||||
SetItemText ( SID_INPUT_OK, ScResId( SCSTR_QHELP_BTNOK ) );
|
||||
SetHelpId ( SID_INPUT_OK, HID_INSWIN_OK );
|
||||
if (!comphelper::LibreOfficeKit::isActive())
|
||||
{
|
||||
SetItemText ( SID_INPUT_SUM, ScResId( SCSTR_QHELP_BTNSUM ) );
|
||||
SetItemText ( SID_INPUT_EQUAL, ScResId( SCSTR_QHELP_BTNEQUAL ) );
|
||||
SetItemText ( SID_INPUT_CANCEL, ScResId( SCSTR_QHELP_BTNCANCEL ) );
|
||||
SetItemText ( SID_INPUT_OK, ScResId( SCSTR_QHELP_BTNOK ) );
|
||||
}
|
||||
|
||||
EnableItem( SID_INPUT_CANCEL, false );
|
||||
EnableItem( SID_INPUT_OK, false );
|
||||
@ -880,8 +881,11 @@ ScInputBarGroup::ScInputBarGroup(vcl::Window* pParent, ScTabViewShell* pViewSh)
|
||||
mxButtonUp->connect_clicked(LINK(this, ScInputBarGroup, ClickHdl));
|
||||
mxButtonDown->connect_clicked(LINK(this, ScInputBarGroup, ClickHdl));
|
||||
|
||||
mxButtonUp->set_tooltip_text(ScResId( SCSTR_QHELP_COLLAPSE_FORMULA));
|
||||
mxButtonDown->set_tooltip_text(ScResId(SCSTR_QHELP_EXPAND_FORMULA));
|
||||
if (!comphelper::LibreOfficeKit::isActive())
|
||||
{
|
||||
mxButtonUp->set_tooltip_text(ScResId( SCSTR_QHELP_COLLAPSE_FORMULA));
|
||||
mxButtonDown->set_tooltip_text(ScResId(SCSTR_QHELP_EXPAND_FORMULA));
|
||||
}
|
||||
|
||||
int nHeight = mxTextWndGroup->GetPixelHeightForLines(1);
|
||||
mxButtonUp->set_size_request(-1, nHeight);
|
||||
|
Loading…
x
Reference in New Issue
Block a user