icon-themes/breeze/links.txt                                         |   10 +
 icon-themes/breeze_dark/links.txt                                    |   10 +
 icon-themes/colibre/links.txt                                        |   10 +
 icon-themes/colibre_dark/links.txt                                   |   10 +
 icon-themes/elementary/links.txt                                     |   10 +
 icon-themes/karasa_jaga/links.txt                                    |   10 +
 icon-themes/sifr/links.txt                                           |   10 +
 icon-themes/sifr_dark/links.txt                                      |   10 +
 icon-themes/sukapura/links.txt                                       |   10 +
 icon-themes/sukapura_dark/links.txt                                  |   10 +
 officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu |   56 
++++++++++
 sw/source/uibase/inc/content.hxx                                     |    2 
 sw/source/uibase/inc/conttree.hxx                                    |    1 
 sw/source/uibase/utlui/content.cxx                                   |   24 
++++
 sw/uiconfig/swriter/ui/navigatorcontextmenu.ui                       |    7 +
 sw/uiconfig/swriter/ui/navigatorpanel.ui                             |   52 
+++++++++
 16 files changed, 242 insertions(+)

New commits:
commit c2be6c15f7ae70081936d11c7e9274d984d18c47
Author:     Jim Raykowski <[email protected]>
AuthorDate: Fri Oct 31 02:31:25 2025 -0800
Commit:     Jim Raykowski <[email protected]>
CommitDate: Tue Nov 4 17:28:28 2025 +0100

    tdf#169151 Allow modifying accessible text alternative in sidebar
    
    This patch adds a 'Text Alternative...' menu item to the Writer
    Navigator context menu for content type entries that can have this
    (Frames, Images, OLE objects, and Drawing objects). It also
    adds an action button to the functions toolbar in the Writer Navigator
    tool box for these content types.
    
    Seems gtk isn't able to use the 'action-name' property in the .ui
    file. <property name="action-name">.uno:ObjectTitleDescription</
    property> works for qt and gen, which allows to not need the alias
    "TargetURL" UNO commands added to GenericCommands.xcu and the icon
    declarations added to the icon-theme link text files. I think it would
    be nice if gtk supported this .ui property as well.
    
    Change-Id: I519590fc56f39e9c6c2b2fccea568271e5fd3e77
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193376
    Tested-by: Jenkins
    Reviewed-by: Jim Raykowski <[email protected]>
    Reviewed-by: Michael Weghorn <[email protected]>

diff --git a/icon-themes/breeze/links.txt b/icon-themes/breeze/links.txt
index 3950e18007b9..c4f6ed9f5393 100644
--- a/icon-themes/breeze/links.txt
+++ b/icon-themes/breeze/links.txt
@@ -2842,3 +2842,13 @@ cmd/sc_redactionpreviewexport.png 
cmd/sc_exportdirecttopdf.png
 cmd/32/tabletransformdialog.png cmd/32/transformdialog.png
 cmd/lc_tabletransformdialog.png cmd/lc_transformdialog.png
 cmd/sc_tabletransformdialog.png cmd/sc_transformdialog.png
+
+# SwNavigator toolbox functions toolbar
+cmd/sc_objecttitledescription-frames.png cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-frames.png cmd/lc_objecttitledescription.png
+cmd/sc_objecttitledescription-images.png cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-images.png cmd/lc_objecttitledescription.png
+cmd/sc_objecttitledescription-oleobjects.png cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-oleobjects.png cmd/lc_objecttitledescription.png
+cmd/sc_objecttitledescription-drawingobjects.png 
cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-drawingobjects.png 
cmd/lc_objecttitledescription.png
diff --git a/icon-themes/breeze_dark/links.txt 
b/icon-themes/breeze_dark/links.txt
index 2bd33a6a42e9..9b49610ee75d 100644
--- a/icon-themes/breeze_dark/links.txt
+++ b/icon-themes/breeze_dark/links.txt
@@ -2842,3 +2842,13 @@ cmd/sc_redactionpreviewexport.png 
cmd/sc_exportdirecttopdf.png
 cmd/32/tabletransformdialog.png cmd/32/transformdialog.png
 cmd/lc_tabletransformdialog.png cmd/lc_transformdialog.png
 cmd/sc_tabletransformdialog.png cmd/sc_transformdialog.png
