tdf#32418: Add Tools -> Special Character... to Math
Change-Id: I0f4e12f82a3b8e7be2459f4ccfa91f7d30d67f78 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157095 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@libreoffice.org>
This commit is contained in:
@@ -282,6 +282,11 @@ interface FormulaView
|
||||
ExecMethod = Execute ;
|
||||
StateMethod = GetState ;
|
||||
]
|
||||
SID_CHARMAP //idlpp ole : no , status : no
|
||||
[
|
||||
ExecMethod = Execute ;
|
||||
StateMethod = GetState ;
|
||||
]
|
||||
SID_ATTR_PARA_LEFT_TO_RIGHT
|
||||
[
|
||||
ExecMethod = Execute ;
|
||||
|
||||
@@ -2107,6 +2107,31 @@ void SmViewShell::Execute(SfxRequest& rReq)
|
||||
}
|
||||
break;
|
||||
|
||||
case SID_CHARMAP:
|
||||
{
|
||||
const SfxItemSet* pArgs = rReq.GetArgs();
|
||||
const SfxStringItem* pItem = nullptr;
|
||||
if (pArgs && SfxItemState::SET == pArgs->GetItemState(SID_CHARMAP, true, &pItem))
|
||||
{
|
||||
if (IsInlineEditEnabled())
|
||||
GetDoc()->GetCursor().InsertText(pItem->GetValue());
|
||||
else if (pWin)
|
||||
pWin->InsertText(pItem->GetValue());
|
||||
break;
|
||||
}
|
||||
|
||||
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
|
||||
SfxAllItemSet aSet(GetViewFrame().GetObjectShell()->GetPool());
|
||||
aSet.Put(SfxBoolItem(FN_PARAM_1, false));
|
||||
aSet.Put(SfxStringItem(SID_FONT_NAME,
|
||||
GetDoc()->GetFormat().GetFont(FNT_VARIABLE).GetFamilyName()));
|
||||
ScopedVclPtr<SfxAbstractDialog> pDialog(
|
||||
pFact->CreateCharMapDialog(pWin ? pWin->GetFrameWeld() : nullptr, aSet,
|
||||
GetViewFrame().GetFrame().GetFrameInterface()));
|
||||
pDialog->Execute();
|
||||
}
|
||||
break;
|
||||
|
||||
case SID_ATTR_PARA_LEFT_TO_RIGHT:
|
||||
case SID_ATTR_PARA_RIGHT_TO_LEFT:
|
||||
{
|
||||
|
||||
@@ -122,6 +122,7 @@
|
||||
<menu:menu menu:id=".uno:ToolsMenu">
|
||||
<menu:menupopup>
|
||||
<menu:menuitem menu:id=".uno:SymbolCatalogue"/>
|
||||
<menu:menuitem menu:id=".uno:InsertSymbol"/>
|
||||
<menu:menuitem menu:id=".uno:ImportFormula"/>
|
||||
<menu:menuitem menu:id=".uno:ImportMathMLClipboard"/>
|
||||
<menu:menuseparator/>
|
||||
|
||||
Reference in New Issue
Block a user