837e2808f7
Patches contributed by Armin Le-Grand #118898# Adapted ImpGraphic::ImplGetBitmap to correctly convert metafiles... http://svn.apache.org/viewvc?view=revision&revision=1293316 #118485# - Styles for OLEs are not saved. http://svn.apache.org/viewvc?view=revision&revision=1182166 Patches contributed by Andre Fischer http://svn.apache.org/viewvc?view=revision&revision=1172128 http://svn.apache.org/viewvc?view=revision&revision=1172133 Patch contributed by Ariel Constenla-Haile i#118505# - Remove MN_OLE_OBJECT menu item from Draw/Impress contextmenu - CWS contextmenu1 http://svn.apache.org/viewvc?view=revision&revision=1182915 Patch contributed by Zhang Jian Fang #118876#, Add check if the OutlinerParaObject is created successfully http://svn.apache.org/viewvc?view=revision&revision=1243381 restore a re-based rdbedit.
541 lines
13 KiB
Text
541 lines
13 KiB
Text
/*
|
|
* 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 .
|
|
*/
|
|
|
|
// TEXTOBJ
|
|
// Impress:
|
|
#include "popup2.src"
|
|
// Draw (Graphic):
|
|
#undef SD_POPUP
|
|
#define SD_POPUP RID_GRAPHIC_TEXTOBJ_POPUP
|
|
#include "popup2.src"
|
|
#include <svx/globlmn.hrc>
|
|
#include "helpids.h"
|
|
|
|
#define DEFINE_SLOTID_FOR_NUMBER_BULLETS SID_OUTLINE_BULLET
|
|
|
|
Menu RID_DRAW_TEXTOBJ_INSIDE_POPUP
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_SET_DEFAULT
|
|
SEPARATOR
|
|
MN_TEXTATTR
|
|
SEPARATOR
|
|
MN_TEXT_ATTR
|
|
MN_TEXT_ALIGN
|
|
MN_LINESPACING_ATTR
|
|
SEPARATOR
|
|
MN_CHAR_PARAGRAPH
|
|
SEPARATOR
|
|
MenuItem
|
|
{
|
|
ITEM_OPEN_HYPERLINK
|
|
};
|
|
SEPARATOR
|
|
MN_BULLET
|
|
ITEM_FORMAT_NUMBERING
|
|
ITEM_TRANSLITERATE_MENU
|
|
SEPARATOR
|
|
MN_STYLEDT
|
|
};
|
|
};
|
|
|
|
Menu RID_DRAW_TABLEOBJ_INSIDE_POPUP
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_SET_DEFAULT
|
|
SEPARATOR
|
|
MN_TEXTATTR
|
|
SEPARATOR
|
|
MN_TEXT_ATTR
|
|
MN_TEXT_ALIGN
|
|
MN_LINESPACING_ATTR
|
|
SEPARATOR
|
|
MN_CHAR_PARAGRAPH
|
|
SEPARATOR
|
|
MenuItem
|
|
{
|
|
Identifier = SID_FORMAT_TABLE_DLG;
|
|
HelpId = CMD_SID_FORMAT_TABLE_DLG;
|
|
Text [ en-US ] = "~Table...";
|
|
};
|
|
MenuItem
|
|
{
|
|
Identifier = DUMMY + 10 ;
|
|
Command = ".uno:CellMenu" ;
|
|
Text [ en-US ] = "~Cell" ;
|
|
SubMenu = Menu
|
|
{
|
|
ItemList =
|
|
{
|
|
MenuItem
|
|
{
|
|
Identifier = SID_TABLE_MERGE_CELLS;
|
|
HelpId = CMD_SID_TABLE_MERGE_CELLS;
|
|
Text [ en-US ] = "~Merge";
|
|
};
|
|
MenuItem
|
|
{
|
|
Identifier = SID_TABLE_SPLIT_CELLS;
|
|
HelpId = CMD_SID_TABLE_SPLIT_CELLS;
|
|
Text [ en-US ] = "~Split...";
|
|
};
|
|
SEPARATOR
|
|
MenuItem
|
|
{
|
|
Identifier = SID_TABLE_VERT_NONE;
|
|
HelpId = CMD_SID_TABLE_VERT_NONE;
|
|
Text [ en-US ] = "~Top";
|
|
};
|
|
MenuItem
|
|
{
|
|
Identifier = SID_TABLE_VERT_CENTER;
|
|
HelpId = CMD_SID_TABLE_VERT_CENTER;
|
|
Text [ en-US ] = "C~enter";
|
|
};
|
|
MenuItem
|
|
{
|
|
Identifier = SID_TABLE_VERT_BOTTOM;
|
|
HelpId = CMD_SID_TABLE_VERT_BOTTOM;
|
|
Text [ en-US ] = "~Bottom";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
MenuItem
|
|
{
|
|
Identifier = DUMMY + 11 ;
|
|
Command = ".uno:RowMenu" ;
|
|
Text [ en-US ] = "~Row" ;
|
|
SubMenu = Menu
|
|
{
|
|
ItemList =
|
|
{
|
|
MenuItem
|
|
{
|
|
Identifier = SID_TABLE_DISTRIBUTE_ROWS;
|
|
HelpId = CMD_SID_TABLE_DISTRIBUTE_ROWS;
|
|
Text [ en-US ] = "Space ~Equally";
|
|
};
|
|
SEPARATOR
|
|
MenuItem
|
|
{
|
|
Identifier = SID_TABLE_SELECT_ROW;
|
|
HelpId = CMD_SID_TABLE_SELECT_ROW;
|
|
Text [ en-US ] = "~Select";
|
|
};
|
|
MenuItem
|
|
{
|
|
Identifier = SID_TABLE_INSERT_ROW_DLG;
|
|
HelpId = CMD_SID_TABLE_INSERT_ROW_DLG;
|
|
Text [ en-US ] = "~Insert...";
|
|
};
|
|
MenuItem
|
|
{
|
|
Identifier = SID_TABLE_DELETE_ROW;
|
|
HelpId = CMD_SID_TABLE_DELETE_ROW;
|
|
Text [ en-US ] = "~Delete";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
MenuItem
|
|
{
|
|
Identifier = DUMMY + 12 ;
|
|
Command = ".uno:ColumnMenu" ;
|
|
Text [ en-US ] = "Colu~mn" ;
|
|
SubMenu = Menu
|
|
{
|
|
ItemList =
|
|
{
|
|
MenuItem
|
|
{
|
|
Identifier = SID_TABLE_DISTRIBUTE_COLUMNS;
|
|
HelpId = CMD_SID_TABLE_DISTRIBUTE_COLUMNS;
|
|
Text [ en-US ] = "Space ~Equally";
|
|
};
|
|
SEPARATOR
|
|
MenuItem
|
|
{
|
|
Identifier = SID_TABLE_SELECT_COL;
|
|
HelpId = CMD_SID_TABLE_SELECT_COL;
|
|
Text [ en-US ] = "~Select";
|
|
};
|
|
MenuItem
|
|
{
|
|
Identifier = SID_TABLE_INSERT_COL_DLG;
|
|
HelpId = CMD_SID_TABLE_INSERT_COL_DLG;
|
|
Text [ en-US ] = "~Insert...";
|
|
};
|
|
MenuItem
|
|
{
|
|
Identifier = SID_TABLE_DELETE_COL;
|
|
HelpId = CMD_SID_TABLE_DELETE_COL;
|
|
Text [ en-US ] = "~Delete";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
SEPARATOR
|
|
MenuItem
|
|
{
|
|
ITEM_OPEN_HYPERLINK
|
|
};
|
|
SEPARATOR
|
|
MN_BULLET
|
|
ITEM_FORMAT_NUMBERING
|
|
ITEM_TRANSLITERATE_MENU
|
|
SEPARATOR
|
|
MN_STYLEDT
|
|
};
|
|
};
|
|
|
|
Menu RID_DRAW_CONTROL_POPUP
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_TRANSFORM
|
|
MN_CONTROL_SHOW_BROWSER
|
|
SEPARATOR
|
|
MN_POSITION
|
|
MN_OBJECT_ALIGN
|
|
SEPARATOR
|
|
MN_LEAVE_GROUP
|
|
MN_DISMANTLE
|
|
};
|
|
};
|
|
Menu RID_FORM_CONTROL_POPUP
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_TRANSFORM
|
|
MenuItem { ITEM_FORM_CONTROL_PROPERTIES };
|
|
MenuItem { ITEM_FORM_PROPERTIES };
|
|
MenuItem { ITEM_REPLACE_CONTROL };
|
|
SEPARATOR
|
|
MN_POSITION
|
|
MN_OBJECT_ALIGN
|
|
SEPARATOR
|
|
MN_LEAVE_GROUP
|
|
MN_DISMANTLE
|
|
|
|
//-#i68101#----------------------
|
|
SEPARATOR
|
|
MN_OBJECT_TITLE_DESCRIPTION
|
|
MN_NAME_GROUP
|
|
//-#i68101#----------------------
|
|
};
|
|
};
|
|
|
|
|
|
|
|
Menu RID_DRAW_SNAPOBJECT_POPUP
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_SET_SNAPITEM
|
|
SEPARATOR
|
|
MN_DELETE_SNAPITEM
|
|
};
|
|
};
|
|
|
|
|
|
Menu RID_DRAW_GLUEPOINT_POPUP
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_GLUE_INSERT_POINT
|
|
SEPARATOR
|
|
MN_GLUE_ESC_DIR_LEFT
|
|
MN_GLUE_ESC_DIR_TOP
|
|
MN_GLUE_ESC_DIR_RIGHT
|
|
MN_GLUE_ESC_DIR_BOTTOM
|
|
SEPARATOR
|
|
MN_GLUE_PERCENT
|
|
SEPARATOR
|
|
MN_GLUE_HORZALIGN_LEFT
|
|
MN_GLUE_HORZALIGN_CENTER
|
|
MN_GLUE_HORZALIGN_RIGHT
|
|
SEPARATOR
|
|
MN_GLUE_VERTALIGN_TOP
|
|
MN_GLUE_VERTALIGN_CENTER
|
|
MN_GLUE_VERTALIGN_BOTTOM
|
|
};
|
|
};
|
|
|
|
|
|
Menu RID_SLIDE_SORTER_IMPRESS_SEL_POPUP
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_INSERT_SLIDE
|
|
MN_DUPLICATE_SLIDE
|
|
MN_DELETE_SLIDE
|
|
MN_RENAME_SLIDE
|
|
SEPARATOR
|
|
MN_PRESENTATION_LAYOUT
|
|
MN_MODIFY_PAGE
|
|
SEPARATOR
|
|
MN_DIA
|
|
MN_SHOW_SLIDE
|
|
MN_HIDE_SLIDE
|
|
};
|
|
};
|
|
|
|
|
|
Menu RID_SLIDE_SORTER_IMPRESS_NOSEL_POPUP
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_INSERT_SLIDE
|
|
};
|
|
};
|
|
|
|
Menu RID_SLIDE_SORTER_DRAW_SEL_POPUP
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_INSERT_PAGE
|
|
MN_DELETE_PAGE
|
|
MN_RENAME_PAGE
|
|
};
|
|
};
|
|
|
|
|
|
Menu RID_SLIDE_SORTER_DRAW_NOSEL_POPUP
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_INSERT_PAGE
|
|
};
|
|
};
|
|
|
|
Menu RID_SLIDE_SORTER_MASTER_SEL_POPUP
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_INSERT_MASTER
|
|
MN_DELETE_MASTER
|
|
MN_RENAME_MASTER
|
|
SEPARATOR
|
|
MN_PRESENTATION_LAYOUT
|
|
};
|
|
};
|
|
|
|
|
|
Menu RID_SLIDE_SORTER_MASTER_NOSEL_POPUP
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_INSERT_MASTER
|
|
};
|
|
};
|
|
|
|
Menu RID_MASTERPAGE_POPUP
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_SET_DEFAULT
|
|
SEPARATOR
|
|
MN_LINE
|
|
MN_AREA
|
|
MN_TRANSFORM
|
|
SEPARATOR
|
|
MN_CHAR_PARAGRAPH
|
|
// MN_PRESENTATIONOBJECT
|
|
SEPARATOR
|
|
MN_POSITION
|
|
};
|
|
};
|
|
|
|
|
|
Menu RID_OUTLINE_POPUP
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_SET_DEFAULT
|
|
SEPARATOR
|
|
MN_TEXT_ATTR
|
|
SEPARATOR
|
|
MN_CHAR
|
|
ITEM_FORMAT_NUMBERING
|
|
ITEM_TRANSLITERATE_MENU
|
|
MN_PRESENTATIONOBJECT
|
|
SEPARATOR
|
|
MN_DRAWINGMODE
|
|
MN_DIAMODE
|
|
MN_PRESENTATION
|
|
};
|
|
};
|
|
|
|
/*
|
|
RID_MASTERPAGE_POPUP
|
|
*/
|
|
|
|
Menu RID_BEZIER_POPUP
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_BEZIER
|
|
};
|
|
};
|
|
|
|
|
|
Menu RID_DRAW_BMP_CONVERT_POPUP
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_CONVERT_TO_1BIT_THRESHOLD
|
|
MN_CONVERT_TO_1BIT_MATRIX
|
|
MN_CONVERT_TO_4BIT_GRAYS
|
|
MN_CONVERT_TO_4BIT_COLORS
|
|
MN_CONVERT_TO_8BIT_GRAYS
|
|
MN_CONVERT_TO_8BIT_COLORS
|
|
MN_CONVERT_TO_24BIT
|
|
};
|
|
};
|
|
|
|
|
|
Menu RID_LAYERTAB_POPUP
|
|
{
|
|
ItemList =
|
|
{
|
|
MenuItem
|
|
{
|
|
Identifier = SID_INSERTLAYER ;
|
|
HelpId = CMD_SID_INSERTLAYER ;
|
|
Text [ en-US ] = "~Insert Layer..." ;
|
|
};
|
|
MenuItem
|
|
{
|
|
Identifier = SID_MODIFYLAYER ;
|
|
HelpId = CMD_SID_MODIFYLAYER ;
|
|
Text [ en-US ] = "Modify La~yer..." ;
|
|
};
|
|
MenuItem
|
|
{
|
|
Identifier = SID_DELETE_LAYER ;
|
|
HelpId = CMD_SID_DELETE_LAYER ;
|
|
Text [ en-US ] = "Delete ~Layer..." ;
|
|
};
|
|
MN_RENAME_LAYER
|
|
};
|
|
};
|
|
|
|
Menu RID_TASKPANE_MASTERPAGESSELECTOR_POPUP
|
|
{
|
|
ItemList =
|
|
{
|
|
MenuItem
|
|
{
|
|
Identifier = SID_TP_APPLY_TO_ALL_SLIDES;
|
|
HelpId = CMD_SID_TP_APPLY_TO_ALL_SLIDES;
|
|
Text [ en-US ] = "~Apply to All Slides";
|
|
};
|
|
MenuItem
|
|
{
|
|
Identifier = SID_TP_APPLY_TO_SELECTED_SLIDES;
|
|
HelpId = CMD_SID_TP_APPLY_TO_SELECTED_SLIDES;
|
|
Text [ en-US ] = "Apply to ~Selected Slides";
|
|
};
|
|
|
|
SEPARATOR
|
|
|
|
MenuItem
|
|
{
|
|
Identifier = SID_TP_SHOW_LARGE_PREVIEW;
|
|
HelpId = CMD_SID_TP_SHOW_LARGE_PREVIEW;
|
|
Text[ en-US ] = "Show ~Large Preview";
|
|
};
|
|
MenuItem
|
|
{
|
|
Identifier = SID_TP_SHOW_SMALL_PREVIEW;
|
|
HelpId = CMD_SID_TP_SHOW_SMALL_PREVIEW;
|
|
Text[ en-US ] = "Show S~mall Preview";
|
|
};
|
|
};
|
|
};
|
|
|
|
Menu RID_TASKPANE_CURRENT_MASTERPAGESSELECTOR_POPUP
|
|
{
|
|
ItemList =
|
|
{
|
|
MenuItem
|
|
{
|
|
Identifier = SID_TP_APPLY_TO_ALL_SLIDES;
|
|
HelpId = CMD_SID_TP_APPLY_TO_ALL_SLIDES;
|
|
Text [ en-US ] = "~Apply to All Slides";
|
|
};
|
|
MenuItem
|
|
{
|
|
Identifier = SID_TP_APPLY_TO_SELECTED_SLIDES;
|
|
HelpId = CMD_SID_TP_APPLY_TO_SELECTED_SLIDES;
|
|
Text [ en-US ] = "Apply to ~Selected Slides";
|
|
};
|
|
|
|
|
|
SEPARATOR
|
|
|
|
MenuItem
|
|
{
|
|
Identifier = SID_TP_EDIT_MASTER;
|
|
HelpId = CMD_SID_TP_EDIT_MASTER;
|
|
Text[ en-US ] = "~Edit Master...";
|
|
};
|
|
|
|
MN_DELETE_MASTER
|
|
|
|
SEPARATOR
|
|
|
|
MenuItem
|
|
{
|
|
Identifier = SID_TP_SHOW_LARGE_PREVIEW;
|
|
HelpId = CMD_SID_TP_SHOW_LARGE_PREVIEW;
|
|
Text[ en-US ] = "Show ~Large Preview";
|
|
};
|
|
MenuItem
|
|
{
|
|
Identifier = SID_TP_SHOW_SMALL_PREVIEW;
|
|
HelpId = CMD_SID_TP_SHOW_SMALL_PREVIEW;
|
|
Text[ en-US ] = "Show S~mall Preview";
|
|
};
|
|
};
|
|
};
|
|
|
|
Menu RID_TASKPANE_LAYOUTMENU_POPUP
|
|
{
|
|
ItemList =
|
|
{
|
|
MenuItem
|
|
{
|
|
Identifier = SID_TP_APPLY_TO_SELECTED_SLIDES;
|
|
HelpId = CMD_SID_TP_APPLY_TO_SELECTED_SLIDES;
|
|
Text [ en-US ] = "Apply to ~Selected Slides";
|
|
};
|
|
|
|
SEPARATOR
|
|
|
|
MenuItem
|
|
{
|
|
Identifier = SID_INSERTPAGE_LAYOUT_MENU;
|
|
HelpId = CMD_SID_INSERTPAGE_LAYOUT_MENU;
|
|
Text [ en-US ] = "~Insert Slide";
|
|
};
|
|
};
|
|
};
|