+
+# SwNavigator toolbox functions toolbar
+cmd/sc_objecttitledescription-frames.png cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-frames.png cmd/lc_objecttitledescription.png
+cmd/sc_objecttitledescription-images.png cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-images.png cmd/lc_objecttitledescription.png
+cmd/sc_objecttitledescription-oleobjects.png cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-oleobjects.png cmd/lc_objecttitledescription.png
+cmd/sc_objecttitledescription-drawingobjects.png 
cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-drawingobjects.png 
cmd/lc_objecttitledescription.png
diff --git a/icon-themes/colibre/links.txt b/icon-themes/colibre/links.txt
index 7fb6f6e57c07..44f1b20d84a0 100644
--- a/icon-themes/colibre/links.txt
+++ b/icon-themes/colibre/links.txt
@@ -2701,3 +2701,13 @@ cmd/sc_formatline-more.png 
sfx2/res/symphony/open_more.png
 cmd/32/tabletransformdialog.png cmd/32/transformdialog.png
 cmd/lc_tabletransformdialog.png cmd/lc_transformdialog.png
 cmd/sc_tabletransformdialog.png cmd/sc_transformdialog.png
+
+# SwNavigator toolbox functions toolbar
+cmd/sc_objecttitledescription-frames.png cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-frames.png cmd/lc_objecttitledescription.png
+cmd/sc_objecttitledescription-images.png cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-images.png cmd/lc_objecttitledescription.png
+cmd/sc_objecttitledescription-oleobjects.png cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-oleobjects.png cmd/lc_objecttitledescription.png
+cmd/sc_objecttitledescription-drawingobjects.png 
cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-drawingobjects.png 
cmd/lc_objecttitledescription.png
diff --git a/icon-themes/colibre_dark/links.txt 
b/icon-themes/colibre_dark/links.txt
index 9ec8b526e650..26db60b8a3d6 100644
--- a/icon-themes/colibre_dark/links.txt
+++ b/icon-themes/colibre_dark/links.txt
@@ -2700,3 +2700,13 @@ cmd/sc_formatline-more.png 
sfx2/res/symphony/open_more.png
 cmd/32/tabletransformdialog.png cmd/32/transformdialog.png
 cmd/lc_tabletransformdialog.png cmd/lc_transformdialog.png
 cmd/sc_tabletransformdialog.png cmd/sc_transformdialog.png
+
+# SwNavigator toolbox functions toolbar
+cmd/sc_objecttitledescription-frames.png cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-frames.png cmd/lc_objecttitledescription.png
+cmd/sc_objecttitledescription-images.png cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-images.png cmd/lc_objecttitledescription.png
+cmd/sc_objecttitledescription-oleobjects.png cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-oleobjects.png cmd/lc_objecttitledescription.png
+cmd/sc_objecttitledescription-drawingobjects.png 
cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-drawingobjects.png 
cmd/lc_objecttitledescription.png
diff --git a/icon-themes/elementary/links.txt b/icon-themes/elementary/links.txt
index f7c88a23c72d..34024878102b 100644
--- a/icon-themes/elementary/links.txt
+++ b/icon-themes/elementary/links.txt
@@ -2652,3 +2652,13 @@ cmd/sc_formatline-more.png cmd/sc_controlproperties.png
 cmd/32/tabletransformdialog.png cmd/32/transformdialog.png
 cmd/lc_tabletransformdialog.png cmd/lc_transformdialog.png
 cmd/sc_tabletransformdialog.png cmd/sc_transformdialog.png
+
+# SwNavigator toolbox functions toolbar
+cmd/sc_objecttitledescription-frames.png cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-frames.png cmd/lc_objecttitledescription.png
+cmd/sc_objecttitledescription-images.png cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-images.png cmd/lc_objecttitledescription.png
+cmd/sc_objecttitledescription-oleobjects.png cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-oleobjects.png cmd/lc_objecttitledescription.png
+cmd/sc_objecttitledescription-drawingobjects.png 
cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-drawingobjects.png 
cmd/lc_objecttitledescription.png
diff --git a/icon-themes/karasa_jaga/links.txt 
b/icon-themes/karasa_jaga/links.txt
index 17f9875d9b56..fb0c469eae96 100644
--- a/icon-themes/karasa_jaga/links.txt
+++ b/icon-themes/karasa_jaga/links.txt
@@ -2073,3 +2073,13 @@ vcl/res/radio5.png vcl/res/radio3.png
 vcl/source/src/msgbox.png vcl/res/msgbox.png
 xmlsecurity/res/notcertificate_16.png svx/res/notcertificate_16.png
 xmlsecurity/res/signet_11x16.png svx/res/signet_11x16.png
+
+# SwNavigator toolbox functions toolbar
+cmd/sc_objecttitledescription-frames.png cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-frames.png cmd/lc_objecttitledescription.png
+cmd/sc_objecttitledescription-images.png cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-images.png cmd/lc_objecttitledescription.png
+cmd/sc_objecttitledescription-oleobjects.png cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-oleobjects.png cmd/lc_objecttitledescription.png
+cmd/sc_objecttitledescription-drawingobjects.png 
cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-drawingobjects.png 
cmd/lc_objecttitledescription.png
diff --git a/icon-themes/sifr/links.txt b/icon-themes/sifr/links.txt
index 660acebca08d..a6bbdc0c6326 100644
--- a/icon-themes/sifr/links.txt
+++ b/icon-themes/sifr/links.txt
@@ -2726,3 +2726,13 @@ cmd/sc_formatline-more.png cmd/sc_controlproperties.png
 cmd/32/tabletransformdialog.png cmd/32/transformdialog.png
 cmd/lc_tabletransformdialog.png cmd/lc_transformdialog.png
 cmd/sc_tabletransformdialog.png cmd/sc_transformdialog.png
+
+# SwNavigator toolbox functions toolbar
+cmd/sc_objecttitledescription-frames.png cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-frames.png cmd/lc_objecttitledescription.png
+cmd/sc_objecttitledescription-images.png cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-images.png cmd/lc_objecttitledescription.png
+cmd/sc_objecttitledescription-oleobjects.png cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-oleobjects.png cmd/lc_objecttitledescription.png
+cmd/sc_objecttitledescription-drawingobjects.png 
cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-drawingobjects.png 
cmd/lc_objecttitledescription.png
diff --git a/icon-themes/sifr_dark/links.txt b/icon-themes/sifr_dark/links.txt
index 50b968337e22..85fd843a6b96 100644
--- a/icon-themes/sifr_dark/links.txt
+++ b/icon-themes/sifr_dark/links.txt
@@ -2725,3 +2725,13 @@ cmd/sc_formatline-more.png cmd/sc_controlproperties.png
 cmd/32/tabletransformdialog.png cmd/32/transformdialog.png
 cmd/lc_tabletransformdialog.png cmd/lc_transformdialog.png
 cmd/sc_tabletransformdialog.png cmd/sc_transformdialog.png
