summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/svx/fmresids.hrc4
-rw-r--r--include/svx/fntctl.hxx53
-rw-r--r--include/svx/fntszctl.hxx52
-rw-r--r--include/svx/svxcommands.h2
-rw-r--r--officecfg/registry/data/org/openoffice/Office/UI/CalcWindowState.xcu5
-rw-r--r--officecfg/registry/data/org/openoffice/Office/UI/DrawWindowState.xcu5
-rw-r--r--officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu5
-rw-r--r--officecfg/registry/data/org/openoffice/Office/UI/ImpressWindowState.xcu5
-rw-r--r--officecfg/registry/data/org/openoffice/Office/UI/WriterFormWindowState.xcu5
-rw-r--r--officecfg/registry/data/org/openoffice/Office/UI/WriterGlobalWindowState.xcu5
-rw-r--r--officecfg/registry/data/org/openoffice/Office/UI/WriterReportWindowState.xcu5
-rw-r--r--officecfg/registry/data/org/openoffice/Office/UI/WriterWebWindowState.xcu5
-rw-r--r--officecfg/registry/data/org/openoffice/Office/UI/WriterWindowState.xcu5
-rw-r--r--officecfg/registry/data/org/openoffice/Office/UI/XFormsWindowState.xcu5
-rw-r--r--sc/UIConfig_scalc.mk1
-rw-r--r--sc/source/ui/app/scdll.cxx6
-rw-r--r--sc/source/ui/docshell/docsh4.cxx5
-rw-r--r--sc/uiconfig/scalc/popupmenu/formrichtext.xml46
-rw-r--r--sd/UIConfig_sdraw.mk4
-rw-r--r--sd/UIConfig_simpress.mk4
-rw-r--r--sd/sdi/_docsh.sdi4
-rw-r--r--sd/source/ui/app/sddll.cxx7
-rw-r--r--sd/source/ui/docshell/docshell.cxx4
-rw-r--r--sd/uiconfig/sdraw/popupmenu/formrichtext.xml46
-rw-r--r--sd/uiconfig/simpress/popupmenu/formrichtext.xml46
-rw-r--r--svx/AllLangResTarget_svx.mk1
-rw-r--r--svx/Library_svx.mk2
-rw-r--r--svx/inc/fmhelp.hrc3
-rw-r--r--svx/inc/globlmn_tmpl.hrc25
-rw-r--r--svx/source/form/fmtextcontrolshell.cxx2
-rw-r--r--svx/source/form/formshell.src153
-rw-r--r--svx/source/mnuctrls/fntctl.cxx149
-rw-r--r--svx/source/mnuctrls/fntszctl.cxx184
-rw-r--r--sw/UIConfig_sglobal.mk1
-rw-r--r--sw/UIConfig_sweb.mk1
-rw-r--r--sw/UIConfig_swform.mk1
-rw-r--r--sw/UIConfig_swreport.mk1
-rw-r--r--sw/UIConfig_swriter.mk1
-rw-r--r--sw/UIConfig_swxform.mk1
-rw-r--r--sw/source/uibase/app/swmodule.cxx5
-rw-r--r--sw/uiconfig/sglobal/popupmenu/formrichtext.xml46
-rw-r--r--sw/uiconfig/sweb/popupmenu/formrichtext.xml43
-rw-r--r--sw/uiconfig/swform/popupmenu/formrichtext.xml46
-rw-r--r--sw/uiconfig/swreport/popupmenu/formrichtext.xml46
-rw-r--r--sw/uiconfig/swriter/popupmenu/formrichtext.xml46
-rw-r--r--sw/uiconfig/swxform/popupmenu/formrichtext.xml46
46 files changed, 491 insertions, 646 deletions
diff --git a/include/svx/fmresids.hrc b/include/svx/fmresids.hrc
index c2174afa3d2f..a6d878878897 100644
--- a/include/svx/fmresids.hrc
+++ b/include/svx/fmresids.hrc
@@ -75,10 +75,6 @@
#define RID_SVXMNU_CELL (RID_FORMS_START + 3)
#define RID_FMSHELL_CONVERSIONMENU (RID_FORMS_START + 4)
#define RID_FM_FILTER_MENU (RID_FORMS_START + 5)
-#define RID_FM_TEXTATTRIBUTE_MENU (RID_FORMS_START + 6)
-#define MENU_FM_TEXTATTRIBITES_STYLE (RID_FORMS_START + 7)
-#define MENU_FM_TEXTATTRIBITES_ALIGNMENT (RID_FORMS_START + 8)
-#define MENU_FM_TEXTATTRIBITES_SPACING (RID_FORMS_START + 9)
#define RID_MENU_DATANAVIGATOR (RID_FORMS_START + 10)
// String-Id's -----------------------------------------------------------
diff --git a/include/svx/fntctl.hxx b/include/svx/fntctl.hxx
deleted file mode 100644
index e570508464a8..000000000000
--- a/include/svx/fntctl.hxx
+++ /dev/null
@@ -1,53 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef INCLUDED_SVX_FNTCTL_HXX
-#define INCLUDED_SVX_FNTCTL_HXX
-
-#include <sfx2/mnuitem.hxx>
-#include <svl/lstner.hxx>
-#include <svx/svxdllapi.h>
-
-
-class FontNameMenu;
-class SfxBindings;
-
-// class SvxFontMenuControl ----------------------------------------------
-
-class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxFontMenuControl : public SfxMenuControl, public SfxListener
-{
-private:
- FontNameMenu* pMenu;
- Menu& rParent;
-
- SVX_DLLPRIVATE void FillMenu();
- DECL_LINK_TYPED( MenuSelect, FontNameMenu *, void);
- SVX_DLLPRIVATE virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState ) override;
- SVX_DLLPRIVATE virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
-
-public:
- SvxFontMenuControl( sal_uInt16 nId, Menu&, SfxBindings& );
- virtual ~SvxFontMenuControl();
-
- SFX_DECL_MENU_CONTROL();
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/svx/fntszctl.hxx b/include/svx/fntszctl.hxx
deleted file mode 100644
index 2919f8e3469c..000000000000
--- a/include/svx/fntszctl.hxx
+++ /dev/null
@@ -1,52 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef INCLUDED_SVX_FNTSZCTL_HXX
-#define INCLUDED_SVX_FNTSZCTL_HXX
-
-#include <sfx2/mnuitem.hxx>
-#include <svx/svxdllapi.h>
-
-
-class SfxBindings;
-class FontSizeMenu;
-
-// class SvxFontSizeMenuControl ------------------------------------------
-
-class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxFontSizeMenuControl : public SfxMenuControl
-{
-private:
- FontSizeMenu* pMenu;
- Menu& rParent;
-
- DECL_LINK_TYPED( MenuSelect, FontSizeMenu *, void );
-
-protected:
- virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState ) override;
-
-public:
- SvxFontSizeMenuControl( sal_uInt16 nId, Menu&, SfxBindings& );
- virtual ~SvxFontSizeMenuControl();
-
- SFX_DECL_MENU_CONTROL();
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/svx/svxcommands.h b/include/svx/svxcommands.h
index 4d2cb3b6f4e3..7ecdaa0dae8c 100644
--- a/include/svx/svxcommands.h
+++ b/include/svx/svxcommands.h
@@ -109,8 +109,6 @@
#define CMD_SID_ATTR_PARA_LINESPACE_15 ".uno:SpacePara15"
#define CMD_SID_ATTR_PARA_LINESPACE_20 ".uno:SpacePara2"
#define CMD_SID_ATTR_CHAR_STRIKEOUT ".uno:Strikeout"
-#define CMD_SID_SET_SUB_SCRIPT ".uno:SubScript"
-#define CMD_SID_SET_SUPER_SCRIPT ".uno:SuperScript"
#define CMD_SID_FM_TAB_DIALOG ".uno:TabDialog"
#define CMD_SID_FM_TIMEFIELD ".uno:TimeField"
#define CMD_SID_BEZIER_EDIT ".uno:ToggleObjectBezierMode"
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/CalcWindowState.xcu b/officecfg/registry/data/org/openoffice/Office/UI/CalcWindowState.xcu
index 2ec5c220341c..6b798c5bb08d 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/CalcWindowState.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/CalcWindowState.xcu
@@ -60,6 +60,11 @@
<value xml:lang="en-US">Form Control</value>
</prop>
</node>
+ <node oor:name="private:resource/popupmenu/formrichtext" oor:op="replace">
+ <prop oor:name="UIName" oor:type="xs:string">
+ <value xml:lang="en-US">Text Box Formatting</value>
+ </prop>
+ </node>
<node oor:name="private:resource/popupmenu/graphic" oor:op="replace">
<prop oor:name="UIName" oor:type="xs:string">
<value xml:lang="en-US">Image</value>
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/DrawWindowState.xcu b/officecfg/registry/data/org/openoffice/Office/UI/DrawWindowState.xcu
index d6ca109af483..fde167d6b1f1 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/DrawWindowState.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/DrawWindowState.xcu
@@ -20,6 +20,11 @@
<oor:component-data xmlns:install="http://openoffice.org/2004/installation" xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" oor:name="DrawWindowState" oor:package="org.openoffice.Office.UI">
<node oor:name="UIElements">
<node oor:name="States">
+ <node oor:name="private:resource/popupmenu/formrichtext" oor:op="replace">
+ <prop oor:name="UIName" oor:type="xs:string">
+ <value xml:lang="en-US">Text Box Formatting</value>
+ </prop>
+ </node>
<node oor:name="private:resource/toolbar/extrusionobjectbar" oor:op="replace">
<prop oor:name="DockPos" oor:type="xs:string">
<value>1,0</value>
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu b/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu
index 24dc9ba7adb5..940a77bf87b0 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu
@@ -5682,6 +5682,11 @@
</node>
</node>
<node oor:name="Popups">
+ <node oor:name=".uno:StyleMenu" oor:op="replace">
+ <prop oor:name="Label" oor:type="xs:string">
+ <value xml:lang="en-US">St~yle</value>
+ </prop>
+ </node>
<node oor:name=".uno:HelpMenu" oor:op="replace">
<prop oor:name="Label" oor:type="xs:string">
<value xml:lang="en-US">~Help</value>
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/ImpressWindowState.xcu b/officecfg/registry/data/org/openoffice/Office/UI/ImpressWindowState.xcu
index c23ad342ea11..f67882dfdf2d 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/ImpressWindowState.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/ImpressWindowState.xcu
@@ -20,6 +20,11 @@
<oor:component-data xmlns:install="http://openoffice.org/2004/installation" xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" oor:name="ImpressWindowState" oor:package="org.openoffice.Office.UI">
<node oor:name="UIElements">
<node oor:name="States">
+ <node oor:name="private:resource/popupmenu/formrichtext" oor:op="replace">
+ <prop oor:name="UIName" oor:type="xs:string">
+ <value xml:lang="en-US">Text Box Formatting</value>
+ </prop>
+ </node>
<node oor:name="private:resource/toolbar/extrusionobjectbar" oor:op="replace">
<prop oor:name="DockPos" oor:type="xs:string">
<value>1,1</value>
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/WriterFormWindowState.xcu b/officecfg/registry/data/org/openoffice/Office/UI/WriterFormWindowState.xcu
index e65812ddea20..e273ec0cdbdf 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/WriterFormWindowState.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/WriterFormWindowState.xcu
@@ -40,6 +40,11 @@
<value xml:lang="en-US">Form Control</value>
</prop>
</node>
+ <node oor:name="private:resource/popupmenu/formrichtext" oor:op="replace">
+ <prop oor:name="UIName" oor:type="xs:string">
+ <value xml:lang="en-US">Text Box Formatting</value>
+ </prop>
+ </node>
<node oor:name="private:resource/popupmenu/frame" oor:op="replace">
<prop oor:name="UIName" oor:type="xs:string">
<value xml:lang="en-US">Text Frame</value>
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/WriterGlobalWindowState.xcu b/officecfg/registry/data/org/openoffice/Office/UI/WriterGlobalWindowState.xcu
index c3b4c2038476..7d1baa4db59a 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/WriterGlobalWindowState.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/WriterGlobalWindowState.xcu
@@ -40,6 +40,11 @@
<value xml:lang="en-US">Form Control</value>
</prop>
</node>
+ <node oor:name="private:resource/popupmenu/formrichtext" oor:op="replace">
+ <prop oor:name="UIName" oor:type="xs:string">
+ <value xml:lang="en-US">Text Box Formatting</value>
+ </prop>
+ </node>
<node oor:name="private:resource/popupmenu/frame" oor:op="replace">
<prop oor:name="UIName" oor:type="xs:string">
<value xml:lang="en-US">Text Frame</value>
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/WriterReportWindowState.xcu b/officecfg/registry/data/org/openoffice/Office/UI/WriterReportWindowState.xcu
index 78465940dec4..8d7cae8eadf2 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/WriterReportWindowState.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/WriterReportWindowState.xcu
@@ -40,6 +40,11 @@
<value xml:lang="en-US">Form Control</value>
</prop>
</node>
+ <node oor:name="private:resource/popupmenu/formrichtext" oor:op="replace">
+ <prop oor:name="UIName" oor:type="xs:string">
+ <value xml:lang="en-US">Text Box Formatting</value>
+ </prop>
+ </node>
<node oor:name="private:resource/popupmenu/frame" oor:op="replace">
<prop oor:name="UIName" oor:type="xs:string">
<value xml:lang="en-US">Text Frame</value>
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/WriterWebWindowState.xcu b/officecfg/registry/data/org/openoffice/Office/UI/WriterWebWindowState.xcu
index b6eca8013a48..ccbc3ca1c915 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/WriterWebWindowState.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/WriterWebWindowState.xcu
@@ -30,6 +30,11 @@
<value xml:lang="en-US">Form Control</value>
</prop>
</node>
+ <node oor:name="private:resource/popupmenu/formrichtext" oor:op="replace">
+ <prop oor:name="UIName" oor:type="xs:string">
+ <value xml:lang="en-US">Text Box Formatting</value>
+ </prop>
+ </node>
<node oor:name="private:resource/popupmenu/frame" oor:op="replace">
<prop oor:name="UIName" oor:type="xs:string">
<value xml:lang="en-US">Text Frame</value>
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/WriterWindowState.xcu b/officecfg/registry/data/org/openoffice/Office/UI/WriterWindowState.xcu
index 7ae2339cd125..7a01aa33e4d5 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/WriterWindowState.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/WriterWindowState.xcu
@@ -40,6 +40,11 @@
<value xml:lang="en-US">Form Control</value>
</prop>
</node>
+ <node oor:name="private:resource/popupmenu/formrichtext" oor:op="replace">
+ <prop oor:name="UIName" oor:type="xs:string">
+ <value xml:lang="en-US">Text Box Formatting</value>
+ </prop>
+ </node>
<node oor:name="private:resource/popupmenu/frame" oor:op="replace">
<prop oor:name="UIName" oor:type="xs:string">
<value xml:lang="en-US">Text Frame</value>
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/XFormsWindowState.xcu b/officecfg/registry/data/org/openoffice/Office/UI/XFormsWindowState.xcu
index 1c71f757497d..1f8294a8fc8d 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/XFormsWindowState.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/XFormsWindowState.xcu
@@ -40,6 +40,11 @@
<value xml:lang="en-US">Form Control</value>
</prop>
</node>
+ <node oor:name="private:resource/popupmenu/formrichtext" oor:op="replace">
+ <prop oor:name="UIName" oor:type="xs:string">
+ <value xml:lang="en-US">Text Box Formatting</value>
+ </prop>
+ </node>
<node oor:name="private:resource/popupmenu/frame" oor:op="replace">
<prop oor:name="UIName" oor:type="xs:string">
<value xml:lang="en-US">Text Frame</value>
diff --git a/sc/UIConfig_scalc.mk b/sc/UIConfig_scalc.mk
index 4d92e3c0fad7..c83b2f8d3340 100644
--- a/sc/UIConfig_scalc.mk
+++ b/sc/UIConfig_scalc.mk
@@ -29,6 +29,7 @@ $(eval $(call gb_UIConfig_add_popupmenufiles,modules/scalc,\
sc/uiconfig/scalc/popupmenu/draw \
sc/uiconfig/scalc/popupmenu/drawtext \
sc/uiconfig/scalc/popupmenu/form \
+ sc/uiconfig/scalc/popupmenu/formrichtext \
sc/uiconfig/scalc/popupmenu/freezepanes \
sc/uiconfig/scalc/popupmenu/graphic \
sc/uiconfig/scalc/popupmenu/media \
diff --git a/sc/source/ui/app/scdll.cxx b/sc/source/ui/app/scdll.cxx
index 907e768147ad..e83cc1895114 100644
--- a/sc/source/ui/app/scdll.cxx
+++ b/sc/source/ui/app/scdll.cxx
@@ -75,8 +75,6 @@
#include <editeng/flditem.hxx>
#include <svx/modctrl.hxx>
#include <svx/pszctrl.hxx>
-#include <svx/fntctl.hxx>
-#include <svx/fntszctl.hxx>
#include <svx/grafctrl.hxx>
#include <svx/clipboardctl.hxx>
#include <svx/lboxctrl.hxx>
@@ -204,10 +202,6 @@ void ScDLL::Init()
SvxPosSizeStatusBarControl ::RegisterControl(SID_ATTR_SIZE, pMod);
- // SvxMenu Controller
- SvxFontMenuControl ::RegisterControl(SID_ATTR_CHAR_FONT, pMod);
- SvxFontSizeMenuControl ::RegisterControl(SID_ATTR_CHAR_FONTHEIGHT, pMod);
-
// CustomShape extrusion controller
SvxColorToolBoxControl::RegisterControl( SID_EXTRUSION_3D_COLOR, pMod );
diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx
index acf223bcd00e..98f094b74f90 100644
--- a/sc/source/ui/docshell/docsh4.cxx
+++ b/sc/source/ui/docshell/docsh4.cxx
@@ -28,6 +28,7 @@ using namespace ::com::sun::star;
#include <math.h>
#include "scitems.hxx"
+#include <editeng/flstitem.hxx>
#include <sfx2/fcontnr.hxx>
#include <sfx2/objface.hxx>
#include <sfx2/docfile.hxx>
@@ -1849,6 +1850,10 @@ void ScDocShell::GetState( SfxItemSet &rSet )
}
break;
+ case SID_ATTR_CHAR_FONTLIST:
+ rSet.Put( SvxFontListItem( pImpl->pFontList, nWhich ) );
+ break;
+
default:
{
}
diff --git a/sc/uiconfig/scalc/popupmenu/formrichtext.xml b/sc/uiconfig/scalc/popupmenu/formrichtext.xml
new file mode 100644
index 000000000000..f5f8f7a0d209
--- /dev/null
+++ b/sc/uiconfig/scalc/popupmenu/formrichtext.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+-->
+<menu:menupopup xmlns:menu="http://openoffice.org/2001/menu">
+ <menu:menuitem menu:id=".uno:Cut"/>
+ <menu:menuitem menu:id=".uno:Copy"/>
+ <menu:menuitem menu:id=".uno:Paste"/>
+ <menu:menuseparator/>
+ <menu:menuitem menu:id=".uno:CharFontName"/>
+ <menu:menuitem menu:id=".uno:FontHeight"/>
+ <menu:menu menu:id=".uno:StyleMenu">
+ <menu:menupopup>
+ <menu:menuitem menu:id=".uno:Bold"/>
+ <menu:menuitem menu:id=".uno:Italic"/>
+ <menu:menuitem menu:id=".uno:Overline"/>
+ <menu:menuitem menu:id=".uno:Underline"/>
+ <menu:menuitem menu:id=".uno:Strikeout"/>
+ <menu:menuitem menu:id=".uno:Shadowed"/>
+ <menu:menuitem menu:id=".uno:OutlineFont"/>
+ <menu:menuseparator/>
+ <menu:menuitem menu:id=".uno:SuperScript"/>
+ <menu:menuitem menu:id=".uno:SubScript"/>
+ </menu:menupopup>
+ </menu:menu>
+ <menu:menu menu:id=".uno:TextAlign">
+ <menu:menupopup>
+ <menu:menuitem menu:id=".uno:LeftPara" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:CenterPara" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:RightPara" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:JustifyPara" menu:style="radio"/>
+ </menu:menupopup>
+ </menu:menu>
+ <menu:menu menu:id=".uno:FormatSpacingMenu">
+ <menu:menupopup>
+ <menu:menuitem menu:id=".uno:SpacePara1"/>
+ <menu:menuitem menu:id=".uno:SpacePara15"/>
+ <menu:menuitem menu:id=".uno:SpacePara2"/>
+ </menu:menupopup>
+ </menu:menu>
+</menu:menupopup>
diff --git a/sd/UIConfig_sdraw.mk b/sd/UIConfig_sdraw.mk
index cb2c84b84ca7..dc0f1e1a970b 100644
--- a/sd/UIConfig_sdraw.mk
+++ b/sd/UIConfig_sdraw.mk
@@ -13,6 +13,10 @@ $(eval $(call gb_UIConfig_add_menubarfiles,modules/sdraw,\
sd/uiconfig/sdraw/menubar/menubar \
))
+$(eval $(call gb_UIConfig_add_popupmenufiles,modules/sdraw,\
+ sd/uiconfig/sdraw/popupmenu/formrichtext \
+))
+
$(eval $(call gb_UIConfig_add_statusbarfiles,modules/sdraw,\
sd/uiconfig/sdraw/statusbar/statusbar \
))
diff --git a/sd/UIConfig_simpress.mk b/sd/UIConfig_simpress.mk
index a0d70e961cf8..7adf18158047 100644
--- a/sd/UIConfig_simpress.mk
+++ b/sd/UIConfig_simpress.mk
@@ -13,6 +13,10 @@ $(eval $(call gb_UIConfig_add_menubarfiles,modules/simpress,\
sd/uiconfig/simpress/menubar/menubar \
))
+$(eval $(call gb_UIConfig_add_popupmenufiles,modules/simpress,\
+ sd/uiconfig/simpress/popupmenu/formrichtext \
+))
+
$(eval $(call gb_UIConfig_add_statusbarfiles,modules/simpress,\
sd/uiconfig/simpress/statusbar/statusbar \
))
diff --git a/sd/sdi/_docsh.sdi b/sd/sdi/_docsh.sdi
index 5f26309e3223..2902e5148fff 100644
--- a/sd/sdi/_docsh.sdi
+++ b/sd/sdi/_docsh.sdi
@@ -17,6 +17,10 @@
*/
interface DrawDocument
{
+ SID_ATTR_CHAR_FONTLIST
+ [
+ StateMethod = GetState ;
+ ]
SID_PACKNGO // ole : ?, status : ?
[
ExecMethod = Execute ;
diff --git a/sd/source/ui/app/sddll.cxx b/sd/source/ui/app/sddll.cxx
index 8291d1a44406..b2c67210f48d 100644
--- a/sd/source/ui/app/sddll.cxx
+++ b/sd/source/ui/app/sddll.cxx
@@ -66,8 +66,6 @@
#include <svx/clipboardctl.hxx>
#include <svx/f3dchild.hxx>
#include <svx/fillctrl.hxx>
-#include <svx/fntctl.hxx>
-#include <svx/fntszctl.hxx>
#include <svx/fontwork.hxx>
#include <svx/formatpaintbrushctrl.hxx>
#include <svx/ParaLineSpacingPopup.hxx>
@@ -91,6 +89,7 @@
#include <sfx2/docfilt.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/fcontnr.hxx>
+#include <sfx2/mnuitem.hxx>
#include <sfx2/sidebar/SidebarChildWindow.hxx>
#include <vcl/FilterConfigItem.hxx>
#include <comphelper/processfactory.hxx>
@@ -218,10 +217,6 @@ void SdDLL::RegisterControllers()
SvxModifyControl::RegisterControl( SID_DOC_MODIFIED, pMod );
SvxZoomSliderControl::RegisterControl( SID_ATTR_ZOOMSLIDER, pMod );
- // MenuControls for PopupMenu
- SvxFontMenuControl::RegisterControl( SID_ATTR_CHAR_FONT, pMod );
- SvxFontSizeMenuControl::RegisterControl( SID_ATTR_CHAR_FONTHEIGHT, pMod );
-
SfxMenuControl::RegisterControl( SID_SET_SNAPITEM, pMod );
SfxMenuControl::RegisterControl( SID_DELETE_SNAPITEM, pMod );
SfxMenuControl::RegisterControl( SID_BEZIER_CLOSE, pMod );
diff --git a/sd/source/ui/docshell/docshell.cxx b/sd/source/ui/docshell/docshell.cxx
index f47b0a7ef895..0295166d9964 100644
--- a/sd/source/ui/docshell/docshell.cxx
+++ b/sd/source/ui/docshell/docshell.cxx
@@ -215,6 +215,10 @@ void DrawDocShell::GetState(SfxItemSet &rSet)
switch ( nSlotId )
{
+ case SID_ATTR_CHAR_FONTLIST:
+ rSet.Put( SvxFontListItem( mpFontList, nSlotId ) );
+ break;
+
case SID_SEARCH_ITEM:
{
rSet.Put( *SD_MOD()->GetSearchItem() );
diff --git a/sd/uiconfig/sdraw/popupmenu/formrichtext.xml b/sd/uiconfig/sdraw/popupmenu/formrichtext.xml
new file mode 100644
index 000000000000..f5f8f7a0d209
--- /dev/null
+++ b/sd/uiconfig/sdraw/popupmenu/formrichtext.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+-->
+<menu:menupopup xmlns:menu="http://openoffice.org/2001/menu">
+ <menu:menuitem menu:id=".uno:Cut"/>
+ <menu:menuitem menu:id=".uno:Copy"/>
+ <menu:menuitem menu:id=".uno:Paste"/>
+ <menu:menuseparator/>
+ <menu:menuitem menu:id=".uno:CharFontName"/>
+ <menu:menuitem menu:id=".uno:FontHeight"/>
+ <menu:menu menu:id=".uno:StyleMenu">
+ <menu:menupopup>
+ <menu:menuitem menu:id=".uno:Bold"/>
+ <menu:menuitem menu:id=".uno:Italic"/>
+ <menu:menuitem menu:id=".uno:Overline"/>
+ <menu:menuitem menu:id=".uno:Underline"/>
+ <menu:menuitem menu:id=".uno:Strikeout"/>
+ <menu:menuitem menu:id=".uno:Shadowed"/>
+ <menu:menuitem menu:id=".uno:OutlineFont"/>
+ <menu:menuseparator/>
+ <menu:menuitem menu:id=".uno:SuperScript"/>
+ <menu:menuitem menu:id=".uno:SubScript"/>
+ </menu:menupopup>
+ </menu:menu>
+ <menu:menu menu:id=".uno:TextAlign">
+ <menu:menupopup>
+ <menu:menuitem menu:id=".uno:LeftPara" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:CenterPara" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:RightPara" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:JustifyPara" menu:style="radio"/>
+ </menu:menupopup>
+ </menu:menu>
+ <menu:menu menu:id=".uno:FormatSpacingMenu">
+ <menu:menupopup>
+ <menu:menuitem menu:id=".uno:SpacePara1"/>
+ <menu:menuitem menu:id=".uno:SpacePara15"/>
+ <menu:menuitem menu:id=".uno:SpacePara2"/>
+ </menu:menupopup>
+ </menu:menu>
+</menu:menupopup>
diff --git a/sd/uiconfig/simpress/popupmenu/formrichtext.xml b/sd/uiconfig/simpress/popupmenu/formrichtext.xml
new file mode 100644
index 000000000000..f5f8f7a0d209
--- /dev/null
+++ b/sd/uiconfig/simpress/popupmenu/formrichtext.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+-->
+<menu:menupopup xmlns:menu="http://openoffice.org/2001/menu">
+ <menu:menuitem menu:id=".uno:Cut"/>
+ <menu:menuitem menu:id=".uno:Copy"/>
+ <menu:menuitem menu:id=".uno:Paste"/>
+ <menu:menuseparator/>
+ <menu:menuitem menu:id=".uno:CharFontName"/>
+ <menu:menuitem menu:id=".uno:FontHeight"/>
+ <menu:menu menu:id=".uno:StyleMenu">
+ <menu:menupopup>
+ <menu:menuitem menu:id=".uno:Bold"/>
+ <menu:menuitem menu:id=".uno:Italic"/>
+ <menu:menuitem menu:id=".uno:Overline"/>
+ <menu:menuitem menu:id=".uno:Underline"/>
+ <menu:menuitem menu:id=".uno:Strikeout"/>
+ <menu:menuitem menu:id=".uno:Shadowed"/>
+ <menu:menuitem menu:id=".uno:OutlineFont"/>
+ <menu:menuseparator/>
+ <menu:menuitem menu:id=".uno:SuperScript"/>
+ <menu:menuitem menu:id=".uno:SubScript"/>
+ </menu:menupopup>
+ </menu:menu>
+ <menu:menu menu:id=".uno:TextAlign">
+ <menu:menupopup>
+ <menu:menuitem menu:id=".uno:LeftPara" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:CenterPara" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:RightPara" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:JustifyPara" menu:style="radio"/>
+ </menu:menupopup>
+ </menu:menu>
+ <menu:menu menu:id=".uno:FormatSpacingMenu">
+ <menu:menupopup>
+ <menu:menuitem menu:id=".uno:SpacePara1"/>
+ <menu:menuitem menu:id=".uno:SpacePara15"/>
+ <menu:menuitem menu:id=".uno:SpacePara2"/>
+ </menu:menupopup>
+ </menu:menu>
+</menu:menupopup>
diff --git a/svx/AllLangResTarget_svx.mk b/svx/AllLangResTarget_svx.mk
index 70d165a3598d..bb104d6d1d83 100644
--- a/svx/AllLangResTarget_svx.mk
+++ b/svx/AllLangResTarget_svx.mk
@@ -61,7 +61,6 @@ $(eval $(call gb_SrsTarget_add_files,svx/res,\
svx/source/form/filtnav.src \
svx/source/form/fmexpl.src \
svx/source/form/fmstring.src \
- svx/source/form/formshell.src \
svx/source/items/svxerr.src \
svx/source/items/svxitems.src \
svx/source/sidebar/EmptyPanel.src \
diff --git a/svx/Library_svx.mk b/svx/Library_svx.mk
index c26c0366487d..296312d2aa27 100644
--- a/svx/Library_svx.mk
+++ b/svx/Library_svx.mk
@@ -163,8 +163,6 @@ $(eval $(call gb_Library_add_exception_objects,svx,\
svx/source/items/viewlayoutitem \
svx/source/items/zoomslideritem \
svx/source/mnuctrls/clipboardctl \
- svx/source/mnuctrls/fntctl \
- svx/source/mnuctrls/fntszctl \
svx/source/mnuctrls/smarttagmenu \
svx/source/sidebar/ContextChangeEventMultiplexer \
svx/source/sidebar/EmptyPanel \
diff --git a/svx/inc/fmhelp.hrc b/svx/inc/fmhelp.hrc
index 35eb10d01687..bb9db34f2317 100644
--- a/svx/inc/fmhelp.hrc
+++ b/svx/inc/fmhelp.hrc
@@ -58,9 +58,6 @@
#define HID_FM_NEW_FORM "SVX_HID_FM_NEW_FORM"
#define HID_FM_NEW_HIDDEN "SVX_HID_FM_NEW_HIDDEN"
#define HID_FM_RENAME_OBJECT "SVX_HID_FM_RENAME_OBJECT"
-#define HID_MENU_FM_TEXTATTRIBUTES_STYLE "SVX_HID_MENU_FM_TEXTATTRIBUTES_STYLE"
-#define HID_MENU_FM_TEXTATTRIBUTES_ALIGNMENT "SVX_HID_MENU_FM_TEXTATTRIBUTES_ALIGNMENT"
-#define HID_MENU_FM_TEXTATTRIBUTES_SPACING "SVX_HID_MENU_FM_TEXTATTRIBUTES_SPACING"
#endif
diff --git a/svx/inc/globlmn_tmpl.hrc b/svx/inc/globlmn_tmpl.hrc
index 5701b9967d33..300f4e943e08 100644
--- a/svx/inc/globlmn_tmpl.hrc
+++ b/svx/inc/globlmn_tmpl.hrc
@@ -98,31 +98,6 @@
Command = ".uno:Overline" ; \
Text [ en-US ] = "Overline" ;\
-#define ITEM_FORMAT_ATTR_CHAR_STRIKEOUT \
- Identifier = SID_ATTR_CHAR_STRIKEOUT ; \
- Command = ".uno:Strikeout" ; \
- Text [ en-US ] = "Strikethrough" ;\
-
-#define ITEM_FORMAT_ATTR_CHAR_SHADOWED \
- Identifier = SID_ATTR_CHAR_SHADOWED ; \
- Command = ".uno:Shadowed" ; \
- Text [ en-US ] = "Shadow" ;\
-
-#define ITEM_FORMAT_ATTR_CHAR_CONTOUR \
- Identifier = SID_ATTR_CHAR_CONTOUR ; \
- Command = ".uno:OutlineFont" ; \
- Text [ en-US ] = "Outline" ;\
-
-#define ITEM_FORMAT_SET_SUPER_SCRIPT \
- Identifier = SID_SET_SUPER_SCRIPT; \
- Command = CMD_SID_SET_SUPER_SCRIPT; \
- Text [ en-US ] = "Su~perscript"; \
-
-#define ITEM_FORMAT_SET_SUB_SCRIPT \
- Identifier = SID_SET_SUB_SCRIPT; \
- Command = CMD_SID_SET_SUB_SCRIPT; \
- Text [ en-US ] = "Su~bscript"; \
-
#define ITEM_FORMAT_ATTR_PARA_ADJUST_LEFT \
Identifier = SID_ATTR_PARA_ADJUST_LEFT ; \
Command = ".uno:LeftPara" ; \
diff --git a/svx/source/form/fmtextcontrolshell.cxx b/svx/source/form/fmtextcontrolshell.cxx
index 97a8b9984e3f..e5c8aa54459a 100644
--- a/svx/source/form/fmtextcontrolshell.cxx
+++ b/svx/source/form/fmtextcontrolshell.cxx
@@ -1355,7 +1355,7 @@ namespace svx
void FmTextControlShell::contextMenuRequested( const css::awt::MouseEvent& /*_rEvent*/ )
{
- m_rBindings.GetDispatcher()->ExecutePopup( SVX_RES( RID_FM_TEXTATTRIBUTE_MENU ) );
+ m_rBindings.GetDispatcher()->ExecutePopup( "formrichtext" );
}
diff --git a/svx/source/form/formshell.src b/svx/source/form/formshell.src
deleted file mode 100644
index 339cb17aae9d..000000000000
--- a/svx/source/form/formshell.src
+++ /dev/null
@@ -1,153 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include "svx/fmresids.hrc"
-#include <svx/svxids.hrc>
-#include <svx/dialogs.hrc>
-#include <sfx2/sfxsids.hrc>
-#include "globlmn.hrc"
-#include "helpid.hrc"
-#include "fmhelp.hrc"
-
-Menu RID_FM_TEXTATTRIBUTE_MENU
-{
- ItemList =
- {
- MenuItem
- {
- ITEM_FORMAT_ATTR_CHAR_FONT
- };
- MenuItem
- {
- ITEM_FORMAT_ATTR_CHAR_FONTHEIGHT
- };
- MenuItem
- {
- Identifier = MENU_FM_TEXTATTRIBITES_STYLE;
- HelpID = HID_MENU_FM_TEXTATTRIBUTES_STYLE;
- Text [ en-US ] = "St~yle";
- SubMenu = Menu
- {
- ItemList =
- {
- MenuItem
- {
- ITEM_FORMAT_ATTR_CHAR_WEIGHT
- };
- MenuItem
- {
- ITEM_FORMAT_ATTR_CHAR_POSTURE
- };
- MenuItem
- {
- ITEM_FORMAT_ATTR_CHAR_OVERLINE
- };
- MenuItem
- {
- ITEM_FORMAT_ATTR_CHAR_UNDERLINE
- };
- MenuItem
- {
- ITEM_FORMAT_ATTR_CHAR_STRIKEOUT
- };
- MenuItem
- {
- ITEM_FORMAT_ATTR_CHAR_SHADOWED
- };
- MenuItem
- {
- ITEM_FORMAT_ATTR_CHAR_CONTOUR
- };
- MenuItem { Separator = TRUE; };
- MenuItem
- {
- ITEM_FORMAT_SET_SUPER_SCRIPT
- };
- MenuItem
- {
- ITEM_FORMAT_SET_SUB_SCRIPT
- };
- };
- };
- };
- MenuItem
- {
- Identifier = MENU_FM_TEXTATTRIBITES_ALIGNMENT;
- HelpID = HID_MENU_FM_TEXTATTRIBUTES_ALIGNMENT;
- Text [ en-US ] = "~Alignment";
- RadioCheck = TRUE;
- SubMenu = Menu
- {
- ItemList =
- {
- MenuItem
- {
- RadioCheck = TRUE;
- ITEM_FORMAT_ATTR_PARA_ADJUST_LEFT
- };
- MenuItem
- {
- RadioCheck = TRUE;
- ITEM_FORMAT_ATTR_PARA_ADJUST_RIGHT
- };
- MenuItem
- {
- RadioCheck = TRUE;
- ITEM_FORMAT_ATTR_PARA_ADJUST_CENTER
- };
- MenuItem
- {
- ITEM_FORMAT_ATTR_PARA_ADJUST_BLOCK
- RadioCheck = TRUE;
- };
- };
- };
- };
- MenuItem
- {
- Identifier = MENU_FM_TEXTATTRIBITES_SPACING;
- HelpID = HID_MENU_FM_TEXTATTRIBUTES_SPACING;
- Text [ en-US ] = "~Line Spacing";
- _MenuItemFlags = MIB_RADIOCHECK;
- SubMenu = Menu
- {
- ItemList =
- {
- MenuItem
- {
- RadioCheck = TRUE;
- ITEM_FORMAT_PARA_LINESPACE_10
- };
- MenuItem
- {
- RadioCheck = TRUE;
- ITEM_FORMAT_PARA_LINESPACE_15
- };
- MenuItem
- {
- RadioCheck = TRUE;
- ITEM_FORMAT_PARA_LINESPACE_20
- };
- };
- };
- };
- };
-};
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svx/source/mnuctrls/fntctl.cxx b/svx/source/mnuctrls/fntctl.cxx
deleted file mode 100644
index ea92075faff7..000000000000
--- a/svx/source/mnuctrls/fntctl.cxx
+++ /dev/null
@@ -1,149 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-
-#include <string>
-#include <svtools/stdmenu.hxx>
-#include <sfx2/app.hxx>
-#include <sfx2/objsh.hxx>
-#include <sfx2/dispatch.hxx>
-
-#include <svx/fntctl.hxx>
-#include <svx/svxids.hrc>
-#include "editeng/flstitem.hxx"
-#include "editeng/fontitem.hxx"
-
-SFX_IMPL_MENU_CONTROL(SvxFontMenuControl, SvxFontItem);
-
-
-/* [Beschreibung]
-
- Ctor; setzt den Select-Handler am Men"u und tr"agt das Men"u
- in seinen Parent ein.
-*/
-
-SvxFontMenuControl::SvxFontMenuControl
-(
- sal_uInt16 _nId,
- Menu& rMenu,
- SfxBindings& rBindings
-) :
- pMenu ( new FontNameMenu ),
- rParent ( rMenu )
-{
- rMenu.SetPopupMenu( _nId, pMenu );
- pMenu->SetSelectHdl( LINK( this, SvxFontMenuControl, MenuSelect ) );
- StartListening( rBindings );
- FillMenu();
-}
-
-
-/* [Beschreibung]
-
- F"ullt das Men"u mit den aktuellen Fonts aus der Fontlist
- der DocumentShell.
-*/
-
-void SvxFontMenuControl::FillMenu()
-{
- SfxObjectShell *pDoc = SfxObjectShell::Current();
-
- if ( pDoc )
- {
- const SvxFontListItem* pFonts =
- static_cast<const SvxFontListItem*>(pDoc->GetItem( SID_ATTR_CHAR_FONTLIST ));
- const FontList* pList = pFonts ? pFonts->GetFontList(): nullptr;
- DBG_ASSERT( pList, "Kein Fonts gefunden" );
- pMenu->Fill( pList );
- }
-}
-
-
-/* [Beschreibung]
-
- Statusbenachrichtigung;
- f"ullt ggf. das Men"u mit den aktuellen Fonts aus der Fontlist
- der DocumentShell.
- Ist die Funktionalit"at disabled, wird der entsprechende
- Men"ueintrag im Parentmen"u disabled, andernfalls wird er enabled.
- Der aktuelle Font wird mit einer Checkmark versehen.
-*/
-
-void SvxFontMenuControl::StateChanged(
-
- sal_uInt16, SfxItemState eState, const SfxPoolItem* pState )
-
-{
- rParent.EnableItem( GetId(), SfxItemState::DISABLED != eState );
-
- if ( SfxItemState::DEFAULT == eState )
- {
- if ( !pMenu->GetItemCount() )
- FillMenu();
- const SvxFontItem* pFontItem = dynamic_cast<const SvxFontItem*>( pState );
- OUString aFont;
-
- if ( pFontItem )
- aFont = pFontItem->GetFamilyName();
- pMenu->SetCurName( aFont );
- }
-}
-
-
-/* [Beschreibung]
-
- Statusbenachrichtigung "uber Bindings; bei DOCCHANGED
- wird das Men"u mit den aktuellen Fonts aus der Fontlist
- der DocumentShell gef"ullt.
-*/
-
-void SvxFontMenuControl::Notify( SfxBroadcaster&, const SfxHint& rHint )
-{
- const SfxSimpleHint* pSimpleHint = dynamic_cast<const SfxSimpleHint*>( &rHint );
- if ( pSimpleHint &&
- pSimpleHint->GetId() == SFX_HINT_DOCCHANGED )
- FillMenu();
-}
-
-
-/* [Beschreibung]
-
- Select-Handler des Men"us; der Name des selektierten Fonts
- wird in einem SvxFontItem verschickt. Das F"ullen mit den
- weiteren Fontinformationen mu\s durch die Applikation geschehen.
-*/
-
-IMPL_LINK_TYPED( SvxFontMenuControl, MenuSelect, FontNameMenu *, pMen, void )
-{
- SvxFontItem aItem( GetId() );
- aItem.SetFamilyName(pMen->GetCurName());
- GetBindings().GetDispatcher()->Execute( GetId(), SfxCallMode::RECORD, &aItem, 0L );
-}
-
-/* [Beschreibung]
-
- Dtor; gibt das Men"u frei.
-*/
-
-SvxFontMenuControl::~SvxFontMenuControl()
-{
- delete pMenu;
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svx/source/mnuctrls/fntszctl.cxx b/svx/source/mnuctrls/fntszctl.cxx
deleted file mode 100644
index f4bc31e581f0..000000000000
--- a/svx/source/mnuctrls/fntszctl.cxx
+++ /dev/null
@@ -1,184 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-
-#include <string>
-#include <svl/itempool.hxx>
-#include <svtools/stdmenu.hxx>
-#include <svtools/ctrltool.hxx>
-#include <sfx2/app.hxx>
-#include <sfx2/objsh.hxx>
-#include <sfx2/viewfrm.hxx>
-#include <sfx2/dispatch.hxx>
-
-#include <svx/fntszctl.hxx>
-#include <svx/dialogs.hrc>
-#include <editeng/fhgtitem.hxx>
-#include "editeng/fontitem.hxx"
-#include "editeng/flstitem.hxx"
-
-#include "svx/dlgutil.hxx"
-#include <svx/dialmgr.hxx>
-
-#define LOGIC OutputDevice::LogicToLogic
-
-SFX_IMPL_MENU_CONTROL(SvxFontSizeMenuControl, SvxFontHeightItem);
-
-
-/* [Beschreibung]
-
- Select-Handler des Men"us; die aktuelle Fontgr"o\se
- wird in einem SvxFontHeightItem verschickt.
-*/
-
-IMPL_LINK_TYPED( SvxFontSizeMenuControl, MenuSelect, FontSizeMenu*, pMen, void )
-{
- SfxViewFrame* pFrm = SfxViewFrame::Current();
- SfxShell* pSh = pFrm ? pFrm->GetDispatcher()->GetShell( 0 ) : nullptr;
-
- if ( !pSh )
- return;
-
- const SfxItemPool& rPool = pSh->GetPool();
- sal_uInt16 nWhich = rPool.GetWhich( SID_ATTR_CHAR_FONTHEIGHT );
- const SfxMapUnit eUnit = rPool.GetMetric( nWhich );
- long nH = LOGIC( pMen->GetCurHeight(), MAP_POINT, (MapUnit)eUnit ) / 10;
- SvxFontHeightItem aItem( nH, 100, GetId() );
- GetBindings().GetDispatcher()->Execute( GetId(), SfxCallMode::RECORD, &aItem, 0L );
-}
-
-
-/* [Beschreibung]
-
- Statusbenachrichtigung;
- Ist die Funktionalit"at disabled, wird der entsprechende
- Men"ueintrag im Parentmenu disabled, andernfalls wird er enabled.
- die aktuelle Fontgr"o\se wird mit einer Checkmark versehen.
-*/
-
-void SvxFontSizeMenuControl::StateChanged(
-
- sal_uInt16, SfxItemState eState, const SfxPoolItem* pState )
-
-{
- rParent.EnableItem( GetId(), SfxItemState::DISABLED != eState );
-
- if ( SfxItemState::DEFAULT == eState )
- {
- if ( dynamic_cast<const SvxFontHeightItem*>( pState) != nullptr )
- {
- const SvxFontHeightItem* pItem =
- dynamic_cast<const SvxFontHeightItem*>( pState );
- long nVal = 0;
-
- if ( pItem )
- {
- SfxViewFrame* pFrm = SfxViewFrame::Current();
- SfxShell* pSh = pFrm ? pFrm->GetDispatcher()->GetShell( 0 )
- : nullptr;
-
- if ( !pSh )
- return;
-
- const SfxItemPool& rPool = pSh->GetPool();
- sal_uInt16 nWhich = rPool.GetWhich( SID_ATTR_CHAR_FONTHEIGHT );
- const SfxMapUnit eUnit = rPool.GetMetric( nWhich );
- long nH = pItem->GetHeight() * 10;
- nVal = LOGIC( nH, (MapUnit)eUnit, MAP_POINT );
- }
- pMenu->SetCurHeight( nVal );
- }
- else if ( dynamic_cast<const SvxFontItem*>( pState) != nullptr )
- {
- const SvxFontItem* pItem = dynamic_cast<const SvxFontItem*>( pState );
-
- if ( pItem )
- {
- SfxObjectShell *pDoc = SfxObjectShell::Current();
-
- if ( pDoc )
- {
- const SvxFontListItem* pFonts = static_cast<const SvxFontListItem*>(
- pDoc->GetItem( SID_ATTR_CHAR_FONTLIST ));
- const FontList* pList = pFonts ? pFonts->GetFontList(): nullptr;
-
- if ( pList )
- {
- FontMetric aFontMetric = pList->Get( pItem->GetFamilyName(),
- pItem->GetStyleName() );
- pMenu->Fill( aFontMetric, pList );
- }
- // else manche Shells haben keine Fontliste (z.B. Image)
- }
- }
- }
- }
- else
- {
- // irgendwie muss man ja das Men"u f"ullen
- SfxObjectShell* pSh = SfxObjectShell::Current();
-
- if ( pSh )
- {
- // daf"ur von der Shell eine Fontliste besorgen
- const SvxFontListItem* pFonts =
- static_cast<const SvxFontListItem*>(pSh->GetItem( SID_ATTR_CHAR_FONTLIST ));
- const FontList* pList = pFonts ? pFonts->GetFontList(): nullptr;
- if ( pList )
- pMenu->Fill( pList->GetFontName(0), pList );
- }
- }
-}
-
-
-/* [Beschreibung]
-
- Ctor; setzt den Select-Handler am Men"u und tr"agt Men"u
- in seinen Parent ein.
-*/
-
-SvxFontSizeMenuControl::SvxFontSizeMenuControl
-(
- sal_uInt16 _nId,
- Menu& rMenu,
- SfxBindings& rBindings
-) :
- SfxMenuControl( _nId, rBindings ),
-
- pMenu ( new FontSizeMenu ),
- rParent ( rMenu )
-
-{
- rMenu.SetPopupMenu( _nId, pMenu );
- pMenu->SetSelectHdl( LINK( this, SvxFontSizeMenuControl, MenuSelect ) );
-}
-
-
-/* [Beschreibung]
-
- Dtor; gibt das Men"u frei.
-*/
-
-SvxFontSizeMenuControl::~SvxFontSizeMenuControl()
-{
- delete pMenu;
-}
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/UIConfig_sglobal.mk b/sw/UIConfig_sglobal.mk
index a0124baa9a4e..e373e72aa33e 100644
--- a/sw/UIConfig_sglobal.mk
+++ b/sw/UIConfig_sglobal.mk
@@ -18,6 +18,7 @@ $(eval $(call gb_UIConfig_add_popupmenufiles,modules/sglobal,\
sw/uiconfig/sglobal/popupmenu/draw \
sw/uiconfig/sglobal/popupmenu/drawtext \
sw/uiconfig/sglobal/popupmenu/form \
+ sw/uiconfig/sglobal/popupmenu/formrichtext \
sw/uiconfig/sglobal/popupmenu/frame \
sw/uiconfig/sglobal/popupmenu/graphic \
sw/uiconfig/sglobal/popupmenu/insertfield \
diff --git a/sw/UIConfig_sweb.mk b/sw/UIConfig_sweb.mk
index 38b2c190320c..588a043be465 100644
--- a/sw/UIConfig_sweb.mk
+++ b/sw/UIConfig_sweb.mk
@@ -16,6 +16,7 @@ $(eval $(call gb_UIConfig_add_menubarfiles,modules/sweb,\
$(eval $(call gb_UIConfig_add_popupmenufiles,modules/sweb,\
sw/uiconfig/sweb/popupmenu/annotation \
sw/uiconfig/sweb/popupmenu/form \
+ sw/uiconfig/sweb/popupmenu/formrichtext \
sw/uiconfig/sweb/popupmenu/frame \
sw/uiconfig/sweb/popupmenu/graphic \
sw/uiconfig/sweb/popupmenu/insertfield \
diff --git a/sw/UIConfig_swform.mk b/sw/UIConfig_swform.mk
index 9d3fc8b25ec1..b733cb9c930f 100644
--- a/sw/UIConfig_swform.mk
+++ b/sw/UIConfig_swform.mk
@@ -18,6 +18,7 @@ $(eval $(call gb_UIConfig_add_popupmenufiles,modules/swform,\
sw/uiconfig/swform/popupmenu/draw \
sw/uiconfig/swform/popupmenu/drawtext \
sw/uiconfig/swform/popupmenu/form \
+ sw/uiconfig/swform/popupmenu/formrichtext \
sw/uiconfig/swform/popupmenu/frame \
sw/uiconfig/swform/popupmenu/graphic \
sw/uiconfig/swform/popupmenu/insertfield \
diff --git a/sw/UIConfig_swreport.mk b/sw/UIConfig_swreport.mk
index 598f90ed4fee..b1286f89685d 100644
--- a/sw/UIConfig_swreport.mk
+++ b/sw/UIConfig_swreport.mk
@@ -18,6 +18,7 @@ $(eval $(call gb_UIConfig_add_popupmenufiles,modules/swreport,\
sw/uiconfig/swreport/popupmenu/draw \
sw/uiconfig/swreport/popupmenu/drawtext \
sw/uiconfig/swreport/popupmenu/form \
+ sw/uiconfig/swreport/popupmenu/formrichtext \
sw/uiconfig/swreport/popupmenu/frame \
sw/uiconfig/swreport/popupmenu/graphic \
sw/uiconfig/swreport/popupmenu/insertfield \
diff --git a/sw/UIConfig_swriter.mk b/sw/UIConfig_swriter.mk
index a8636f53f9a6..5df03ca4dff9 100644
--- a/sw/UIConfig_swriter.mk
+++ b/sw/UIConfig_swriter.mk
@@ -18,6 +18,7 @@ $(eval $(call gb_UIConfig_add_popupmenufiles,modules/swriter,\
sw/uiconfig/swriter/popupmenu/draw \
sw/uiconfig/swriter/popupmenu/drawtext \
sw/uiconfig/swriter/popupmenu/form \
+ sw/uiconfig/swriter/popupmenu/formrichtext \
sw/uiconfig/swriter/popupmenu/frame \
sw/uiconfig/swriter/popupmenu/graphic \
sw/uiconfig/swriter/popupmenu/insertfield \
diff --git a/sw/UIConfig_swxform.mk b/sw/UIConfig_swxform.mk
index 86673b792fa9..2fa8e2413d5e 100644
--- a/sw/UIConfig_swxform.mk
+++ b/sw/UIConfig_swxform.mk
@@ -18,6 +18,7 @@ $(eval $(call gb_UIConfig_add_popupmenufiles,modules/swxform,\
sw/uiconfig/swxform/popupmenu/draw \
sw/uiconfig/swxform/popupmenu/drawtext \
sw/uiconfig/swxform/popupmenu/form \
+ sw/uiconfig/swxform/popupmenu/formrichtext \
sw/uiconfig/swxform/popupmenu/frame \
sw/uiconfig/swxform/popupmenu/graphic \
sw/uiconfig/swxform/popupmenu/insertfield \
diff --git a/sw/source/uibase/app/swmodule.cxx b/sw/source/uibase/app/swmodule.cxx
index 5930ec5f7f01..e65313a5bcb3 100644
--- a/sw/source/uibase/app/swmodule.cxx
+++ b/sw/source/uibase/app/swmodule.cxx
@@ -26,8 +26,6 @@
#include <svtools/ehdl.hxx>
#include <svx/ParaLineSpacingPopup.hxx>
#include <svx/svdobj.hxx>
-#include <svx/fntszctl.hxx>
-#include <svx/fntctl.hxx>
#include <svx/pszctrl.hxx>
#include <svx/insctrl.hxx>
#include <svx/selctrl.hxx>
@@ -321,9 +319,6 @@ void SwDLL::RegisterControls()
SvxTableToolBoxControl::RegisterControl(FN_INSERT_TABLE, pMod );
SvxTableToolBoxControl::RegisterControl(FN_SHOW_MULTIPLE_PAGES, pMod );
- SvxFontMenuControl::RegisterControl(SID_ATTR_CHAR_FONT, pMod );
- SvxFontSizeMenuControl::RegisterControl(SID_ATTR_CHAR_FONTHEIGHT, pMod );
-
SwZoomControl::RegisterControl(SID_ATTR_ZOOM, pMod );
SwPreviewZoomControl::RegisterControl(FN_PREVIEW_ZOOM, pMod);
SvxPosSizeStatusBarControl::RegisterControl(0, pMod );
diff --git a/sw/uiconfig/sglobal/popupmenu/formrichtext.xml b/sw/uiconfig/sglobal/popupmenu/formrichtext.xml
new file mode 100644
index 000000000000..f5f8f7a0d209
--- /dev/null
+++ b/sw/uiconfig/sglobal/popupmenu/formrichtext.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+-->
+<menu:menupopup xmlns:menu="http://openoffice.org/2001/menu">
+ <menu:menuitem menu:id=".uno:Cut"/>
+ <menu:menuitem menu:id=".uno:Copy"/>
+ <menu:menuitem menu:id=".uno:Paste"/>
+ <menu:menuseparator/>
+ <menu:menuitem menu:id=".uno:CharFontName"/>
+ <menu:menuitem menu:id=".uno:FontHeight"/>
+ <menu:menu menu:id=".uno:StyleMenu">
+ <menu:menupopup>
+ <menu:menuitem menu:id=".uno:Bold"/>
+ <menu:menuitem menu:id=".uno:Italic"/>
+ <menu:menuitem menu:id=".uno:Overline"/>
+ <menu:menuitem menu:id=".uno:Underline"/>
+ <menu:menuitem menu:id=".uno:Strikeout"/>
+ <menu:menuitem menu:id=".uno:Shadowed"/>
+ <menu:menuitem menu:id=".uno:OutlineFont"/>
+ <menu:menuseparator/>
+ <menu:menuitem menu:id=".uno:SuperScript"/>
+ <menu:menuitem menu:id=".uno:SubScript"/>
+ </menu:menupopup>
+ </menu:menu>
+ <menu:menu menu:id=".uno:TextAlign">
+ <menu:menupopup>
+ <menu:menuitem menu:id=".uno:LeftPara" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:CenterPara" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:RightPara" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:JustifyPara" menu:style="radio"/>
+ </menu:menupopup>
+ </menu:menu>
+ <menu:menu menu:id=".uno:FormatSpacingMenu">
+ <menu:menupopup>
+ <menu:menuitem menu:id=".uno:SpacePara1"/>
+ <menu:menuitem menu:id=".uno:SpacePara15"/>
+ <menu:menuitem menu:id=".uno:SpacePara2"/>
+ </menu:menupopup>
+ </menu:menu>
+</menu:menupopup>
diff --git a/sw/uiconfig/sweb/popupmenu/formrichtext.xml b/sw/uiconfig/sweb/popupmenu/formrichtext.xml
new file mode 100644
index 000000000000..b5dab11c336a
--- /dev/null
+++ b/sw/uiconfig/sweb/popupmenu/formrichtext.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+-->
+<menu:menupopup xmlns:menu="http://openoffice.org/2001/menu">
+ <menu:menuitem menu:id=".uno:Cut"/>
+ <menu:menuitem menu:id=".uno:Copy"/>
+ <menu:menuitem menu:id=".uno:Paste"/>
+ <menu:menuseparator/>
+ <menu:menuitem menu:id=".uno:CharFontName"/>
+ <menu:menuitem menu:id=".uno:FontHeight"/>
+ <menu:menu menu:id=".uno:StyleMenu">
+ <menu:menupopup>
+ <menu:menuitem menu:id=".uno:Bold"/>
+ <menu:menuitem menu:id=".uno:Italic"/>
+ <menu:menuitem menu:id=".uno:Overline"/>
+ <menu:menuitem menu:id=".uno:Underline"/>
+ <menu:menuitem menu:id=".uno:Strikeout"/>
+ <menu:menuitem menu:id=".uno:Shadowed"/>
+ <menu:menuitem menu:id=".uno:OutlineFont"/>
+ </menu:menupopup>
+ </menu:menu>
+ <menu:menu menu:id=".uno:TextAlign">
+ <menu:menupopup>
+ <menu:menuitem menu:id=".uno:LeftPara" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:CenterPara" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:RightPara" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:JustifyPara" menu:style="radio"/>
+ </menu:menupopup>
+ </menu:menu>
+ <menu:menu menu:id=".uno:FormatSpacingMenu">
+ <menu:menupopup>
+ <menu:menuitem menu:id=".uno:SpacePara1"/>
+ <menu:menuitem menu:id=".uno:SpacePara15"/>
+ <menu:menuitem menu:id=".uno:SpacePara2"/>
+ </menu:menupopup>
+ </menu:menu>
+</menu:menupopup>
diff --git a/sw/uiconfig/swform/popupmenu/formrichtext.xml b/sw/uiconfig/swform/popupmenu/formrichtext.xml
new file mode 100644
index 000000000000..f5f8f7a0d209
--- /dev/null
+++ b/sw/uiconfig/swform/popupmenu/formrichtext.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+-->
+<menu:menupopup xmlns:menu="http://openoffice.org/2001/menu">
+ <menu:menuitem menu:id=".uno:Cut"/>
+ <menu:menuitem menu:id=".uno:Copy"/>
+ <menu:menuitem menu:id=".uno:Paste"/>
+ <menu:menuseparator/>
+ <menu:menuitem menu:id=".uno:CharFontName"/>
+ <menu:menuitem menu:id=".uno:FontHeight"/>
+ <menu:menu menu:id=".uno:StyleMenu">
+ <menu:menupopup>
+ <menu:menuitem menu:id=".uno:Bold"/>
+ <menu:menuitem menu:id=".uno:Italic"/>
+ <menu:menuitem menu:id=".uno:Overline"/>
+ <menu:menuitem menu:id=".uno:Underline"/>
+ <menu:menuitem menu:id=".uno:Strikeout"/>
+ <menu:menuitem menu:id=".uno:Shadowed"/>
+ <menu:menuitem menu:id=".uno:OutlineFont"/>
+ <menu:menuseparator/>
+ <menu:menuitem menu:id=".uno:SuperScript"/>
+ <menu:menuitem menu:id=".uno:SubScript"/>
+ </menu:menupopup>
+ </menu:menu>
+ <menu:menu menu:id=".uno:TextAlign">
+ <menu:menupopup>
+ <menu:menuitem menu:id=".uno:LeftPara" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:CenterPara" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:RightPara" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:JustifyPara" menu:style="radio"/>
+ </menu:menupopup>
+ </menu:menu>
+ <menu:menu menu:id=".uno:FormatSpacingMenu">
+ <menu:menupopup>
+ <menu:menuitem menu:id=".uno:SpacePara1"/>
+ <menu:menuitem menu:id=".uno:SpacePara15"/>
+ <menu:menuitem menu:id=".uno:SpacePara2"/>
+ </menu:menupopup>
+ </menu:menu>
+</menu:menupopup>
diff --git a/sw/uiconfig/swreport/popupmenu/formrichtext.xml b/sw/uiconfig/swreport/popupmenu/formrichtext.xml
new file mode 100644
index 000000000000..f5f8f7a0d209
--- /dev/null
+++ b/sw/uiconfig/swreport/popupmenu/formrichtext.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+-->
+<menu:menupopup xmlns:menu="http://openoffice.org/2001/menu">
+ <menu:menuitem menu:id=".uno:Cut"/>
+ <menu:menuitem menu:id=".uno:Copy"/>
+ <menu:menuitem menu:id=".uno:Paste"/>
+ <menu:menuseparator/>
+ <menu:menuitem menu:id=".uno:CharFontName"/>
+ <menu:menuitem menu:id=".uno:FontHeight"/>
+ <menu:menu menu:id=".uno:StyleMenu">
+ <menu:menupopup>
+ <menu:menuitem menu:id=".uno:Bold"/>
+ <menu:menuitem menu:id=".uno:Italic"/>
+ <menu:menuitem menu:id=".uno:Overline"/>
+ <menu:menuitem menu:id=".uno:Underline"/>
+ <menu:menuitem menu:id=".uno:Strikeout"/>
+ <menu:menuitem menu:id=".uno:Shadowed"/>
+ <menu:menuitem menu:id=".uno:OutlineFont"/>
+ <menu:menuseparator/>
+ <menu:menuitem menu:id=".uno:SuperScript"/>
+ <menu:menuitem menu:id=".uno:SubScript"/>
+ </menu:menupopup>
+ </menu:menu>
+ <menu:menu menu:id=".uno:TextAlign">
+ <menu:menupopup>
+ <menu:menuitem menu:id=".uno:LeftPara" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:CenterPara" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:RightPara" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:JustifyPara" menu:style="radio"/>
+ </menu:menupopup>
+ </menu:menu>
+ <menu:menu menu:id=".uno:FormatSpacingMenu">
+ <menu:menupopup>
+ <menu:menuitem menu:id=".uno:SpacePara1"/>
+ <menu:menuitem menu:id=".uno:SpacePara15"/>
+ <menu:menuitem menu:id=".uno:SpacePara2"/>
+ </menu:menupopup>
+ </menu:menu>
+</menu:menupopup>
diff --git a/sw/uiconfig/swriter/popupmenu/formrichtext.xml b/sw/uiconfig/swriter/popupmenu/formrichtext.xml
new file mode 100644
index 000000000000..f5f8f7a0d209
--- /dev/null
+++ b/sw/uiconfig/swriter/popupmenu/formrichtext.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+-->
+<menu:menupopup xmlns:menu="http://openoffice.org/2001/menu">
+ <menu:menuitem menu:id=".uno:Cut"/>
+ <menu:menuitem menu:id=".uno:Copy"/>
+ <menu:menuitem menu:id=".uno:Paste"/>
+ <menu:menuseparator/>
+ <menu:menuitem menu:id=".uno:CharFontName"/>
+ <menu:menuitem menu:id=".uno:FontHeight"/>
+ <menu:menu menu:id=".uno:StyleMenu">
+ <menu:menupopup>
+ <menu:menuitem menu:id=".uno:Bold"/>
+ <menu:menuitem menu:id=".uno:Italic"/>
+ <menu:menuitem menu:id=".uno:Overline"/>
+ <menu:menuitem menu:id=".uno:Underline"/>
+ <menu:menuitem menu:id=".uno:Strikeout"/>
+ <menu:menuitem menu:id=".uno:Shadowed"/>
+ <menu:menuitem menu:id=".uno:OutlineFont"/>
+ <menu:menuseparator/>
+ <menu:menuitem menu:id=".uno:SuperScript"/>
+ <menu:menuitem menu:id=".uno:SubScript"/>
+ </menu:menupopup>
+ </menu:menu>
+ <menu:menu menu:id=".uno:TextAlign">
+ <menu:menupopup>
+ <menu:menuitem menu:id=".uno:LeftPara" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:CenterPara" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:RightPara" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:JustifyPara" menu:style="radio"/>
+ </menu:menupopup>
+ </menu:menu>
+ <menu:menu menu:id=".uno:FormatSpacingMenu">
+ <menu:menupopup>
+ <menu:menuitem menu:id=".uno:SpacePara1"/>
+ <menu:menuitem menu:id=".uno:SpacePara15"/>
+ <menu:menuitem menu:id=".uno:SpacePara2"/>
+ </menu:menupopup>
+ </menu:menu>
+</menu:menupopup>
diff --git a/sw/uiconfig/swxform/popupmenu/formrichtext.xml b/sw/uiconfig/swxform/popupmenu/formrichtext.xml
new file mode 100644
index 000000000000..f5f8f7a0d209
--- /dev/null
+++ b/sw/uiconfig/swxform/popupmenu/formrichtext.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+-->
+<menu:menupopup xmlns:menu="http://openoffice.org/2001/menu">
+ <menu:menuitem menu:id=".uno:Cut"/>
+ <menu:menuitem menu:id=".uno:Copy"/>
+ <menu:menuitem menu:id=".uno:Paste"/>
+ <menu:menuseparator/>
+ <menu:menuitem menu:id=".uno:CharFontName"/>
+ <menu:menuitem menu:id=".uno:FontHeight"/>
+ <menu:menu menu:id=".uno:StyleMenu">
+ <menu:menupopup>
+ <menu:menuitem menu:id=".uno:Bold"/>
+ <menu:menuitem menu:id=".uno:Italic"/>
+ <menu:menuitem menu:id=".uno:Overline"/>
+ <menu:menuitem menu:id=".uno:Underline"/>
+ <menu:menuitem menu:id=".uno:Strikeout"/>
+ <menu:menuitem menu:id=".uno:Shadowed"/>
+ <menu:menuitem menu:id=".uno:OutlineFont"/>
+ <menu:menuseparator/>
+ <menu:menuitem menu:id=".uno:SuperScript"/>
+ <menu:menuitem menu:id=".uno:SubScript"/>
+ </menu:menupopup>
+ </menu:menu>
+ <menu:menu menu:id=".uno:TextAlign">
+ <menu:menupopup>
+ <menu:menuitem menu:id=".uno:LeftPara" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:CenterPara" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:RightPara" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:JustifyPara" menu:style="radio"/>
+ </menu:menupopup>
+ </menu:menu>
+ <menu:menu menu:id=".uno:FormatSpacingMenu">
+ <menu:menupopup>
+ <menu:menuitem menu:id=".uno:SpacePara1"/>
+ <menu:menuitem menu:id=".uno:SpacePara15"/>
+ <menu:menuitem menu:id=".uno:SpacePara2"/>
+ </menu:menupopup>
+ </menu:menu>
+</menu:menupopup>