unwind RID_POPUP_FILTER local resource
Change-Id: I7369b3eb0e0d937c135fe591beafe9ec96ea9c17
This commit is contained in:
@@ -1105,7 +1105,15 @@
|
|||||||
#define STR_ZTEST_P_TWO_TAIL (STR_START + 546)
|
#define STR_ZTEST_P_TWO_TAIL (STR_START + 546)
|
||||||
#define STR_ZTEST_Z_CRITICAL_TWO_TAIL (STR_START + 547)
|
#define STR_ZTEST_Z_CRITICAL_TWO_TAIL (STR_START + 547)
|
||||||
|
|
||||||
#define STR_END (STR_ZTEST_Z_CRITICAL_TWO_TAIL)
|
#define STR_MENU_SORT_ASC (STR_START + 548)
|
||||||
|
#define STR_MENU_SORT_DESC (STR_START + 549)
|
||||||
|
#define STR_MENU_SORT_CUSTOM (STR_START + 550)
|
||||||
|
#define STR_BTN_TOGGLE_ALL (STR_START + 551)
|
||||||
|
#define STR_BTN_SELECT_CURRENT (STR_START + 552)
|
||||||
|
#define STR_BTN_UNSELECT_CURRENT (STR_START + 553)
|
||||||
|
#define STR_EDIT_SEARCH_ITEMS (STR_START + 554)
|
||||||
|
|
||||||
|
#define STR_END (STR_EDIT_SEARCH_ITEMS)
|
||||||
|
|
||||||
#define BMP_START (STR_END)
|
#define BMP_START (STR_END)
|
||||||
|
|
||||||
@@ -1222,8 +1230,6 @@
|
|||||||
#define BMP_STYLES_FAMILY_CELL (SC_DIALOGS_START + 140)
|
#define BMP_STYLES_FAMILY_CELL (SC_DIALOGS_START + 140)
|
||||||
#define BMP_STYLES_FAMILY_PAGE (SC_DIALOGS_START + 141)
|
#define BMP_STYLES_FAMILY_PAGE (SC_DIALOGS_START + 141)
|
||||||
|
|
||||||
#define RID_POPUP_FILTER (SC_DIALOGS_START + 153)
|
|
||||||
|
|
||||||
#define RID_SCDLG_COND_FORMAT_MANAGER (SC_DIALOGS_START + 159)
|
#define RID_SCDLG_COND_FORMAT_MANAGER (SC_DIALOGS_START + 159)
|
||||||
|
|
||||||
#define WID_CONDFRMT_REF (SC_DIALOGS_START + 163)
|
#define WID_CONDFRMT_REF (SC_DIALOGS_START + 163)
|
||||||
|
@@ -18,9 +18,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "checklistmenu.hxx"
|
#include "checklistmenu.hxx"
|
||||||
#include "checklistmenu.hrc"
|
|
||||||
#include "strload.hxx"
|
#include "strload.hxx"
|
||||||
#include "globstr.hrc"
|
#include "globstr.hrc"
|
||||||
|
#include "sc.hrc"
|
||||||
|
|
||||||
#include <vcl/decoview.hxx>
|
#include <vcl/decoview.hxx>
|
||||||
#include <vcl/settings.hxx>
|
#include <vcl/settings.hxx>
|
||||||
@@ -1075,7 +1075,7 @@ void ScCheckListMenuWindow::packWindow()
|
|||||||
maEdSearch->SetPosSizePixel(aPos, aSize);
|
maEdSearch->SetPosSizePixel(aPos, aSize);
|
||||||
maEdSearch->SetFont(getLabelFont());
|
maEdSearch->SetFont(getLabelFont());
|
||||||
maEdSearch->SetControlBackground(rStyle.GetFieldColor());
|
maEdSearch->SetControlBackground(rStyle.GetFieldColor());
|
||||||
maEdSearch->SetPlaceholderText(SC_STRLOAD(RID_POPUP_FILTER, STR_EDIT_SEARCH_ITEMS));
|
maEdSearch->SetPlaceholderText(SC_RESSTR(STR_EDIT_SEARCH_ITEMS));
|
||||||
maEdSearch->SetModifyHdl( LINK(this, ScCheckListMenuWindow, EdModifyHdl) );
|
maEdSearch->SetModifyHdl( LINK(this, ScCheckListMenuWindow, EdModifyHdl) );
|
||||||
maEdSearch->Show();
|
maEdSearch->Show();
|
||||||
|
|
||||||
@@ -1088,7 +1088,7 @@ void ScCheckListMenuWindow::packWindow()
|
|||||||
getSectionPosSize(aPos, aSize, CHECK_TOGGLE_ALL);
|
getSectionPosSize(aPos, aSize, CHECK_TOGGLE_ALL);
|
||||||
maChkToggleAll->SetPosSizePixel(aPos, aSize);
|
maChkToggleAll->SetPosSizePixel(aPos, aSize);
|
||||||
maChkToggleAll->SetFont(getLabelFont());
|
maChkToggleAll->SetFont(getLabelFont());
|
||||||
maChkToggleAll->SetText(SC_STRLOAD(RID_POPUP_FILTER, STR_BTN_TOGGLE_ALL));
|
maChkToggleAll->SetText(SC_RESSTR(STR_BTN_TOGGLE_ALL));
|
||||||
maChkToggleAll->SetTextColor(rStyle.GetMenuTextColor());
|
maChkToggleAll->SetTextColor(rStyle.GetMenuTextColor());
|
||||||
maChkToggleAll->SetControlBackground(rStyle.GetMenuColor());
|
maChkToggleAll->SetControlBackground(rStyle.GetMenuColor());
|
||||||
maChkToggleAll->SetClickHdl( LINK(this, ScCheckListMenuWindow, TriStateHdl) );
|
maChkToggleAll->SetClickHdl( LINK(this, ScCheckListMenuWindow, TriStateHdl) );
|
||||||
@@ -1103,7 +1103,7 @@ void ScCheckListMenuWindow::packWindow()
|
|||||||
|
|
||||||
getSectionPosSize(aPos, aSize, BTN_SINGLE_SELECT);
|
getSectionPosSize(aPos, aSize, BTN_SINGLE_SELECT);
|
||||||
maBtnSelectSingle->SetPosSizePixel(aPos, aSize);
|
maBtnSelectSingle->SetPosSizePixel(aPos, aSize);
|
||||||
maBtnSelectSingle->SetQuickHelpText(SC_STRLOAD(RID_POPUP_FILTER, STR_BTN_SELECT_CURRENT));
|
maBtnSelectSingle->SetQuickHelpText(SC_RESSTR(STR_BTN_SELECT_CURRENT));
|
||||||
maBtnSelectSingle->SetModeImage(aSingleSelect);
|
maBtnSelectSingle->SetModeImage(aSingleSelect);
|
||||||
maBtnSelectSingle->SetClickHdl( LINK(this, ScCheckListMenuWindow, ButtonHdl) );
|
maBtnSelectSingle->SetClickHdl( LINK(this, ScCheckListMenuWindow, ButtonHdl) );
|
||||||
maBtnSelectSingle->Show();
|
maBtnSelectSingle->Show();
|
||||||
@@ -1115,7 +1115,7 @@ void ScCheckListMenuWindow::packWindow()
|
|||||||
|
|
||||||
getSectionPosSize(aPos, aSize, BTN_SINGLE_UNSELECT);
|
getSectionPosSize(aPos, aSize, BTN_SINGLE_UNSELECT);
|
||||||
maBtnUnselectSingle->SetPosSizePixel(aPos, aSize);
|
maBtnUnselectSingle->SetPosSizePixel(aPos, aSize);
|
||||||
maBtnUnselectSingle->SetQuickHelpText(SC_STRLOAD(RID_POPUP_FILTER, STR_BTN_UNSELECT_CURRENT));
|
maBtnUnselectSingle->SetQuickHelpText(SC_RESSTR(STR_BTN_UNSELECT_CURRENT));
|
||||||
maBtnUnselectSingle->SetModeImage(aSingleUnselect);
|
maBtnUnselectSingle->SetModeImage(aSingleUnselect);
|
||||||
maBtnUnselectSingle->SetClickHdl( LINK(this, ScCheckListMenuWindow, ButtonHdl) );
|
maBtnUnselectSingle->SetClickHdl( LINK(this, ScCheckListMenuWindow, ButtonHdl) );
|
||||||
maBtnUnselectSingle->Show();
|
maBtnUnselectSingle->Show();
|
||||||
|
@@ -17,44 +17,41 @@
|
|||||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "checklistmenu.hrc"
|
#include "sc.hrc"
|
||||||
|
|
||||||
Resource RID_POPUP_FILTER
|
String STR_MENU_SORT_ASC
|
||||||
{
|
{
|
||||||
String STR_MENU_SORT_ASC
|
Text [ en-US ] = "Sort Ascending" ;
|
||||||
{
|
};
|
||||||
Text [ en-US ] = "Sort Ascending" ;
|
|
||||||
};
|
|
||||||
|
|
||||||
String STR_MENU_SORT_DESC
|
String STR_MENU_SORT_DESC
|
||||||
{
|
{
|
||||||
Text [ en-US ] = "Sort Descending" ;
|
Text [ en-US ] = "Sort Descending" ;
|
||||||
};
|
};
|
||||||
|
|
||||||
String STR_MENU_SORT_CUSTOM
|
String STR_MENU_SORT_CUSTOM
|
||||||
{
|
{
|
||||||
Text [ en-US ] = "Custom Sort" ;
|
Text [ en-US ] = "Custom Sort" ;
|
||||||
};
|
};
|
||||||
|
|
||||||
String STR_BTN_TOGGLE_ALL
|
String STR_BTN_TOGGLE_ALL
|
||||||
{
|
{
|
||||||
Text [ en-US ] = "All" ;
|
Text [ en-US ] = "All" ;
|
||||||
};
|
};
|
||||||
|
|
||||||
String STR_BTN_SELECT_CURRENT
|
String STR_BTN_SELECT_CURRENT
|
||||||
{
|
{
|
||||||
Text [ en-US ] = "Show only the current item." ;
|
Text [ en-US ] = "Show only the current item." ;
|
||||||
};
|
};
|
||||||
|
|
||||||
String STR_BTN_UNSELECT_CURRENT
|
String STR_BTN_UNSELECT_CURRENT
|
||||||
{
|
{
|
||||||
Text [ en-US ] = "Hide only the current item." ;
|
Text [ en-US ] = "Hide only the current item." ;
|
||||||
};
|
};
|
||||||
|
|
||||||
String STR_EDIT_SEARCH_ITEMS
|
String STR_EDIT_SEARCH_ITEMS
|
||||||
{
|
{
|
||||||
Text [ en-US ] = "Search items..." ;
|
Text [ en-US ] = "Search items..." ;
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Bitmap RID_BMP_SELECT_CURRENT
|
Bitmap RID_BMP_SELECT_CURRENT
|
||||||
|
@@ -1,35 +0,0 @@
|
|||||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
||||||
/*
|
|
||||||
* This file is part of the LibreOffice project.
|
|
||||||
*
|
|
||||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
||||||
*
|
|
||||||
* This file incorporates work covered by the following license notice:
|
|
||||||
*
|
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
* contributor license agreements. See the NOTICE file distributed
|
|
||||||
* with this work for additional information regarding copyright
|
|
||||||
* ownership. The ASF licenses this file to you under the Apache
|
|
||||||
* License, Version 2.0 (the "License"); you may not use this file
|
|
||||||
* except in compliance with the License. You may obtain a copy of
|
|
||||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef INCLUDED_SC_SOURCE_UI_INC_CHECKLISTMENU_HRC
|
|
||||||
#define INCLUDED_SC_SOURCE_UI_INC_CHECKLISTMENU_HRC
|
|
||||||
|
|
||||||
#include <sc.hrc>
|
|
||||||
|
|
||||||
#define STR_MENU_SORT_ASC 1
|
|
||||||
#define STR_MENU_SORT_DESC 2
|
|
||||||
#define STR_MENU_SORT_CUSTOM 3
|
|
||||||
#define STR_BTN_TOGGLE_ALL 4
|
|
||||||
#define STR_BTN_SELECT_CURRENT 5
|
|
||||||
#define STR_BTN_UNSELECT_CURRENT 6
|
|
||||||
#define STR_EDIT_SEARCH_ITEMS 7
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
|
@@ -123,7 +123,6 @@
|
|||||||
#include "cliputil.hxx"
|
#include "cliputil.hxx"
|
||||||
#include "queryentry.hxx"
|
#include "queryentry.hxx"
|
||||||
#include "markdata.hxx"
|
#include "markdata.hxx"
|
||||||
#include "checklistmenu.hrc"
|
|
||||||
#include "strload.hxx"
|
#include "strload.hxx"
|
||||||
#include "externalrefmgr.hxx"
|
#include "externalrefmgr.hxx"
|
||||||
#include "dociter.hxx"
|
#include "dociter.hxx"
|
||||||
@@ -726,10 +725,10 @@ void ScGridWindow::LaunchAutoFilterMenu(SCCOL nCol, SCROW nRow)
|
|||||||
|
|
||||||
// Populate the menu.
|
// Populate the menu.
|
||||||
mpAutoFilterPopup->addMenuItem(
|
mpAutoFilterPopup->addMenuItem(
|
||||||
SC_STRLOAD(RID_POPUP_FILTER, STR_MENU_SORT_ASC),
|
SC_RESSTR(STR_MENU_SORT_ASC),
|
||||||
new AutoFilterAction(this, SortAscending));
|
new AutoFilterAction(this, SortAscending));
|
||||||
mpAutoFilterPopup->addMenuItem(
|
mpAutoFilterPopup->addMenuItem(
|
||||||
SC_STRLOAD(RID_POPUP_FILTER, STR_MENU_SORT_DESC),
|
SC_RESSTR(STR_MENU_SORT_DESC),
|
||||||
new AutoFilterAction(this, SortDescending));
|
new AutoFilterAction(this, SortDescending));
|
||||||
mpAutoFilterPopup->addSeparator();
|
mpAutoFilterPopup->addSeparator();
|
||||||
mpAutoFilterPopup->addMenuItem(
|
mpAutoFilterPopup->addMenuItem(
|
||||||
|
@@ -39,7 +39,6 @@
|
|||||||
#include "dbdocfun.hxx"
|
#include "dbdocfun.hxx"
|
||||||
#include "checklistmenu.hxx"
|
#include "checklistmenu.hxx"
|
||||||
#include "dpcontrol.hxx"
|
#include "dpcontrol.hxx"
|
||||||
#include "checklistmenu.hrc"
|
|
||||||
#include "strload.hxx"
|
#include "strload.hxx"
|
||||||
#include "userlist.hxx"
|
#include "userlist.hxx"
|
||||||
#include "scabstdlg.hxx"
|
#include "scabstdlg.hxx"
|
||||||
@@ -493,13 +492,13 @@ void ScGridWindow::DPLaunchFieldPopupMenu(
|
|||||||
// Populate the menus.
|
// Populate the menus.
|
||||||
ScTabViewShell* pViewShell = pViewData->GetViewShell();
|
ScTabViewShell* pViewShell = pViewData->GetViewShell();
|
||||||
mpDPFieldPopup->addMenuItem(
|
mpDPFieldPopup->addMenuItem(
|
||||||
SC_STRLOAD(RID_POPUP_FILTER, STR_MENU_SORT_ASC),
|
SC_RESSTR(STR_MENU_SORT_ASC),
|
||||||
new PopupSortAction(rPos, PopupSortAction::ASCENDING, 0, pViewShell));
|
new PopupSortAction(rPos, PopupSortAction::ASCENDING, 0, pViewShell));
|
||||||
mpDPFieldPopup->addMenuItem(
|
mpDPFieldPopup->addMenuItem(
|
||||||
SC_STRLOAD(RID_POPUP_FILTER, STR_MENU_SORT_DESC),
|
SC_RESSTR(STR_MENU_SORT_DESC),
|
||||||
new PopupSortAction(rPos, PopupSortAction::DESCENDING, 0, pViewShell));
|
new PopupSortAction(rPos, PopupSortAction::DESCENDING, 0, pViewShell));
|
||||||
ScMenuFloatingWindow* pSubMenu = mpDPFieldPopup->addSubMenuItem(
|
ScMenuFloatingWindow* pSubMenu = mpDPFieldPopup->addSubMenuItem(
|
||||||
SC_STRLOAD(RID_POPUP_FILTER, STR_MENU_SORT_CUSTOM), !aUserSortNames.empty());
|
SC_RESSTR(STR_MENU_SORT_CUSTOM), !aUserSortNames.empty());
|
||||||
|
|
||||||
if (pSubMenu && !aUserSortNames.empty())
|
if (pSubMenu && !aUserSortNames.empty())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user