+
+# SwNavigator toolbox functions toolbar
+cmd/sc_objecttitledescription-frames.png cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-frames.png cmd/lc_objecttitledescription.png
+cmd/sc_objecttitledescription-images.png cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-images.png cmd/lc_objecttitledescription.png
+cmd/sc_objecttitledescription-oleobjects.png cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-oleobjects.png cmd/lc_objecttitledescription.png
+cmd/sc_objecttitledescription-drawingobjects.png 
cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-drawingobjects.png 
cmd/lc_objecttitledescription.png
diff --git a/icon-themes/sukapura/links.txt b/icon-themes/sukapura/links.txt
index 90e7a3968797..89a1a2fd56f0 100644
--- a/icon-themes/sukapura/links.txt
+++ b/icon-themes/sukapura/links.txt
@@ -2725,3 +2725,13 @@ cmd/sc_formatline-more.png cmd/sc_controlproperties.png
 cmd/32/tabletransformdialog.png cmd/32/transformdialog.png
 cmd/lc_tabletransformdialog.png cmd/lc_transformdialog.png
 cmd/sc_tabletransformdialog.png cmd/sc_transformdialog.png
+
+# SwNavigator toolbox functions toolbar
+cmd/sc_objecttitledescription-frames.png cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-frames.png cmd/lc_objecttitledescription.png
+cmd/sc_objecttitledescription-images.png cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-images.png cmd/lc_objecttitledescription.png
+cmd/sc_objecttitledescription-oleobjects.png cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-oleobjects.png cmd/lc_objecttitledescription.png
+cmd/sc_objecttitledescription-drawingobjects.png 
cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-drawingobjects.png 
cmd/lc_objecttitledescription.png
diff --git a/icon-themes/sukapura_dark/links.txt 
b/icon-themes/sukapura_dark/links.txt
index 5e631704fd4d..6c1b1a65c295 100644
--- a/icon-themes/sukapura_dark/links.txt
+++ b/icon-themes/sukapura_dark/links.txt
@@ -2725,3 +2725,13 @@ cmd/sc_formatline-more.png cmd/sc_controlproperties.png
 cmd/32/tabletransformdialog.png cmd/32/transformdialog.png
 cmd/lc_tabletransformdialog.png cmd/lc_transformdialog.png
 cmd/sc_tabletransformdialog.png cmd/sc_transformdialog.png
+
+# SwNavigator toolbox functions toolbar
+cmd/sc_objecttitledescription-frames.png cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-frames.png cmd/lc_objecttitledescription.png
+cmd/sc_objecttitledescription-images.png cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-images.png cmd/lc_objecttitledescription.png
+cmd/sc_objecttitledescription-oleobjects.png cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-oleobjects.png cmd/lc_objecttitledescription.png
+cmd/sc_objecttitledescription-drawingobjects.png 
cmd/sc_objecttitledescription.png
+cmd/lc_objecttitledescription-drawingobjects.png 
cmd/lc_objecttitledescription.png
diff --git 
a/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu 
b/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu
index fe7dc89621ab..a9c5d7832fd3 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu
@@ -7733,6 +7733,62 @@ bit 3 (0x8): #define 
UICOMMANDDESCRIPTION_PROPERTIES_TOGGLEBUTTON 8
           <value>1</value>
         </prop>
       </node>
