Kaydet (Commit) 0e7cd653 authored tarafından Maxim Monastirsky's avatar Maxim Monastirsky

tdf#86567 Dropdown for conditional formatting

Change-Id: I1ba12a8b7501065e3cd52e17b7c0c83a0f58f9cf
üst c37e66fa
...@@ -291,6 +291,20 @@ ...@@ -291,6 +291,20 @@
<value>flowchartshapes</value> <value>flowchartshapes</value>
</prop> </prop>
</node> </node>
<node oor:name="c25" oor:op="replace">
<prop oor:name="Command">
<value>.uno:ConditionalFormatMenu</value>
</prop>
<prop oor:name="Module">
<value>com.sun.star.sheet.SpreadsheetDocument</value>
</prop>
<prop oor:name="Controller">
<value>com.sun.star.comp.framework.ResourceMenuController</value>
</prop>
<prop oor:name="Value">
<value>conditional</value>
</prop>
</node>
</node> </node>
<node oor:name="ToolBar"> <node oor:name="ToolBar">
<node oor:name="ZoomToolBox" oor:op="replace"> <node oor:name="ZoomToolBox" oor:op="replace">
...@@ -1062,6 +1076,17 @@ ...@@ -1062,6 +1076,17 @@
<value>com.sun.star.comp.framework.GenericPopupToolbarController</value> <value>com.sun.star.comp.framework.GenericPopupToolbarController</value>
</prop> </prop>
</node> </node>
<node oor:name="ConditionalFormatControl" oor:op="replace">
<prop oor:name="Command">
<value>.uno:ConditionalFormatMenu</value>
</prop>
<prop oor:name="Module">
<value>com.sun.star.sheet.SpreadsheetDocument</value>
</prop>
<prop oor:name="Controller">
<value>com.sun.star.comp.framework.GenericPopupToolbarController</value>
</prop>
</node>
</node> </node>
<node oor:name="StatusBar"> <node oor:name="StatusBar">
<node oor:name="c5" oor:op="replace"> <node oor:name="c5" oor:op="replace">
......
...@@ -25,6 +25,7 @@ $(eval $(call gb_UIConfig_add_popupmenufiles,modules/scalc,\ ...@@ -25,6 +25,7 @@ $(eval $(call gb_UIConfig_add_popupmenufiles,modules/scalc,\
sc/uiconfig/scalc/popupmenu/celledit \ sc/uiconfig/scalc/popupmenu/celledit \
sc/uiconfig/scalc/popupmenu/chart \ sc/uiconfig/scalc/popupmenu/chart \
sc/uiconfig/scalc/popupmenu/colheader \ sc/uiconfig/scalc/popupmenu/colheader \
sc/uiconfig/scalc/popupmenu/conditional \
sc/uiconfig/scalc/popupmenu/draw \ sc/uiconfig/scalc/popupmenu/draw \
sc/uiconfig/scalc/popupmenu/drawtext \ sc/uiconfig/scalc/popupmenu/drawtext \
sc/uiconfig/scalc/popupmenu/form \ sc/uiconfig/scalc/popupmenu/form \
......
...@@ -254,6 +254,7 @@ ...@@ -254,6 +254,7 @@
#define SID_OPENDLG_OPTSOLVER (SC_MESSAGE_START + 60) #define SID_OPENDLG_OPTSOLVER (SC_MESSAGE_START + 60)
#define SID_VALIDITY_REFERENCE (SC_MESSAGE_START + 61) #define SID_VALIDITY_REFERENCE (SC_MESSAGE_START + 61)
#define SID_OPENDLG_CONDFRMT_MANAGER (SC_MESSAGE_START + 62) #define SID_OPENDLG_CONDFRMT_MANAGER (SC_MESSAGE_START + 62)
#define SID_POPUP_CONDFRMT (SC_MESSAGE_START + 63)
#define SC_HINT_NAVIGATOR_UPDATEALL (SC_MESSAGE_START + 65) #define SC_HINT_NAVIGATOR_UPDATEALL (SC_MESSAGE_START + 65)
#define SID_OPENDLG_COLORSCALE (SC_MESSAGE_START + 66) #define SID_OPENDLG_COLORSCALE (SC_MESSAGE_START + 66)
#define SID_OPENDLG_DATABAR (SC_MESSAGE_START + 67) #define SID_OPENDLG_DATABAR (SC_MESSAGE_START + 67)
......
...@@ -206,6 +206,7 @@ interface CellSelection ...@@ -206,6 +206,7 @@ interface CellSelection
FID_USE_NAME [ ExecMethod = ExecuteEdit; StateMethod = GetState; ] FID_USE_NAME [ ExecMethod = ExecuteEdit; StateMethod = GetState; ]
SID_CANCEL [ ExecMethod = Execute; ] SID_CANCEL [ ExecMethod = Execute; ]
SID_TOGGLE_REL [ ExecMethod = ExecuteEdit; StateMethod = GetState; ] SID_TOGGLE_REL [ ExecMethod = ExecuteEdit; StateMethod = GetState; ]
SID_POPUP_CONDFRMT []
SID_OPENDLG_CONDFRMT [ ExecMethod = ExecuteEdit; StateMethod = GetState; ] SID_OPENDLG_CONDFRMT [ ExecMethod = ExecuteEdit; StateMethod = GetState; ]
SID_OPENDLG_COLORSCALE [ ExecMethod = ExecuteEdit; ] SID_OPENDLG_COLORSCALE [ ExecMethod = ExecuteEdit; ]
SID_OPENDLG_DATABAR [ ExecMethod = ExecuteEdit; ] SID_OPENDLG_DATABAR [ ExecMethod = ExecuteEdit; ]
......
...@@ -1060,6 +1060,26 @@ SfxVoidItem CommentChange FID_CHG_COMMENT ...@@ -1060,6 +1060,26 @@ SfxVoidItem CommentChange FID_CHG_COMMENT
] ]
SfxVoidItem ConditionalFormatMenu SID_POPUP_CONDFRMT
[
/* flags: */
AutoUpdate = FALSE,
Cachable = Cachable,
FastCall = FALSE,
ReadOnlyDoc = FALSE,
Toggle = FALSE,
Container = FALSE,
NoRecord;
/* config: */
AccelConfig = FALSE,
MenuConfig = TRUE,
StatusBarConfig = FALSE,
ToolBoxConfig = TRUE,
GroupId = GID_FORMAT;
]
SfxVoidItem ConditionalFormatDialog SID_OPENDLG_CONDFRMT SfxVoidItem ConditionalFormatDialog SID_OPENDLG_CONDFRMT
() ()
[ [
......
...@@ -334,17 +334,7 @@ ...@@ -334,17 +334,7 @@
</menu:menupopup> </menu:menupopup>
</menu:menu> </menu:menu>
<menu:menuseparator/> <menu:menuseparator/>
<menu:menu menu:id=".uno:ConditionalFormatMenu"> <menu:menuitem menu:id=".uno:ConditionalFormatMenu"/>
<menu:menupopup>
<menu:menuitem menu:id=".uno:ConditionalFormatDialog"/>
<menu:menuitem menu:id=".uno:ColorScaleFormatDialog"/>
<menu:menuitem menu:id=".uno:DataBarFormatDialog"/>
<menu:menuitem menu:id=".uno:IconSetFormatDialog"/>
<menu:menuitem menu:id=".uno:CondDateFormatDialog"/>
<menu:menuseparator/>
<menu:menuitem menu:id=".uno:ConditionalFormatManagerDialog"/>
</menu:menupopup>
</menu:menu>
<menu:menuitem menu:id=".uno:AutoFormat"/> <menu:menuitem menu:id=".uno:AutoFormat"/>
<menu:menuseparator/> <menu:menuseparator/>
<menu:menu menu:id=".uno:FormatImageMenu"> <menu:menu menu:id=".uno:FormatImageMenu">
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
* 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/.
*
-->
<menu:menupopup xmlns:menu="http://openoffice.org/2001/menu">
<menu:menuitem menu:id=".uno:ConditionalFormatDialog"/>
<menu:menuitem menu:id=".uno:ColorScaleFormatDialog"/>
<menu:menuitem menu:id=".uno:DataBarFormatDialog"/>
<menu:menuitem menu:id=".uno:IconSetFormatDialog"/>
<menu:menuitem menu:id=".uno:CondDateFormatDialog"/>
<menu:menuseparator/>
<menu:menuitem menu:id=".uno:ConditionalFormatManagerDialog"/>
</menu:menupopup>
...@@ -67,11 +67,7 @@ ...@@ -67,11 +67,7 @@
<toolbar:toolbaritem xlink:href=".uno:LineStyle"/> <toolbar:toolbaritem xlink:href=".uno:LineStyle"/>
<toolbar:toolbaritem xlink:href=".uno:FrameLineColor"/> <toolbar:toolbaritem xlink:href=".uno:FrameLineColor"/>
<toolbar:toolbarseparator/> <toolbar:toolbarseparator/>
<toolbar:toolbaritem xlink:href=".uno:ConditionalFormatDialog"/> <toolbar:toolbaritem xlink:href=".uno:ConditionalFormatMenu"/>
<toolbar:toolbaritem xlink:href=".uno:ColorScaleFormatDialog"/>
<toolbar:toolbaritem xlink:href=".uno:DataBarFormatDialog"/>
<toolbar:toolbaritem xlink:href=".uno:IconSetFormatDialog"/>
<toolbar:toolbarseparator/>
<toolbar:toolbaritem xlink:href=".uno:ToggleSheetGrid" toolbar:visible="false"/> <toolbar:toolbaritem xlink:href=".uno:ToggleSheetGrid" toolbar:visible="false"/>
<toolbar:toolbarseparator/> <toolbar:toolbarseparator/>
<toolbar:toolbaritem xlink:href=".uno:ParaLeftToRight"/> <toolbar:toolbaritem xlink:href=".uno:ParaLeftToRight"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment