Resolves tdf#153499 - Hide newly introduced frame label

Frame content is not shown for existing entries
Follow-up to 4ec75d22eb916e3809e9e92f77fd25e33f6b21ee

Change-Id: Ic2b40b19424245ede326a5ef5b53f684ca8a3f94
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151166
Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
diff --git a/sw/source/ui/index/swuiidxmrk.cxx b/sw/source/ui/index/swuiidxmrk.cxx
index 7bab5d5..22c1bc7 100644
--- a/sw/source/ui/index/swuiidxmrk.cxx
+++ b/sw/source/ui/index/swuiidxmrk.cxx
@@ -168,6 +168,7 @@ SwIndexMarkPane::SwIndexMarkPane(std::shared_ptr<weld::Dialog> xDialog, weld::Bu
    , m_xNextSameBT(rBuilder.weld_button("last"))
    , m_xPrevBT(rBuilder.weld_button("previous"))
    , m_xNextBT(rBuilder.weld_button("next"))
    , m_xForSelectedEntry(rBuilder.weld_label("selectedentrytitle"))
{
    m_xSyncED->show();

@@ -345,6 +346,7 @@ void SwIndexMarkPane::InitControls()
            //to include all equal entries may only be allowed in the body and even there
            //only when a simple selection exists
            const FrameTypeFlags nFrameType = m_pSh->GetFrameType(nullptr,true);
            m_xForSelectedEntry->show();
            m_xApplyToAllCB->show();
            m_xSearchCaseSensitiveCB->show();
            m_xSearchCaseWordOnlyCB->show();
diff --git a/sw/source/uibase/inc/swuiidxmrk.hxx b/sw/source/uibase/inc/swuiidxmrk.hxx
index 2500548..7f5460a 100644
--- a/sw/source/uibase/inc/swuiidxmrk.hxx
+++ b/sw/source/uibase/inc/swuiidxmrk.hxx
@@ -87,6 +87,7 @@ class SwIndexMarkPane
    std::unique_ptr<weld::Button> m_xNextSameBT;
    std::unique_ptr<weld::Button> m_xPrevBT;
    std::unique_ptr<weld::Button> m_xNextBT;
    std::unique_ptr<weld::Label> m_xForSelectedEntry;

    void            Apply();
    void            InitControls();
diff --git a/sw/uiconfig/swriter/ui/indexentry.ui b/sw/uiconfig/swriter/ui/indexentry.ui
index ca3f1f5..5a70ad7 100644
--- a/sw/uiconfig/swriter/ui/indexentry.ui
+++ b/sw/uiconfig/swriter/ui/indexentry.ui
@@ -582,8 +582,8 @@
            </child>
            <child type="label">
              <object class="GtkLabel" id="selectedentrytitle">
                <property name="visible">True</property>
                <property name="can-focus">False</property>
                <property name="no-show-all">True</property>
                <property name="label" translatable="yes" context="indexentry|selectedentrytitle">For Selected Entry</property>
                <attributes>
                  <attribute name="weight" value="bold"/>