+      <node oor:name=".uno:ObjectTitleDescription-Frames" oor:op="replace">
+        <prop oor:name="Label" oor:type="xs:string">
+          <value xml:lang="en-US">Alt Text..</value>
+        </prop>
+        <prop oor:name="TooltipLabel" oor:type="xs:string">
+          <value xml:lang="en-US">Add descriptions of non-text content (for 
accessibility)</value>
+        </prop>
+        <prop oor:name="TargetURL" oor:type="xs:string">
+          <value>.uno:ObjectTitleDescription</value>
+        </prop>
+        <prop oor:name="Properties" oor:type="xs:int">
+          <value>1</value>
+        </prop>
+      </node>
+      <node oor:name=".uno:ObjectTitleDescription-Images" oor:op="replace">
+        <prop oor:name="Label" oor:type="xs:string">
+          <value xml:lang="en-US">Alt Text..</value>
+        </prop>
+        <prop oor:name="TooltipLabel" oor:type="xs:string">
+          <value xml:lang="en-US">Add descriptions of non-text content (for 
accessibility)</value>
+        </prop>
+        <prop oor:name="TargetURL" oor:type="xs:string">
+          <value>.uno:ObjectTitleDescription</value>
+        </prop>
+        <prop oor:name="Properties" oor:type="xs:int">
+          <value>1</value>
+        </prop>
+      </node>
+      <node oor:name=".uno:ObjectTitleDescription-OLEobjects" oor:op="replace">
+        <prop oor:name="Label" oor:type="xs:string">
+          <value xml:lang="en-US">Alt Text..</value>
+        </prop>
+        <prop oor:name="TooltipLabel" oor:type="xs:string">
+          <value xml:lang="en-US">Add descriptions of non-text content (for 
accessibility)</value>
+        </prop>
+        <prop oor:name="TargetURL" oor:type="xs:string">
+          <value>.uno:ObjectTitleDescription</value>
+        </prop>
+        <prop oor:name="Properties" oor:type="xs:int">
+          <value>1</value>
+        </prop>
+      </node>
+      <node oor:name=".uno:ObjectTitleDescription-Drawingobjects" 
oor:op="replace">
+        <prop oor:name="Label" oor:type="xs:string">
+          <value xml:lang="en-US">Alt Text..</value>
+        </prop>
+        <prop oor:name="TooltipLabel" oor:type="xs:string">
+          <value xml:lang="en-US">Add descriptions of non-text content (for 
accessibility)</value>
+        </prop>
+        <prop oor:name="TargetURL" oor:type="xs:string">
+          <value>.uno:ObjectTitleDescription</value>
+        </prop>
+        <prop oor:name="Properties" oor:type="xs:int">
+          <value>1</value>
+        </prop>
+      </node>
       <node oor:name=".uno:SafeMode" oor:op="replace">
         <prop oor:name="Label" oor:type="xs:string">
           <value xml:lang="en-US">~Restart in Safe Mode...</value>
diff --git a/sw/source/uibase/inc/content.hxx b/sw/source/uibase/inc/content.hxx
index 8c790b2ec1c4..5cacdfb53e4b 100644
--- a/sw/source/uibase/inc/content.hxx
+++ b/sw/source/uibase/inc/content.hxx
@@ -201,6 +201,7 @@ class SwContentType final : public SwTypeNumber
     bool                m_bEdit:          1;  // can this type be edited?
     bool                m_bDelete:        1;  // can this type be deleted?
     bool m_bRenamable = false;
+    bool m_bTextAlternative = false;
 
     bool m_bAlphabeticSort = false;
 
@@ -235,6 +236,7 @@ public:
         bool                IsEditable() const {return m_bEdit;}
         bool                IsDeletable() const {return m_bDelete;}
         bool IsRenamable() const {return m_bRenamable;}
+        bool HasTextAlternative() const {return m_bTextAlternative;}
 };
 
 #endif
diff --git a/sw/source/uibase/inc/conttree.hxx 
b/sw/source/uibase/inc/conttree.hxx
index 6b39a8f0303c..c06d256c5257 100644
--- a/sw/source/uibase/inc/conttree.hxx
+++ b/sw/source/uibase/inc/conttree.hxx
@@ -50,6 +50,7 @@ enum class EditEntryMode
     UNPROTECT_TABLE    = 2,
     DELETE        = 3,
     RENAME        = 4,
+    TEXT_ALTERNATIVE = 5
 };
 
 // Flags for PopupMenu-enable/disable
