Kaydet (Commit) c7309a48 authored tarafından Philippe Jung's avatar Philippe Jung Kaydeden (comit) Yousuf Philips

tdf#91783 - Reverse the toggle behaviour of .uno:Graphic Change

Rename:
- .uno:Graphic to .uno:ShowGraphics
- View->Hide Images to View->Images and Charts and invert toggle state

Change-Id: Ife4954e17f7e169b234f477d01409cae52c32efe
Reviewed-on: https://gerrit.libreoffice.org/16010Reviewed-by: 's avatarYousuf Philips <philipz85@hotmail.com>
Tested-by: 's avatarYousuf Philips <philipz85@hotmail.com>
üst 1df41142
...@@ -109,3 +109,6 @@ database/linked_text_table.png cmd/sc_dataimport.png ...@@ -109,3 +109,6 @@ database/linked_text_table.png cmd/sc_dataimport.png
# text background colour Impress/Draw # text background colour Impress/Draw
cmd/sc_charbackcolor.png cmd/sc_backcolor.png cmd/sc_charbackcolor.png cmd/sc_backcolor.png
cmd/lc_charbackcolor.png cmd/lc_backcolor.png cmd/lc_charbackcolor.png cmd/lc_backcolor.png
# Toggle graphics visibility in Writer
cmd/sc_showgraphics.png cmd/sc_graphic.png
...@@ -72,3 +72,6 @@ cmd/sc_showannotations.png cmd/sc_insertannotation.png ...@@ -72,3 +72,6 @@ cmd/sc_showannotations.png cmd/sc_insertannotation.png
# text background colour Impress/Draw # text background colour Impress/Draw
cmd/sc_charbackcolor.png cmd/sc_backcolor.png cmd/sc_charbackcolor.png cmd/sc_backcolor.png
cmd/lc_charbackcolor.png cmd/lc_backcolor.png cmd/lc_charbackcolor.png cmd/lc_backcolor.png
# Toggle graphics visibility in Writer
cmd/sc_showgraphics.png cmd/sc_graphic.png
...@@ -208,8 +208,6 @@ cmd/lc_hyperlinkdialog.png cmd/lc_inserthyperlink.png ...@@ -208,8 +208,6 @@ cmd/lc_hyperlinkdialog.png cmd/lc_inserthyperlink.png
cmd/sc_hyperlinkdialog.png cmd/sc_inserthyperlink.png cmd/sc_hyperlinkdialog.png cmd/sc_inserthyperlink.png
cmd/lc_draw.png cmd/lc_reload.png cmd/lc_draw.png cmd/lc_reload.png
cmd/sc_draw.png cmd/sc_reload.png cmd/sc_draw.png cmd/sc_reload.png
cmd/lc_graphic.png cmd/lc_insertgraphic.png
cmd/sc_graphic.png cmd/sc_insertgraphic.png
cmd/lc_selectmode.png cmd/lc_selectobject.png cmd/lc_selectmode.png cmd/lc_selectobject.png
cmd/lc_drawselect.png cmd/lc_selectobject.png cmd/lc_drawselect.png cmd/lc_selectobject.png
cmd/sc_selectmode.png cmd/sc_selectobject.png cmd/sc_selectmode.png cmd/sc_selectobject.png
...@@ -556,3 +554,7 @@ cmd/sc_showannotations.png cmd/sc_insertannotation.png ...@@ -556,3 +554,7 @@ cmd/sc_showannotations.png cmd/sc_insertannotation.png
# text background colour Impress/Draw # text background colour Impress/Draw
cmd/sc_charbackcolor.png cmd/sc_backcolor.png cmd/sc_charbackcolor.png cmd/sc_backcolor.png
cmd/lc_charbackcolor.png cmd/lc_backcolor.png cmd/lc_charbackcolor.png cmd/lc_backcolor.png
# Toggle graphics visibility in Writer
cmd/sc_showgraphics.png cmd/sc_insertgraphic.png
cmd/lc_showgraphics.png cmd/lc_insertgraphic.png
...@@ -2146,9 +2146,9 @@ ...@@ -2146,9 +2146,9 @@
<value xml:lang="en-US">~Line Numbering...</value> <value xml:lang="en-US">~Line Numbering...</value>
</prop> </prop>
</node> </node>
<node oor:name=".uno:Graphic" oor:op="replace"> <node oor:name=".uno:ShowGraphics" oor:op="replace">
<prop oor:name="Label" oor:type="xs:string"> <prop oor:name="Label" oor:type="xs:string">
<value xml:lang="en-US">Hide ~Images</value> <value xml:lang="en-US">~Images and Charts</value>
</prop> </prop>
<prop oor:name="Properties" oor:type="xs:int"> <prop oor:name="Properties" oor:type="xs:int">
<value>1</value> <value>1</value>
......
...@@ -3144,7 +3144,7 @@ SfxBoolItem GoUp FN_LINE_UP ...@@ -3144,7 +3144,7 @@ SfxBoolItem GoUp FN_LINE_UP
GroupId = GID_NAVIGATOR; GroupId = GID_NAVIGATOR;
] ]
SfxBoolItem Graphic FN_VIEW_GRAPHIC SfxBoolItem ShowGraphics FN_VIEW_GRAPHIC
[ [
/* flags: */ /* flags: */
......
...@@ -278,7 +278,7 @@ void SwView::StateViewOptions(SfxItemSet &rSet) ...@@ -278,7 +278,7 @@ void SwView::StateViewOptions(SfxItemSet &rSet)
case FN_VIEW_BOUNDS: case FN_VIEW_BOUNDS:
aBool.SetValue( SwViewOption::IsDocBoundaries()); break; aBool.SetValue( SwViewOption::IsDocBoundaries()); break;
case FN_VIEW_GRAPHIC: case FN_VIEW_GRAPHIC:
aBool.SetValue( !pOpt->IsGraphic() ); break; aBool.SetValue( pOpt->IsGraphic() ); break;
case FN_VIEW_FIELDS: case FN_VIEW_FIELDS:
aBool.SetValue( SwViewOption::IsFieldShadings() ); break; aBool.SetValue( SwViewOption::IsFieldShadings() ); break;
case FN_VIEW_FIELDNAME: case FN_VIEW_FIELDNAME:
......
...@@ -25,6 +25,6 @@ ...@@ -25,6 +25,6 @@
<toolbar:toolbaritem xlink:href=".uno:Hyphenate" toolbar:helpid="20605"/> <toolbar:toolbaritem xlink:href=".uno:Hyphenate" toolbar:helpid="20605"/>
<toolbar:toolbaritem xlink:href=".uno:ThesaurusDialog" toolbar:helpid="20603"/> <toolbar:toolbaritem xlink:href=".uno:ThesaurusDialog" toolbar:helpid="20603"/>
<toolbar:toolbarseparator/> <toolbar:toolbarseparator/>
<toolbar:toolbaritem xlink:href=".uno:Graphic" toolbar:helpid="20213"/> <toolbar:toolbaritem xlink:href=".uno:ShowGraphics" toolbar:helpid="20213"/>
<toolbar:toolbaritem xlink:href=".uno:BrowseView" toolbar:helpid="6313"/> <toolbar:toolbaritem xlink:href=".uno:BrowseView" toolbar:helpid="6313"/>
</toolbar:toolbar> </toolbar:toolbar>
...@@ -23,6 +23,6 @@ ...@@ -23,6 +23,6 @@
<toolbar:toolbaritem xlink:href=".uno:Hyphenate" toolbar:helpid="20605"/> <toolbar:toolbaritem xlink:href=".uno:Hyphenate" toolbar:helpid="20605"/>
<toolbar:toolbaritem xlink:href=".uno:ThesaurusDialog" toolbar:helpid="20603"/> <toolbar:toolbaritem xlink:href=".uno:ThesaurusDialog" toolbar:helpid="20603"/>
<toolbar:toolbarseparator/> <toolbar:toolbarseparator/>
<toolbar:toolbaritem xlink:href=".uno:Graphic" toolbar:helpid="20213"/> <toolbar:toolbaritem xlink:href=".uno:ShowGraphics" toolbar:helpid="20213"/>
<toolbar:toolbaritem xlink:href=".uno:ImageMapDialog" toolbar:helpid="10371"/> <toolbar:toolbaritem xlink:href=".uno:ImageMapDialog" toolbar:helpid="10371"/>
</toolbar:toolbar> </toolbar:toolbar>
...@@ -25,6 +25,6 @@ ...@@ -25,6 +25,6 @@
<toolbar:toolbaritem xlink:href=".uno:Hyphenate" toolbar:helpid="20605"/> <toolbar:toolbaritem xlink:href=".uno:Hyphenate" toolbar:helpid="20605"/>
<toolbar:toolbaritem xlink:href=".uno:ThesaurusDialog" toolbar:helpid="20603"/> <toolbar:toolbaritem xlink:href=".uno:ThesaurusDialog" toolbar:helpid="20603"/>
<toolbar:toolbarseparator/> <toolbar:toolbarseparator/>
<toolbar:toolbaritem xlink:href=".uno:Graphic" toolbar:helpid="20213"/> <toolbar:toolbaritem xlink:href=".uno:ShowGraphics" toolbar:helpid="20213"/>
<toolbar:toolbaritem xlink:href=".uno:BrowseView" toolbar:helpid="6313"/> <toolbar:toolbaritem xlink:href=".uno:BrowseView" toolbar:helpid="6313"/>
</toolbar:toolbar> </toolbar:toolbar>
\ No newline at end of file
...@@ -25,6 +25,6 @@ ...@@ -25,6 +25,6 @@
<toolbar:toolbaritem xlink:href=".uno:Hyphenate" toolbar:helpid="20605"/> <toolbar:toolbaritem xlink:href=".uno:Hyphenate" toolbar:helpid="20605"/>
<toolbar:toolbaritem xlink:href=".uno:ThesaurusDialog" toolbar:helpid="20603"/> <toolbar:toolbaritem xlink:href=".uno:ThesaurusDialog" toolbar:helpid="20603"/>
<toolbar:toolbarseparator/> <toolbar:toolbarseparator/>
<toolbar:toolbaritem xlink:href=".uno:Graphic" toolbar:helpid="20213"/> <toolbar:toolbaritem xlink:href=".uno:ShowGraphics" toolbar:helpid="20213"/>
<toolbar:toolbaritem xlink:href=".uno:BrowseView" toolbar:helpid="6313"/> <toolbar:toolbaritem xlink:href=".uno:BrowseView" toolbar:helpid="6313"/>
</toolbar:toolbar> </toolbar:toolbar>
\ No newline at end of file
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
<menu:menuitem menu:id=".uno:ShowHiddenParagraphs"/> <menu:menuitem menu:id=".uno:ShowHiddenParagraphs"/>
<menu:menuitem menu:id=".uno:ControlCodes"/> <menu:menuitem menu:id=".uno:ControlCodes"/>
<menu:menuitem menu:id=".uno:ShowAnnotations"/> <menu:menuitem menu:id=".uno:ShowAnnotations"/>
<menu:menuitem menu:id=".uno:Graphic"/> <menu:menuitem menu:id=".uno:ShowGraphics"/>
<menu:menuseparator/> <menu:menuseparator/>
<menu:menuitem menu:id=".uno:Sidebar"/> <menu:menuitem menu:id=".uno:Sidebar"/>
<menu:menuitem menu:id=".uno:Gallery"/> <menu:menuitem menu:id=".uno:Gallery"/>
......
...@@ -25,6 +25,6 @@ ...@@ -25,6 +25,6 @@
<toolbar:toolbaritem xlink:href=".uno:Hyphenate" toolbar:helpid="20605"/> <toolbar:toolbaritem xlink:href=".uno:Hyphenate" toolbar:helpid="20605"/>
<toolbar:toolbaritem xlink:href=".uno:ThesaurusDialog" toolbar:helpid="20603"/> <toolbar:toolbaritem xlink:href=".uno:ThesaurusDialog" toolbar:helpid="20603"/>
<toolbar:toolbarseparator/> <toolbar:toolbarseparator/>
<toolbar:toolbaritem xlink:href=".uno:Graphic" toolbar:helpid="20213"/> <toolbar:toolbaritem xlink:href=".uno:ShowGraphics" toolbar:helpid="20213"/>
<toolbar:toolbaritem xlink:href=".uno:BrowseView" toolbar:helpid="6313"/> <toolbar:toolbaritem xlink:href=".uno:BrowseView" toolbar:helpid="6313"/>
</toolbar:toolbar> </toolbar:toolbar>
\ No newline at end of file
...@@ -25,6 +25,6 @@ ...@@ -25,6 +25,6 @@
<toolbar:toolbaritem xlink:href=".uno:Hyphenate" toolbar:helpid="20605"/> <toolbar:toolbaritem xlink:href=".uno:Hyphenate" toolbar:helpid="20605"/>
<toolbar:toolbaritem xlink:href=".uno:ThesaurusDialog" toolbar:helpid="20603"/> <toolbar:toolbaritem xlink:href=".uno:ThesaurusDialog" toolbar:helpid="20603"/>
<toolbar:toolbarseparator/> <toolbar:toolbarseparator/>
<toolbar:toolbaritem xlink:href=".uno:Graphic" toolbar:helpid="20213"/> <toolbar:toolbaritem xlink:href=".uno:ShowGraphics" toolbar:helpid="20213"/>
<toolbar:toolbaritem xlink:href=".uno:BrowseView" toolbar:helpid="6313"/> <toolbar:toolbaritem xlink:href=".uno:BrowseView" toolbar:helpid="6313"/>
</toolbar:toolbar> </toolbar:toolbar>
\ No newline at end of file
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