diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2017-09-23 21:31:38 -0400 |
---|---|---|
committer | Ashod Nakashian <ashnakash@gmail.com> | 2017-09-26 13:56:48 +0200 |
commit | 86c5c812b030cea6753b298a70146375c5d58175 (patch) | |
tree | 96408bee2b285f94337e948c039aac1a4c8a70c0 /svx | |
parent | 0b4bf5840e15e56cf5ebcda06fe567cd8ca0034c (diff) |
TSCP: paragraph classification dialog
Change-Id: I3a5f201f9ed28452ee7392cb30aebf21955f3620
Reviewed-on: https://gerrit.libreoffice.org/42737
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/sdi/svx.sdi | 18 | ||||
-rw-r--r-- | svx/source/dialog/ClassificationDialog.cxx | 7 | ||||
-rw-r--r-- | svx/uiconfig/ui/classificationdialog.ui | 30 |
3 files changed, 54 insertions, 1 deletions
diff --git a/svx/sdi/svx.sdi b/svx/sdi/svx.sdi index 0bc0412023bf..9b9c45297574 100644 --- a/svx/sdi/svx.sdi +++ b/svx/sdi/svx.sdi @@ -4391,6 +4391,24 @@ SfxVoidItem ClassificationDialog SID_CLASSIFICATION_DIALOG GroupId = SfxGroupId::Document; ] +SfxVoidItem ParagraphClassificationDialog SID_PARAGRAPH_SIGN_CLASSIFY_DLG +() +[ + AutoUpdate = TRUE, + FastCall = TRUE, + ReadOnlyDoc = FALSE, + Toggle = FALSE, + Container = FALSE, + RecordAbsolute = FALSE, + RecordPerSet; + Asynchron; + + AccelConfig = TRUE, + MenuConfig = TRUE, + ToolBoxConfig = TRUE, + GroupId = SfxGroupId::Document; +] + SfxBoolItem Init3D SID_3D_INIT [ diff --git a/svx/source/dialog/ClassificationDialog.cxx b/svx/source/dialog/ClassificationDialog.cxx index 478c6469a6ce..7f0b33ec7813 100644 --- a/svx/source/dialog/ClassificationDialog.cxx +++ b/svx/source/dialog/ClassificationDialog.cxx @@ -37,6 +37,7 @@ ClassificationDialog::ClassificationDialog(vcl::Window* pParent) , maInternationalHelper(SfxObjectShell::Current()->getDocProperties(), /*bUseLocalizedPolicy*/ false) { get(m_pEditWindow, "classificationEditWindow"); + get(m_pSignButton, "signButton"); get(m_pBoldButton, "boldButton"); get(m_pClassificationListBox, "classificationCB"); get(m_pInternationalClassificationListBox, "internationalClassificationCB"); @@ -46,6 +47,7 @@ ClassificationDialog::ClassificationDialog(vcl::Window* pParent) get(m_pIntellectualPropertyPartAddButton, "intellectualPropertyPartAddButton"); get(m_pIntellectualPropertyPartEdit, "intellectualPropertyPartEntry"); + m_pSignButton->SetClickHdl(LINK(this, ClassificationDialog, ButtonClicked)); m_pBoldButton->SetClickHdl(LINK(this, ClassificationDialog, ButtonClicked)); m_pIntellectualPropertyPartAddButton->SetClickHdl(LINK(this, ClassificationDialog, ButtonClicked)); @@ -83,6 +85,7 @@ ClassificationDialog::~ClassificationDialog() void ClassificationDialog::dispose() { m_pEditWindow.clear(); + m_pSignButton.clear(); m_pBoldButton.clear(); m_pClassificationListBox.clear(); m_pInternationalClassificationListBox.clear(); @@ -252,6 +255,10 @@ IMPL_LINK(ClassificationDialog, ButtonClicked, Button*, pButton, void) { m_pEditWindow->InvertSelectionWeight(); } + else if (pButton == m_pSignButton) + { + //TODO sign current paragraph + } else if (pButton == m_pIntellectualPropertyPartAddButton) { insertField(ClassificationType::INTELLECTUAL_PROPERTY_PART, m_pIntellectualPropertyPartEdit->GetText()); diff --git a/svx/uiconfig/ui/classificationdialog.ui b/svx/uiconfig/ui/classificationdialog.ui index 02d2afdb644b..bb1297dd76ec 100644 --- a/svx/uiconfig/ui/classificationdialog.ui +++ b/svx/uiconfig/ui/classificationdialog.ui @@ -183,6 +183,34 @@ <property name="spacing">6</property> <property name="homogeneous">True</property> <child> + <object class="GtkButton" id="signButton"> + <property name="label" context="classificationdialog|signButton" translatable="yes">Sign Paragraph</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </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="GtkBox"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="valign">end</property> + <property name="vexpand">True</property> + <property name="spacing">6</property> + <property name="homogeneous">True</property> + <child> <object class="GtkButton" id="boldButton"> <property name="label" context="classificationdialog|boldButton" translatable="yes">Bold</property> <property name="visible">True</property> @@ -198,7 +226,7 @@ </object> <packing> <property name="left_attach">0</property> - <property name="top_attach">3</property> + <property name="top_attach">4</property> <property name="width">2</property> </packing> </child> |