diff --git a/sw/source/uibase/utlui/content.cxx 
b/sw/source/uibase/utlui/content.cxx
index 7163449452a8..550fe43266ca 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -434,16 +434,19 @@ SwContentType::SwContentType(SwWrtShell* pShell, 
ContentTypeId nType, sal_uInt8
             m_sTypeToken = "frame";
             m_bEdit = true;
             m_bRenamable = true;
+            m_bTextAlternative = true;
         break;
         case ContentTypeId::GRAPHIC:
             m_sTypeToken = "graphic";
             m_bEdit = true;
             m_bRenamable = true;
+            m_bTextAlternative = true;
         break;
         case ContentTypeId::OLE:
             m_sTypeToken = "ole";
             m_bEdit = true;
             m_bRenamable = true;
+            m_bTextAlternative = true;
         break;
         case ContentTypeId::TEXTFIELD:
             m_bEdit = true;
@@ -483,6 +486,7 @@ SwContentType::SwContentType(SwWrtShell* pShell, 
ContentTypeId nType, sal_uInt8
             m_sTypeToken = "drawingobject";
             m_bEdit = true;
             m_bRenamable = true;
+            m_bTextAlternative = true;
         break;
         default: break;
     }
@@ -1787,6 +1791,7 @@ IMPL_LINK(SwContentTree, CommandHdl, const CommandEvent&, 
rCEvt, bool)
     bool bRemoveMakeAllFootnotesEndnotesEntry = true,
          bRemoveMakeAllEndnotesFootnotesEntry = true;
     bool bRemoveRenameEntry = true;
+    bool bRemoveTextAlternative = true;
     bool bRemoveSelectEntry = true;
     bool bRemoveToggleExpandEntry = true;
     bool bRemoveChapterEntries = true;
@@ -2031,6 +2036,8 @@ IMPL_LINK(SwContentTree, CommandHdl, const CommandEvent&, 
rCEvt, bool)
             }
             if (bRenamable && !bReadonly)
                 bRemoveRenameEntry = false;
