include/sfx2/dinfdlg.hxx | 31 --- sfx2/source/dialog/dinfdlg.cxx | 130 +++++-------- sfx2/uiconfig/ui/descriptioninfopage.ui | 299 +++++++++++++++++++++++++++----- sfx2/uiconfig/ui/documentinfopage.ui | 78 +++----- sfx2/uiconfig/ui/linefragment.ui | 106 +++++------ 5 files changed, 405 insertions(+), 239 deletions(-)
New commits: commit 3631c6ffcb2f27090cfc1b1c9dd492451d3d485c Author: Heiko Tietze <heiko.tie...@documentfoundation.org> AuthorDate: Tue Sep 3 09:55:04 2024 +0200 Commit: Heiko Tietze <heiko.tie...@documentfoundation.org> CommitDate: Thu Sep 5 07:37:32 2024 +0200 Resolves tdf#162738 - Revert tdf#160937 This reverts commit 2164406a973fd40fcc56b8839a21854f6b50a53b. Reason for revert: Going to implement a scrolled window Change-Id: Icc7dc71860bfcafaea1323a3d0c6f7e1f7dd380f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172758 Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org> Tested-by: Jenkins diff --git a/include/sfx2/dinfdlg.hxx b/include/sfx2/dinfdlg.hxx index 303b06c0c4cb..78e7ccbadcb6 100644 --- a/include/sfx2/dinfdlg.hxx +++ b/include/sfx2/dinfdlg.hxx @@ -246,31 +246,16 @@ private: std::unique_ptr<weld::Entry> m_xTitleEd; std::unique_ptr<weld::Entry> m_xThemaEd; std::unique_ptr<weld::Entry> m_xKeywordsEd; - std::unique_ptr<weld::ComboBox> m_xMoreTypes; - std::unique_ptr<weld::Entry> m_xMoreValue; + std::unique_ptr<weld::Entry> m_xContributorEd; + std::unique_ptr<weld::Entry> m_xCoverageEd; + std::unique_ptr<weld::Entry> m_xIdentifierEd; + std::unique_ptr<weld::Entry> m_xPublisherEd; + std::unique_ptr<weld::Entry> m_xRelationEd; + std::unique_ptr<weld::Entry> m_xRightsEd; + std::unique_ptr<weld::Entry> m_xSourceEd; + std::unique_ptr<weld::Entry> m_xTypeEd; std::unique_ptr<weld::TextView> m_xCommentEd; - DECL_LINK(MoreTypesHdl, weld::ComboBox&, void); - DECL_LINK(MoreValueHdl, weld::Entry&, void); - - OUString m_sMoreValue_Contributor; - OUString m_sMoreValue_Coverage; - OUString m_sMoreValue_Identifier; - OUString m_sMoreValue_Publisher; - OUString m_sMoreValue_Relation; - OUString m_sMoreValue_Rights; - OUString m_sMoreValue_Source; - OUString m_sMoreValue_Type; - - OUString m_sMoreValue_Contributor_Stored; - OUString m_sMoreValue_Coverage_Stored; - OUString m_sMoreValue_Identifier_Stored; - OUString m_sMoreValue_Publisher_Stored; - OUString m_sMoreValue_Relation_Stored; - OUString m_sMoreValue_Rights_Stored; - OUString m_sMoreValue_Source_Stored; - OUString m_sMoreValue_Type_Stored; - virtual bool FillItemSet( SfxItemSet* ) override; virtual void Reset( const SfxItemSet* ) override; diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index d752920ac490..438a31753f31 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -624,14 +624,18 @@ SfxDocumentDescPage::SfxDocumentDescPage(weld::Container* pPage, weld::DialogCon , m_xTitleEd(m_xBuilder->weld_entry(u"title"_ustr)) , m_xThemaEd(m_xBuilder->weld_entry(u"subject"_ustr)) , m_xKeywordsEd(m_xBuilder->weld_entry(u"keywords"_ustr)) - , m_xMoreTypes(m_xBuilder->weld_combo_box(u"cbMoreTypes"_ustr)) - , m_xMoreValue(m_xBuilder->weld_entry(u"edMoreValue"_ustr)) + , m_xContributorEd(m_xBuilder->weld_entry(u"contributor"_ustr)) + , m_xCoverageEd(m_xBuilder->weld_entry(u"coverage"_ustr)) + , m_xIdentifierEd(m_xBuilder->weld_entry(u"identifier"_ustr)) + , m_xPublisherEd(m_xBuilder->weld_entry(u"publisher"_ustr)) + , m_xRelationEd(m_xBuilder->weld_entry(u"relation"_ustr)) + , m_xRightsEd(m_xBuilder->weld_entry(u"rights"_ustr)) + , m_xSourceEd(m_xBuilder->weld_entry(u"source"_ustr)) + , m_xTypeEd(m_xBuilder->weld_entry(u"type"_ustr)) , m_xCommentEd(m_xBuilder->weld_text_view(u"comments"_ustr)) { - m_xCommentEd->set_size_request(-1, //m_xKeywordsEd->get_preferred_size().Width(), - m_xCommentEd->get_height_rows(8)); - m_xMoreTypes->connect_changed(LINK(this, SfxDocumentDescPage, MoreTypesHdl)); - m_xMoreValue->connect_changed(LINK(this, SfxDocumentDescPage, MoreValueHdl)); + m_xCommentEd->set_size_request(m_xKeywordsEd->get_preferred_size().Width(), + m_xCommentEd->get_height_rows(16)); } SfxDocumentDescPage::~SfxDocumentDescPage() @@ -649,16 +653,14 @@ bool SfxDocumentDescPage::FillItemSet(SfxItemSet *rSet) const bool bTitleMod = m_xTitleEd->get_value_changed_from_saved(); const bool bThemeMod = m_xThemaEd->get_value_changed_from_saved(); const bool bKeywordsMod = m_xKeywordsEd->get_value_changed_from_saved(); - - const bool bContributorMod = m_sMoreValue_Contributor != m_sMoreValue_Contributor_Stored; - const bool bCoverageMod = m_sMoreValue_Coverage != m_sMoreValue_Coverage_Stored; - const bool bIdentifierMod = m_sMoreValue_Identifier != m_sMoreValue_Identifier_Stored; - const bool bPublisherMod = m_sMoreValue_Publisher != m_sMoreValue_Publisher_Stored; - const bool bRelationMod = m_sMoreValue_Relation != m_sMoreValue_Relation_Stored; - const bool bRightsMod = m_sMoreValue_Rights != m_sMoreValue_Rights_Stored; - const bool bSourceMod = m_sMoreValue_Source != m_sMoreValue_Source_Stored; - const bool bTypeMod = m_sMoreValue_Type != m_sMoreValue_Type_Stored; - + const bool bContributorMod = m_xContributorEd->get_value_changed_from_saved(); + const bool bCoverageMod = m_xCoverageEd->get_value_changed_from_saved(); + const bool bIdentifierMod = m_xIdentifierEd->get_value_changed_from_saved(); + const bool bPublisherMod = m_xPublisherEd->get_value_changed_from_saved(); + const bool bRelationMod = m_xRelationEd->get_value_changed_from_saved(); + const bool bRightsMod = m_xRightsEd->get_value_changed_from_saved(); + const bool bSourceMod = m_xSourceEd->get_value_changed_from_saved(); + const bool bTypeMod = m_xTypeEd->get_value_changed_from_saved(); const bool bCommentMod = m_xCommentEd->get_value_changed_from_saved(); if (!(bTitleMod || bThemeMod || bKeywordsMod || bTitleMod || bThemeMod || bKeywordsMod || bContributorMod || bCoverageMod || bIdentifierMod || bPublisherMod || bRelationMod @@ -697,35 +699,35 @@ bool SfxDocumentDescPage::FillItemSet(SfxItemSet *rSet) } if (bContributorMod) { - pInfo->setContributor(m_sMoreValue_Contributor); + pInfo->setContributor(m_xContributorEd->get_text()); } if (bCoverageMod) { - pInfo->setCoverage(m_sMoreValue_Coverage); + pInfo->setCoverage(m_xCoverageEd->get_text()); } if (bIdentifierMod) { - pInfo->setIdentifier(m_sMoreValue_Identifier); + pInfo->setIdentifier(m_xIdentifierEd->get_text()); } if (bPublisherMod) { - pInfo->setPublisher(m_sMoreValue_Publisher); + pInfo->setPublisher(m_xPublisherEd->get_text()); } if (bRelationMod) { - pInfo->setRelation(m_sMoreValue_Relation); + pInfo->setRelation(m_xRelationEd->get_text()); } if (bRightsMod) { - pInfo->setRights(m_sMoreValue_Rights); + pInfo->setRights(m_xRightsEd->get_text()); } if (bSourceMod) { - pInfo->setSource(m_sMoreValue_Source); + pInfo->setSource(m_xSourceEd->get_text()); } if (bTypeMod) { - pInfo->setType(m_sMoreValue_Type); + pInfo->setType(m_xTypeEd->get_text()); } if ( bCommentMod ) { @@ -748,32 +750,27 @@ void SfxDocumentDescPage::Reset(const SfxItemSet *rSet) m_xTitleEd->set_text(m_pInfoItem->getTitle()); m_xThemaEd->set_text(m_pInfoItem->getSubject()); m_xKeywordsEd->set_text(m_pInfoItem->getKeywords()); - - m_sMoreValue_Contributor = m_pInfoItem->getContributor(); - m_sMoreValue_Coverage = m_pInfoItem->getCoverage(); - m_sMoreValue_Identifier = m_pInfoItem->getIdentifier(); - m_sMoreValue_Publisher = m_pInfoItem->getPublisher(); - m_sMoreValue_Relation = m_pInfoItem->getRelation(); - m_sMoreValue_Rights = m_pInfoItem->getRights(); - m_sMoreValue_Source = m_pInfoItem->getSource(); - m_sMoreValue_Type = m_pInfoItem->getType(); + m_xContributorEd->set_text(m_pInfoItem->getContributor()); + m_xCoverageEd->set_text(m_pInfoItem->getCoverage()); + m_xIdentifierEd->set_text(m_pInfoItem->getIdentifier()); + m_xPublisherEd->set_text(m_pInfoItem->getPublisher()); + m_xRelationEd->set_text(m_pInfoItem->getRelation()); + m_xRightsEd->set_text(m_pInfoItem->getRights()); + m_xSourceEd->set_text(m_pInfoItem->getSource()); + m_xTypeEd->set_text(m_pInfoItem->getType()); m_xCommentEd->set_text(m_pInfoItem->getDescription()); - MoreTypesHdl(*m_xMoreTypes); //triggers m_xMoreValue update - m_xTitleEd->save_value(); m_xThemaEd->save_value(); m_xKeywordsEd->save_value(); - - m_sMoreValue_Contributor_Stored = m_sMoreValue_Contributor; - m_sMoreValue_Coverage_Stored = m_sMoreValue_Coverage; - m_sMoreValue_Identifier_Stored = m_sMoreValue_Identifier; - m_sMoreValue_Publisher_Stored = m_sMoreValue_Publisher; - m_sMoreValue_Relation_Stored = m_sMoreValue_Relation; - m_sMoreValue_Rights_Stored = m_sMoreValue_Rights; - m_sMoreValue_Source_Stored = m_sMoreValue_Source; - m_sMoreValue_Type_Stored = m_sMoreValue_Type; - + m_xContributorEd->save_value(); + m_xCoverageEd->save_value(); + m_xIdentifierEd->save_value(); + m_xPublisherEd->save_value(); + m_xRelationEd->save_value(); + m_xRightsEd->save_value(); + m_xSourceEd->save_value(); + m_xTypeEd->save_value(); m_xCommentEd->save_value(); const SfxBoolItem* pROItem = SfxItemSet::GetItem<SfxBoolItem>(rSet, SID_DOC_READONLY, false); @@ -782,45 +779,18 @@ void SfxDocumentDescPage::Reset(const SfxItemSet *rSet) m_xTitleEd->set_editable(false); m_xThemaEd->set_editable(false); m_xKeywordsEd->set_editable(false); - m_xMoreValue->set_editable(false); + m_xContributorEd->set_editable(false); + m_xCoverageEd->set_editable(false); + m_xIdentifierEd->set_editable(false); + m_xPublisherEd->set_editable(false); + m_xRelationEd->set_editable(false); + m_xRightsEd->set_editable(false); + m_xSourceEd->set_editable(false); + m_xTypeEd->set_editable(false); m_xCommentEd->set_editable(false); } } -IMPL_LINK_NOARG(SfxDocumentDescPage, MoreValueHdl, weld::Entry&, void) -{ - switch (m_xMoreTypes->get_active()) - { - case 0: m_sMoreValue_Contributor = m_xMoreValue->get_text(); break; - case 1: m_sMoreValue_Coverage = m_xMoreValue->get_text(); break; - case 2: m_sMoreValue_Identifier = m_xMoreValue->get_text(); break; - case 3: m_sMoreValue_Publisher = m_xMoreValue->get_text(); break; - case 4: m_sMoreValue_Relation = m_xMoreValue->get_text(); break; - case 5: m_sMoreValue_Rights = m_xMoreValue->get_text(); break; - case 6: m_sMoreValue_Source = m_xMoreValue->get_text(); break; - case 7: m_sMoreValue_Type = m_xMoreValue->get_text(); break; - default: - DBG_ASSERT(true, "MoreValueHdl out of range"); - } -} - -IMPL_LINK_NOARG(SfxDocumentDescPage, MoreTypesHdl, weld::ComboBox&, void) -{ - switch (m_xMoreTypes->get_active()) - { - case 0: m_xMoreValue->set_text(m_sMoreValue_Contributor); break; - case 1: m_xMoreValue->set_text(m_sMoreValue_Coverage); break; - case 2: m_xMoreValue->set_text(m_sMoreValue_Identifier); break; - case 3: m_xMoreValue->set_text(m_sMoreValue_Publisher); break; - case 4: m_xMoreValue->set_text(m_sMoreValue_Relation); break; - case 5: m_xMoreValue->set_text(m_sMoreValue_Rights); break; - case 6: m_xMoreValue->set_text(m_sMoreValue_Source); break; - case 7: m_xMoreValue->set_text(m_sMoreValue_Type); break; - default: - DBG_ASSERT(true, "MoreTypesHdl out of range"); - } -} - SfxDocumentPage::SfxDocumentPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rItemSet) : SfxTabPage(pPage, pController, u"sfx/ui/documentinfopage.ui"_ustr, u"DocumentInfoPage"_ustr, &rItemSet) , bEnableUseUserData( false ) diff --git a/sfx2/uiconfig/ui/descriptioninfopage.ui b/sfx2/uiconfig/ui/descriptioninfopage.ui index d18910f4c098..5f809140651b 100644 --- a/sfx2/uiconfig/ui/descriptioninfopage.ui +++ b/sfx2/uiconfig/ui/descriptioninfopage.ui @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- Generated with glade 3.40.0 --> +<!-- Generated with glade 3.38.2 --> <interface domain="sfx"> <requires lib="gtk+" version="3.20"/> - <!-- n-columns=2 n-rows=5 --> + <!-- n-columns=2 n-rows=12 --> <object class="GtkGrid" id="DescriptionInfoPage"> <property name="visible">True</property> <property name="can-focus">False</property> @@ -11,6 +11,20 @@ <property name="border-width">6</property> <property name="row-spacing">6</property> <property name="column-spacing">12</property> + <child> + <object class="GtkLabel" id="label27"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="label" translatable="yes" context="descriptioninfopage|label27">_Title:</property> + <property name="use-underline">True</property> + <property name="mnemonic-widget">title</property> + <property name="xalign">1</property> + </object> + <packing> + <property name="left-attach">0</property> + <property name="top-attach">0</property> + </packing> + </child> <child> <object class="GtkLabel" id="label28"> <property name="visible">True</property> @@ -39,6 +53,126 @@ <property name="top-attach">2</property> </packing> </child> + <child> + <object class="GtkLabel" id="label31"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="valign">start</property> + <property name="label" translatable="yes" context="descriptioninfopage|label31">Co_ntributor:</property> + <property name="use-underline">True</property> + <property name="mnemonic-widget">contributor</property> + <property name="xalign">1</property> + </object> + <packing> + <property name="left-attach">0</property> + <property name="top-attach">3</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="label32"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="valign">start</property> + <property name="label" translatable="yes" context="descriptioninfopage|label32">Co_verage:</property> + <property name="use-underline">True</property> + <property name="mnemonic-widget">coverage</property> + <property name="xalign">1</property> + </object> + <packing> + <property name="left-attach">0</property> + <property name="top-attach">4</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="label37"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="valign">start</property> + <property name="label" translatable="yes" context="descriptioninfopage|label37">_Identifier:</property> + <property name="use-underline">True</property> + <property name="mnemonic-widget">identifier</property> + <property name="xalign">1</property> + </object> + <packing> + <property name="left-attach">0</property> + <property name="top-attach">5</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="label39"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="valign">start</property> + <property name="label" translatable="yes" context="descriptioninfopage|label39">_Publisher:</property> + <property name="use-underline">True</property> + <property name="mnemonic-widget">publisher</property> + <property name="xalign">1</property> + </object> + <packing> + <property name="left-attach">0</property> + <property name="top-attach">6</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="label40"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="valign">start</property> + <property name="label" translatable="yes" context="descriptioninfopage|label40">R_elation:</property> + <property name="use-underline">True</property> + <property name="mnemonic-widget">relation</property> + <property name="xalign">1</property> + </object> + <packing> + <property name="left-attach">0</property> + <property name="top-attach">7</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="label41"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="valign">start</property> + <property name="label" translatable="yes" context="descriptioninfopage|label41">Ri_ghts:</property> + <property name="use-underline">True</property> + <property name="mnemonic-widget">rights</property> + <property name="xalign">1</property> + </object> + <packing> + <property name="left-attach">0</property> + <property name="top-attach">8</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="label42"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="valign">start</property> + <property name="label" translatable="yes" context="descriptioninfopage|label42">So_urce:</property> + <property name="use-underline">True</property> + <property name="mnemonic-widget">source</property> + <property name="xalign">1</property> + </object> + <packing> + <property name="left-attach">0</property> + <property name="top-attach">9</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="label45"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="valign">start</property> + <property name="label" translatable="yes" context="descriptioninfopage|label45">T_ype:</property> + <property name="use-underline">True</property> + <property name="mnemonic-widget">type</property> + <property name="xalign">1</property> + </object> + <packing> + <property name="left-attach">0</property> + <property name="top-attach">10</property> + </packing> + </child> <child> <object class="GtkLabel" id="label30"> <property name="visible">True</property> @@ -51,7 +185,7 @@ </object> <packing> <property name="left-attach">0</property> - <property name="top-attach">4</property> + <property name="top-attach">11</property> </packing> </child> <child> @@ -106,13 +240,13 @@ </packing> </child> <child> - <object class="GtkEntry" id="edMoreValue"> + <object class="GtkEntry" id="contributor"> <property name="visible">True</property> <property name="can-focus">True</property> <property name="hexpand">True</property> <property name="truncate-multiline">True</property> <child internal-child="accessible"> - <object class="AtkObject" id="edMoreValue-atkobject"> + <object class="AtkObject" id="contributor-atkobject"> <property name="AtkObject::accessible-description" translatable="yes" context="descriptioninfopage|extended_tip|contributor">Enter the names of the people, organizations, or other entities that have made contributions to the document.</property> </object> </child> @@ -122,6 +256,125 @@ <property name="top-attach">3</property> </packing> </child> + <child> + <object class="GtkEntry" id="coverage"> + <property name="visible">True</property> + <property name="can-focus">True</property> + <property name="hexpand">True</property> + <property name="truncate-multiline">True</property> + <child internal-child="accessible"> + <object class="AtkObject" id="coverage-atkobject"> + <property name="AtkObject::accessible-description" translatable="yes" context="descriptioninfopage|extended_tip|coverage">Enter the time, place, or jurisdiction that the document is relevant to.</property> + </object> + </child> + </object> + <packing> + <property name="left-attach">1</property> + <property name="top-attach">4</property> + </packing> + </child> + <child> + <object class="GtkEntry" id="identifier"> + <property name="visible">True</property> + <property name="can-focus">True</property> + <property name="hexpand">True</property> + <property name="truncate-multiline">True</property> + <child internal-child="accessible"> + <object class="AtkObject" id="identifier-atkobject"> + <property name="AtkObject::accessible-description" translatable="yes" context="descriptioninfopage|extended_tip|identifier">Enter a unique and unambiguous identifier for the document.</property> + </object> + </child> + </object> + <packing> + <property name="left-attach">1</property> + <property name="top-attach">5</property> + </packing> + </child> + <child> + <object class="GtkEntry" id="publisher"> + <property name="visible">True</property> + <property name="can-focus">True</property> + <property name="hexpand">True</property> + <property name="truncate-multiline">True</property> + <child internal-child="accessible"> + <object class="AtkObject" id="publisher-atkobject"> + <property name="AtkObject::accessible-description" translatable="yes" context="descriptioninfopage|extended_tip|publisher">Enter the name of the entity that is making the document available.</property> + </object> + </child> + </object> + <packing> + <property name="left-attach">1</property> + <property name="top-attach">6</property> + </packing> + </child> + <child> + <object class="GtkEntry" id="relation"> + <property name="visible">True</property> + <property name="can-focus">True</property> + <property name="hexpand">True</property> + <property name="truncate-multiline">True</property> + <child internal-child="accessible"> + <object class="AtkObject" id="relation-atkobject"> + <property name="AtkObject::accessible-description" translatable="yes" context="descriptioninfopage|extended_tip|relation">Enter information about a resource related to the document.</property> + </object> + </child> + </object> + <packing> + <property name="left-attach">1</property> + <property name="top-attach">7</property> + </packing> + </child> + <child> + <object class="GtkEntry" id="rights"> + <property name="visible">True</property> + <property name="can-focus">True</property> + <property name="hexpand">True</property> + <property name="truncate-multiline">True</property> + <child internal-child="accessible"> + <object class="AtkObject" id="rights-atkobject"> + <property name="AtkObject::accessible-description" translatable="yes" context="descriptioninfopage|extended_tip|rights">Enter information about intellectual property rights associated with the document.</property> + </object> + </child> + </object> + <packing> + <property name="left-attach">1</property> + <property name="top-attach">8</property> + </packing> + </child> + <child> + <object class="GtkEntry" id="source"> + <property name="visible">True</property> + <property name="can-focus">True</property> + <property name="hexpand">True</property> + <property name="truncate-multiline">True</property> + <child internal-child="accessible"> + <object class="AtkObject" id="source-atkobject"> + <property name="AtkObject::accessible-description" translatable="yes" context="descriptioninfopage|extended_tip|source">Enter information about other resources from which the document is derived.</property> + </object> + </child> + </object> + <packing> + <property name="left-attach">1</property> + <property name="top-attach">9</property> + </packing> + </child> + <child> + <object class="GtkEntry" id="type"> + <property name="visible">True</property> + <property name="can-focus">True</property> + <property name="hexpand">True</property> + <property name="truncate-multiline">True</property> + <child internal-child="accessible"> + <object class="AtkObject" id="type-atkobject"> + <property name="AtkObject::accessible-description" translatable="yes" context="descriptioninfopage|extended_tip|type">Enter information about the category or format of the document.</property> + </object> + </child> + </object> + <packing> + <property name="left-attach">1</property> + <property name="top-attach">10</property> + </packing> + </child> <child> <object class="GtkScrolledWindow" id="scrolledwindow1"> <property name="visible">True</property> @@ -145,41 +398,7 @@ </object> <packing> <property name="left-attach">1</property> - <property name="top-attach">4</property> - </packing> - </child> - <child> - <object class="GtkLabel" id="label27"> - <property name="visible">True</property> - <property name="can-focus">False</property> - <property name="label" translatable="yes" context="descriptioninfopage|label27">_Title:</property> - <property name="use-underline">True</property> - <property name="mnemonic-widget">title</property> - <property name="xalign">1</property> - </object> - <packing> - <property name="left-attach">0</property> - <property name="top-attach">0</property> - </packing> - </child> - <child> - <object class="GtkComboBoxText" id="cbMoreTypes"> - <property name="visible">True</property> - <property name="can-focus">False</property> - <items> - <item translatable="yes" context="descriptioninfopage|type_contributor">Contributor</item> - <item translatable="yes" context="descriptioninfopage|type_coverage">Coverage</item> - <item translatable="yes" context="descriptioninfopage|type_identifier">Identifier</item> - <item translatable="yes" context="descriptioninfopage|type_publisher">Publisher</item> - <item translatable="yes" context="descriptioninfopage|type_relation">Relation</item> - <item translatable="yes" context="descriptioninfopage|type_rights">Rights</item> - <item translatable="yes" context="descriptioninfopage|type_source">Source</item> - <item translatable="yes" context="descriptioninfopage|type_types">Type</item> - </items> - </object> - <packing> - <property name="left-attach">0</property> - <property name="top-attach">3</property> + <property name="top-attach">11</property> </packing> </child> <child internal-child="accessible"> diff --git a/sfx2/uiconfig/ui/documentinfopage.ui b/sfx2/uiconfig/ui/documentinfopage.ui index f908e7fa4e32..919fb9934563 100644 --- a/sfx2/uiconfig/ui/documentinfopage.ui +++ b/sfx2/uiconfig/ui/documentinfopage.ui @@ -184,7 +184,6 @@ <property name="can-focus">True</property> <property name="receives-default">False</property> <property name="no-show-all">True</property> - <property name="halign">start</property> <property name="use-underline">True</property> <property name="draw-indicator">True</property> </object> @@ -400,7 +399,6 @@ <property name="can-focus">True</property> <property name="receives-default">False</property> <property name="no-show-all">True</property> - <property name="halign">start</property> <property name="draw-indicator">True</property> </object> <packing> @@ -412,73 +410,67 @@ <object class="GtkBox"> <property name="visible">True</property> <property name="can-focus">False</property> - <property name="orientation">vertical</property> - <property name="spacing">6</property> + <property name="halign">start</property> <child> <object class="GtkCheckButton" id="image-preferred-dpi-checkbutton"> <property name="label" translatable="yes" context="documentinfopage|image-preferred-dpi-checkbutton">Preferred resolution for images:</property> <property name="visible">True</property> <property name="can-focus">True</property> <property name="receives-default">False</property> - <property name="halign">start</property> <property name="margin-end">6</property> <property name="draw-indicator">True</property> + <accessibility> + <relation type="label-for" target="image-preferred-dpi-combobox"/> + </accessibility> </object> <packing> - <property name="expand">False</property> + <property name="expand">True</property> <property name="fill">True</property> <property name="position">0</property> </packing> </child> <child> - <object class="GtkBox"> + <object class="GtkComboBoxText" id="image-preferred-dpi-combobox"> <property name="visible">True</property> <property name="can-focus">False</property> - <property name="halign">start</property> - <property name="margin-start">24</property> - <property name="spacing">3</property> - <child> - <object class="GtkComboBoxText" id="image-preferred-dpi-combobox"> - <property name="visible">True</property> + <property name="has-entry">True</property> + <items> + <item>96</item> + <item>150</item> + <item>200</item> + <item>300</item> + <item>600</item> + </items> + <child internal-child="entry"> + <object class="GtkEntry"> + <property name="truncate-multiline">True</property> <property name="can-focus">False</property> - <property name="halign">start</property> - <property name="has-entry">True</property> - <items> - <item>96</item> - <item>150</item> - <item>200</item> - <item>300</item> - <item>600</item> - </items> </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">0</property> - </packing> - </child> - <child> - <object class="GtkLabel" id="lbUnit"> - <property name="visible">True</property> - <property name="can-focus">False</property> - <property name="halign">start</property> - <property name="margin-start">6</property> - <property name="margin-end">6</property> - <property name="label" translatable="yes" context="documentinfopage|image-preferred-ppi-unit">ppi</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">1</property> - </packing> </child> + <accessibility> + <relation type="labelled-by" target="image-preferred-dpi-checkbutton"/> + </accessibility> </object> <packing> <property name="expand">False</property> - <property name="fill">True</property> + <property name="fill">False</property> <property name="position">1</property> </packing> </child> + <child> + <object class="GtkLabel" id="lbUnit"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="margin-start">6</property> + <property name="margin-end">6</property> + <property name="label" translatable="yes" context="documentinfopage|image-preferred-ppi-unit">ppi</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">2</property> + </packing> + </child> </object> <packing> <property name="left-attach">1</property> diff --git a/sfx2/uiconfig/ui/linefragment.ui b/sfx2/uiconfig/ui/linefragment.ui index 1c2965001cc1..422a3324199d 100644 --- a/sfx2/uiconfig/ui/linefragment.ui +++ b/sfx2/uiconfig/ui/linefragment.ui @@ -1,80 +1,80 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- Generated with glade 3.40.0 --> +<!-- Generated with glade 3.22.1 --> <interface domain="sfx"> <requires lib="gtk+" version="3.20"/> <object class="GtkAdjustment" id="adjustment1"> <property name="upper">86400000</property> - <property name="step-increment">1000</property> - <property name="page-increment">60000</property> + <property name="step_increment">1000</property> + <property name="page_increment">60000</property> </object> <object class="GtkImage" id="image1"> <property name="visible">True</property> - <property name="can-focus">False</property> - <property name="icon-name">sfx2/res/deleterow.png</property> + <property name="can_focus">False</property> + <property name="icon_name">sfx2/res/deleterow.png</property> </object> - <!-- n-columns=4 n-rows=1 --> + <!-- n-columns=1 n-rows=1 --> <object class="GtkGrid" id="lineentry"> <property name="visible">True</property> - <property name="can-focus">False</property> - <property name="no-show-all">True</property> + <property name="can_focus">False</property> + <property name="no_show_all">True</property> <property name="valign">start</property> <property name="hexpand">True</property> <property name="vexpand">True</property> - <property name="column-spacing">4</property> + <property name="column_spacing">4</property> <child> <object class="GtkComboBoxText" id="namebox"> <property name="visible">True</property> - <property name="can-focus">False</property> - <property name="has-entry">True</property> + <property name="can_focus">False</property> + <property name="has_entry">True</property> <child internal-child="entry"> <object class="GtkEntry"> - <property name="can-focus">True</property> - <property name="width-chars">0</property> + <property name="can_focus">True</property> <property name="truncate-multiline">True</property> + <property name="width_chars">27</property> </object> </child> </object> <packing> - <property name="left-attach">0</property> - <property name="top-attach">0</property> + <property name="left_attach">0</property> + <property name="top_attach">0</property> </packing> </child> <child> <object class="GtkComboBoxText" id="typebox"> <property name="visible">True</property> - <property name="can-focus">False</property> + <property name="can_focus">False</property> </object> <packing> - <property name="left-attach">1</property> - <property name="top-attach">0</property> + <property name="left_attach">1</property> + <property name="top_attach">0</property> </packing> </child> <child> <object class="GtkButton" id="remove"> <property name="visible">True</property> - <property name="can-focus">True</property> - <property name="receives-default">True</property> - <property name="tooltip-text" translatable="yes" context="linefragment|STR_SFX_REMOVE_PROPERTY">Remove Property</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + <property name="tooltip_text" translatable="yes" context="linefragment|STR_SFX_REMOVE_PROPERTY">Remove Property</property> <property name="image">image1</property> <property name="always-show-image">True</property> </object> <packing> - <property name="left-attach">3</property> - <property name="top-attach">0</property> + <property name="left_attach">3</property> + <property name="top_attach">0</property> </packing> </child> <child> <object class="GtkBox"> <property name="visible">True</property> - <property name="can-focus">False</property> + <property name="can_focus">False</property> <property name="hexpand">True</property> <property name="orientation">vertical</property> <child> <object class="GtkEntry" id="valueedit"> <property name="visible">True</property> - <property name="can-focus">True</property> - <property name="width-chars">0</property> + <property name="can_focus">True</property> <property name="truncate-multiline">True</property> + <property name="width_chars">32</property> </object> <packing> <property name="expand">True</property> @@ -84,16 +84,16 @@ </child> <child> <object class="GtkBox" id="datetimebox"> - <property name="can-focus">False</property> - <property name="no-show-all">True</property> + <property name="can_focus">False</property> + <property name="no_show_all">True</property> <property name="hexpand">True</property> <property name="spacing">3</property> <child> <object class="GtkMenuButton" id="date"> <property name="visible">True</property> - <property name="can-focus">True</property> - <property name="receives-default">False</property> - <property name="draw-indicator">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="draw_indicator">True</property> <property name="label" translatable="no"></property> <child> <placeholder/> @@ -108,7 +108,7 @@ <child> <object class="GtkSpinButton" id="time"> <property name="visible">True</property> - <property name="can-focus">True</property> + <property name="can_focus">True</property> <property name="truncate-multiline">True</property> <property name="adjustment">adjustment1</property> </object> @@ -127,16 +127,16 @@ </child> <child> <object class="GtkBox" id="durationbox"> - <property name="can-focus">False</property> - <property name="no-show-all">True</property> + <property name="can_focus">False</property> + <property name="no_show_all">True</property> <property name="spacing">3</property> <child> <object class="GtkEntry" id="duration"> <property name="visible">True</property> - <property name="can-focus">True</property> + <property name="can_focus">True</property> <property name="hexpand">True</property> - <property name="editable">False</property> <property name="truncate-multiline">True</property> + <property name="editable">False</property> </object> <packing> <property name="expand">False</property> @@ -148,8 +148,8 @@ <object class="GtkButton" id="durationbutton"> <property name="label" translatable="yes" context="linefragment|SFX_ST_EDIT">...</property> <property name="visible">True</property> - <property name="can-focus">True</property> - <property name="receives-default">True</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> </object> <packing> <property name="expand">False</property> @@ -166,28 +166,28 @@ </child> <child> <object class="GtkScrolledWindow" id="yesno"> - <property name="can-focus">True</property> - <property name="no-show-all">True</property> - <property name="hscrollbar-policy">never</property> - <property name="vscrollbar-policy">never</property> - <property name="shadow-type">in</property> + <property name="can_focus">True</property> + <property name="no_show_all">True</property> + <property name="hscrollbar_policy">never</property> + <property name="vscrollbar_policy">never</property> + <property name="shadow_type">in</property> <child> <object class="GtkViewport"> <property name="visible">True</property> - <property name="can-focus">False</property> + <property name="can_focus">False</property> <child> <object class="GtkBox"> <property name="visible">True</property> - <property name="can-focus">False</property> + <property name="can_focus">False</property> <property name="homogeneous">True</property> <child> <object class="GtkRadioButton" id="yes"> <property name="label" translatable="yes" context="linefragment|yes">Yes</property> <property name="visible">True</property> - <property name="can-focus">True</property> - <property name="receives-default">False</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> <property name="active">True</property> - <property name="draw-indicator">True</property> + <property name="draw_indicator">True</property> </object> <packing> <property name="expand">False</property> @@ -199,9 +199,9 @@ <object class="GtkRadioButton" id="no"> <property name="label" translatable="yes" context="linefragment|no">No</property> <property name="visible">True</property> - <property name="can-focus">True</property> - <property name="receives-default">False</property> - <property name="draw-indicator">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="draw_indicator">True</property> <property name="group">yes</property> </object> <packing> @@ -223,8 +223,8 @@ </child> </object> <packing> - <property name="left-attach">2</property> - <property name="top-attach">0</property> + <property name="left_attach">2</property> + <property name="top_attach">0</property> </packing> </child> </object>