diff options
author | Siddhant Chaudhary <urssidd@gmail.com> | 2022-03-29 19:06:09 +0530 |
---|---|---|
committer | Hossein <hossein@libreoffice.org> | 2022-06-20 15:46:48 +0200 |
commit | ff9ff6018bea7c1a4524c8edca8ef554c74e4b3f (patch) | |
tree | 36fd1121fc2312bd6b8dc8483ecd4ffcc0137ec8 /vcl/uiconfig | |
parent | df0d25d440aad265b3cb3555632bf19f74f47330 (diff) |
tdf#141026 Put user and computer name into collapsed section
This patch hides away the file name and the name of the user when the
user tries to open a locked file. This improves privacy, as discussed in
the bug report.
The .ui file for the new dialog box is
`vcl/uiconfig/ui/openlockedquerybox.ui`. The source files
`openlocked.hxx` and `openlocked.cxx` have been changed to implement
the new dialog. The old string template `STR_OPENLOCKED_MSG` has been
deleted to hide away the private data, and a new string template
`STR_OPENLOCKED_HIDDEN_DATA` has been added; the latter will be hidden
inside the expander dialog. Finally, corresponding changes in the
makefiles have been made to let the makefiles know about the UI file.
Change-Id: I3cc9d2f6e2d9bc43857c80662e2a405aacd7fc70
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132342
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'vcl/uiconfig')
-rw-r--r-- | vcl/uiconfig/ui/openlockedquerybox.ui | 270 |
1 files changed, 270 insertions, 0 deletions
diff --git a/vcl/uiconfig/ui/openlockedquerybox.ui b/vcl/uiconfig/ui/openlockedquerybox.ui new file mode 100644 index 000000000000..6405faab53e3 --- /dev/null +++ b/vcl/uiconfig/ui/openlockedquerybox.ui @@ -0,0 +1,270 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Generated with glade 3.38.2 --> +<interface domain="vcl"> + <requires lib="gtk+" version="3.20"/> + <object class="GtkDialog" id="OpenLockedQueryBox"> + <property name="can-focus">False</property> + <property name="border-width">6</property> + <property name="title" translatable="yes" context="openlockedquerybox|OpenLockedQueryBox">Document in Use</property> + <property name="resizable">False</property> + <property name="modal">True</property> + <property name="destroy-with-parent">True</property> + <property name="type-hint">dialog</property> + <property name="urgency-hint">True</property> + <property name="gravity">north</property> + <child type="titlebar"> + <placeholder/> + </child> + <child internal-child="vbox"> + <object class="GtkBox" id="VerticalBox"> + <property name="can-focus">False</property> + <property name="orientation">vertical</property> + <property name="spacing">12</property> + <child internal-child="action_area"> + <object class="GtkButtonBox" id="ButtonContainer"> + <property name="can-focus">False</property> + <property name="layout-style">end</property> + <child> + <object class="GtkButton" id="open"> + <property name="label" translatable="yes" context="stock">_Open</property> + <property name="visible">True</property> + <property name="can-focus">True</property> + <property name="receives-default">False</property> + <property name="use-underline">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkButton" id="cancel"> + <property name="label" translatable="yes" context="stock">_Cancel</property> + <property name="visible">True</property> + <property name="can-focus">True</property> + <property name="receives-default">True</property> + <property name="use-underline">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="pack-type">end</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkBox" id="MainPanel"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="spacing">24</property> + <child> + <object class="GtkImage" id="questionmark"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="halign">center</property> + <property name="valign">start</property> + <property name="margin-start">24</property> + <property name="margin-top">70</property> + <child internal-child="accessible"> + <object class="AtkObject" id="questionmark-atkobject"> + <property name="AtkObject::accessible-name" translatable="yes" context="openlockedquerybox|questionmark">Question mark image</property> + <property name="AtkObject::accessible-description" translatable="yes" context="openlockedquerybox|questionmark">Question mark icon for dialog box.</property> + </object> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <!-- n-columns=2 n-rows=4 --> + <object class="GtkGrid"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="margin-end">6</property> + <property name="margin-top">6</property> + <property name="row-spacing">18</property> + <property name="column-spacing">12</property> + <child> + <object class="GtkLabel" id="messagetext"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="label" translatable="yes" context="openlockedquerybox|messagetext">This file has been locked by another user.</property> + <property name="width-chars">0</property> + <property name="max-width-chars">0</property> + <property name="xalign">0</property> + <attributes> + <attribute name="weight" value="bold"/> + </attributes> + <child internal-child="accessible"> + <object class="AtkObject" id="messagetext-atkobject"> + <property name="AtkObject::accessible-role">static</property> + </object> + </child> + </object> + <packing> + <property name="left-attach">0</property> + <property name="top-attach">0</property> + <property name="width">2</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="ReadOnlyMessage"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="valign">start</property> + <property name="label" translatable="yes" context="openlockedquerybox|ReadOnlyMessage">You can open it read only and +receive a notification if ready.</property> + <property name="xalign">0</property> + <child internal-child="accessible"> + <object class="AtkObject" id="ReadOnlyMessage-atkobject"> + <property name="AtkObject::accessible-role">static</property> + </object> + </child> + </object> + <packing> + <property name="left-attach">0</property> + <property name="top-attach">1</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="OpenCopyMessage"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="label" translatable="yes" context="openlockedquerybox|OpenCopyMessage">You can open a copy on your +local system.</property> + <property name="xalign">0</property> + <child internal-child="accessible"> + <object class="AtkObject" id="OpenCopyMessage-atkobject"> + <property name="AtkObject::accessible-role">static</property> + </object> + </child> + </object> + <packing> + <property name="left-attach">0</property> + <property name="top-attach">2</property> + </packing> + </child> + <child> + <object class="GtkExpander" id="moredetailsexpander"> + <property name="visible">True</property> + <property name="can-focus">True</property> + <property name="resize-toplevel">True</property> + <child> + <object class="GtkLabel" id="hiddentext"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="margin-top">10</property> + <property name="xalign">0</property> + <child internal-child="accessible"> + <object class="AtkObject" id="hiddentext-atkobject"> + <property name="AtkObject::accessible-role">static</property> + </object> + </child> + </object> + </child> + <child type="label"> + <object class="GtkLabel" id="expandertext"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="label" translatable="yes" context="openlockedquerybox|expandertext">_More Details</property> + <property name="use-underline">True</property> + <attributes> + <attribute name="weight" value="bold"/> + </attributes> + </object> + </child> + </object> + <packing> + <property name="left-attach">0</property> + <property name="top-attach">3</property> + <property name="width">2</property> + </packing> + </child> + <child> + <object class="GtkButton" id="opencopy"> + <property name="label" translatable="yes" context="stock">Open Co_py</property> + <property name="visible">True</property> + <property name="can-focus">True</property> + <property name="receives-default">True</property> + <property name="use-underline">True</property> + </object> + <packing> + <property name="left-attach">1</property> + <property name="top-attach">2</property> + </packing> + </child> + <child> + <object class="GtkBox"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="orientation">vertical</property> + <property name="spacing">3</property> + <child> + <object class="GtkButton" id="readonly"> + <property name="label" translatable="yes" context="stock">Open _R/O</property> + <property name="visible">True</property> + <property name="can-focus">True</property> + <property name="receives-default">True</property> + <property name="use-underline">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkCheckButton" id="notify"> + <property name="label" translatable="yes" context="stock">_Notify</property> + <property name="visible">True</property> + <property name="can-focus">True</property> + <property name="receives-default">False</property> + <property name="use-underline">True</property> + <property name="draw-indicator">True</property> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="left-attach">1</property> + <property name="top-attach">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + </child> + <child internal-child="accessible"> + <object class="AtkObject" id="OpenLockedQueryBox-atkobject"> + <property name="AtkObject::accessible-description" translatable="yes" context="openlockedquerybox|OpenLockedQueryBox">Displays information about locked files and further steps to take when opening a locked file.</property> + </object> + </child> + </object> +</interface> |