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
a65211ad
Kaydet (Commit)
a65211ad
authored
Şub 10, 2017
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
unwind RID_POPUP_FILTER local resource
Change-Id: I7369b3eb0e0d937c135fe591beafe9ec96ea9c17
üst
a1945975
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
46 additions
and
80 deletions
+46
-80
sc.hrc
sc/inc/sc.hrc
+9
-3
checklistmenu.cxx
sc/source/ui/cctrl/checklistmenu.cxx
+5
-5
checklistmenu.src
sc/source/ui/cctrl/checklistmenu.src
+27
-30
checklistmenu.hrc
sc/source/ui/inc/checklistmenu.hrc
+0
-35
gridwin.cxx
sc/source/ui/view/gridwin.cxx
+2
-3
gridwin2.cxx
sc/source/ui/view/gridwin2.cxx
+3
-4
No files found.
sc/inc/sc.hrc
Dosyayı görüntüle @
a65211ad
...
@@ -1105,7 +1105,15 @@
...
@@ -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 @@
...
@@ -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)
...
...
sc/source/ui/cctrl/checklistmenu.cxx
Dosyayı görüntüle @
a65211ad
...
@@ -18,9 +18,9 @@
...
@@ -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()
...
@@ -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()
...
@@ -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()
...
@@ -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()
...
@@ -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
();
...
...
sc/source/ui/cctrl/checklistmenu.src
Dosyayı görüntüle @
a65211ad
...
@@ -17,44 +17,41 @@
...
@@ -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
...
...
sc/source/ui/inc/checklistmenu.hrc
deleted
100644 → 0
Dosyayı görüntüle @
a1945975
/* -*- 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: */
sc/source/ui/view/gridwin.cxx
Dosyayı görüntüle @
a65211ad
...
@@ -123,7 +123,6 @@
...
@@ -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)
...
@@ -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
(
...
...
sc/source/ui/view/gridwin2.cxx
Dosyayı görüntüle @
a65211ad
...
@@ -39,7 +39,6 @@
...
@@ -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(
...
@@ -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
())
{
{
...
...
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