+            if (pType->HasTextAlternative() && !bReadonly)
+                bRemoveTextAlternative = false;
         }
         else
         {
@@ -2241,6 +2248,9 @@ IMPL_LINK(SwContentTree, CommandHdl, const CommandEvent&, 
rCEvt, bool)
     if (bRemoveRenameEntry)
         xPop->remove(OUString::number(502));
 
+    if (bRemoveTextAlternative)
+        xPop->remove(u"textalternative"_ustr);
+
     if (bRemoveUpdateIndexEntry)
         xPop->remove(OUString::number(402));
 
@@ -5953,6 +5963,12 @@ void SwContentTree::ExecuteContextMenuAction(const 
OUString& rSelectedPopupEntry
         EditEntry(*xFirst, EditEntryMode::DELETE);
         return;
     }
+    else if (rSelectedPopupEntry == "textalternative")
+    {
+        EditEntry(*xFirst, EditEntryMode::TEXT_ALTERNATIVE);
+        return;
+    }
+
 
     auto nSelectedPopupEntry = rSelectedPopupEntry.toUInt32();
     switch (nSelectedPopupEntry)
@@ -6306,6 +6322,14 @@ void SwContentTree::EditEntry(const weld::TreeIter& 
rEntry, EditEntryMode nMode)
 
     SwContent* pCnt = weld::fromId<SwContent*>(m_xTreeView->get_id(rEntry));
     GotoContent(pCnt);
+
+    if (nMode == EditEntryMode::TEXT_ALTERNATIVE)
+    {
+        m_pActiveShell->GetView().GetViewFrame().
+                    GetDispatcher()->Execute(FN_TITLE_DESCRIPTION_SHAPE, 
SfxCallMode::SYNCHRON);
+        return;
+    }
+
     const ContentTypeId nType = pCnt->GetParent()->GetType();
     sal_uInt16 nSlot = 0;
 
diff --git a/sw/uiconfig/swriter/ui/navigatorcontextmenu.ui 
b/sw/uiconfig/swriter/ui/navigatorcontextmenu.ui
index fa59caf10f85..7d52b17f9815 100644
--- a/sw/uiconfig/swriter/ui/navigatorcontextmenu.ui
+++ b/sw/uiconfig/swriter/ui/navigatorcontextmenu.ui
@@ -405,6 +405,13 @@
         <property name="use-underline">True</property>
       </object>
     </child>
+    <child>
+      <object class="GtkMenuItem" id="textalternative">
+        <property name="visible">True</property>
+        <property name="can-focus">False</property>
+        <property name="label" translatable="yes" 
context="navigatorcontextmenu|STR_TEXT_ALTERNATIVE">Text 
Alternative...</property>
+      </object>
+    </child>
     <child>
       <object class="GtkCheckMenuItem" id="protectsection">
         <property name="visible">True</property>
diff --git a/sw/uiconfig/swriter/ui/navigatorpanel.ui 
b/sw/uiconfig/swriter/ui/navigatorpanel.ui
index 1621b118786d..b645d187b252 100644
--- a/sw/uiconfig/swriter/ui/navigatorpanel.ui
+++ b/sw/uiconfig/swriter/ui/navigatorpanel.ui
@@ -714,6 +714,19 @@
                             <child>
                               <object class="GtkToolButton" 
id=".uno:FrameDialog">
                                 <property name="visible">True</property>
+                                <property name="can-focus">False</property>
+                                <property name="halign">start</property>
+                                <property name="valign">start</property>
+                              </object>
+                              <packing>
+                                <property name="expand">False</property>
+                                <property name="homogeneous">False</property>
+                              </packing>
+                            </child>
+                            <child>
+                              <object class="GtkToolButton" 
id=".uno:ObjectTitleDescription-Frames">
+                                <property name="visible">True</property>
+                                <property name="can-focus">False</property>
                                 <property name="halign">start</property>
                                 <property name="valign">start</property>
                               </object>
@@ -755,6 +768,19 @@
                             <child>
                               <object class="GtkToolButton" 
id=".uno:GraphicDialog">
                                 <property name="visible">True</property>
+                                <property name="can-focus">False</property>
+                                <property name="halign">start</property>
+                                <property name="valign">start</property>
+                              </object>
+                              <packing>
+                                <property name="expand">False</property>
+                                <property name="homogeneous">False</property>
+                              </packing>
+                            </child>
+                            <child>
+                              <object class="GtkToolButton" 
id=".uno:ObjectTitleDescription-Images">
+                                <property name="visible">True</property>
+                                <property name="can-focus">False</property>
                                 <property name="halign">start</property>
                                 <property name="valign">start</property>
                               </object>
@@ -796,6 +822,19 @@
                             <child>
                               <object class="GtkToolButton" 
id=".uno:FrameDialog-more">
                                 <property name="visible">True</property>
+                                <property name="can-focus">False</property>
+                                <property name="halign">start</property>
+                                <property name="valign">start</property>
+                              </object>
+                              <packing>
+                                <property name="expand">False</property>
+                                <property name="homogeneous">False</property>
+                              </packing>
+                            </child>
+                            <child>
+                              <object class="GtkToolButton" 
id=".uno:ObjectTitleDescription-OLEobjects">
+                                <property name="visible">True</property>
+                                <property name="can-focus">False</property>
                                 <property name="halign">start</property>
                                 <property name="valign">start</property>
                               </object>
@@ -1105,6 +1144,19 @@
                             <child>
                               <object class="GtkToolButton" 
id=".uno:InsertCaptionDialog">
                                 <property name="visible">True</property>
+                                <property name="can-focus">False</property>
+                                <property name="halign">start</property>
+                                <property name="valign">start</property>
+                              </object>
+                              <packing>
+                                <property name="expand">False</property>
+                                <property name="homogeneous">False</property>
+                              </packing>
+                            </child>
+                            <child>
+                              <object class="GtkToolButton" 
id=".uno:ObjectTitleDescription-Drawingobjects">
+                                <property name="visible">True</property>
+                                <property name="can-focus">False</property>
                                 <property name="halign">start</property>
                                 <property name="valign">start</property>
                               </object>

Reply via email to