7101f15514
2006/03/28 16:10:56 cl 1.7.174.1: #i13816# added 'Save as Picture' patch from mkretzschmar
650 lines
12 KiB
Text
650 lines
12 KiB
Text
/*************************************************************************
|
|
*
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
|
*
|
|
* $RCSfile: popup2_tmpl.src,v $
|
|
*
|
|
* $Revision: 1.8 $
|
|
*
|
|
* last change: $Author: kz $ $Date: 2006-07-05 21:52:49 $
|
|
*
|
|
* The Contents of this file are made available subject to
|
|
* the terms of GNU Lesser General Public License Version 2.1.
|
|
*
|
|
*
|
|
* GNU Lesser General Public License Version 2.1
|
|
* =============================================
|
|
* Copyright 2005 by Sun Microsystems, Inc.
|
|
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License version 2.1, as published by the Free Software Foundation.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
* MA 02111-1307 USA
|
|
*
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#include "menuids3.src"
|
|
|
|
#ifndef SD_POPUP
|
|
#define SD_POPUP RID_DRAW_TEXTOBJ_POPUP
|
|
#include "menuids.src"
|
|
#endif
|
|
|
|
|
|
|
|
//
|
|
// TEXTOBJ_POPUP
|
|
//
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
Menu RID_DRAW_TEXTOBJ_POPUP
|
|
#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
|
|
Menu RID_GRAPHIC_TEXTOBJ_POPUP
|
|
#endif
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_SET_DEFAULT
|
|
SEPARATOR
|
|
MN_LINE
|
|
MN_AREA
|
|
MN_TEXTATTR
|
|
MN_TRANSFORM
|
|
MN_FONTWORK
|
|
SEPARATOR
|
|
MN_CHAR_PARAGRAPH
|
|
SEPARATOR
|
|
MN_POSITION
|
|
MN_OBJECT_ALIGN
|
|
MN_DISTRIBUTE
|
|
MNSUB_CONVERT
|
|
SEPARATOR
|
|
MN_NAME_GROUP
|
|
SEPARATOR
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
MN_EFFECT
|
|
MN_ACTION
|
|
#endif
|
|
SEPARATOR
|
|
MN_STYLEDT
|
|
};
|
|
};
|
|
|
|
//
|
|
// GEOMOBJ_POPUP
|
|
//
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
Menu RID_DRAW_GEOMOBJ_POPUP
|
|
#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
|
|
Menu RID_GRAPHIC_GEOMOBJ_POPUP
|
|
#endif
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_LINE
|
|
MN_AREA
|
|
MN_TEXTATTR
|
|
MN_TRANSFORM
|
|
MN_EDIT_POINTS
|
|
SEPARATOR
|
|
MN_CHAR_PARAGRAPH
|
|
SEPARATOR
|
|
MN_POSITION
|
|
MN_OBJECT_ALIGN
|
|
MN_DISTRIBUTE
|
|
MNSUB_MIRROR
|
|
MNSUB_CONVERT
|
|
SEPARATOR
|
|
MN_LEAVE_GROUP
|
|
MN_DISMANTLE
|
|
SEPARATOR
|
|
MN_NAME_GROUP
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
SEPARATOR
|
|
MN_EFFECT
|
|
MN_ACTION
|
|
#endif
|
|
SEPARATOR
|
|
MN_STYLEDT
|
|
};
|
|
};
|
|
|
|
//
|
|
// Customshape POPUP
|
|
//
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
Menu RID_DRAW_CUSTOMSHAPE_POPUP
|
|
#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
|
|
Menu RID_GRAPHIC_CUSTOMSHAPE_POPUP
|
|
#endif
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_LINE
|
|
MN_AREA
|
|
MN_TEXTATTR
|
|
MN_TRANSFORM
|
|
SEPARATOR
|
|
MN_CHAR_PARAGRAPH
|
|
SEPARATOR
|
|
MN_POSITION
|
|
MN_OBJECT_ALIGN
|
|
MN_DISTRIBUTE
|
|
MNSUB_MIRROR
|
|
// #i37263#
|
|
MNSUB_CONVERT
|
|
SEPARATOR
|
|
MN_LEAVE_GROUP
|
|
MN_DISMANTLE
|
|
SEPARATOR
|
|
MN_NAME_GROUP
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
SEPARATOR
|
|
MN_EFFECT
|
|
MN_ACTION
|
|
#endif
|
|
SEPARATOR
|
|
MN_STYLEDT
|
|
SEPARATOR
|
|
|
|
};
|
|
};
|
|
|
|
//
|
|
// 3DOSCENE_POPUP
|
|
//
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
Menu RID_DRAW_3DSCENE_POPUP
|
|
#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
|
|
Menu RID_GRAPHIC_3DSCENE_POPUP
|
|
#endif
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_LINE
|
|
MN_AREA
|
|
MN_TRANSFORM
|
|
SEPARATOR
|
|
MN_POSITION
|
|
MN_OBJECT_ALIGN
|
|
MN_DISTRIBUTE
|
|
MNSUB_CONVERT
|
|
SEPARATOR
|
|
MN_ENTER_GROUP
|
|
MN_3D_WIN
|
|
SEPARATOR
|
|
MN_NAME_GROUP
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
SEPARATOR
|
|
MN_EFFECT
|
|
MN_ACTION
|
|
#endif
|
|
// SEPARATOR
|
|
// MN_STYLEDT
|
|
};
|
|
};
|
|
|
|
//
|
|
// 3DOSCENE2_POPUP
|
|
//
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
Menu RID_DRAW_3DSCENE2_POPUP
|
|
#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
|
|
Menu RID_GRAPHIC_3DSCENE2_POPUP
|
|
#endif
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_LINE
|
|
MN_AREA
|
|
MN_TRANSFORM
|
|
SEPARATOR
|
|
MN_POSITION
|
|
MN_OBJECT_ALIGN
|
|
MN_DISTRIBUTE
|
|
MNSUB_CONVERT
|
|
SEPARATOR
|
|
MN_ENTER_GROUP
|
|
MN_LEAVE_GROUP
|
|
MN_3D_WIN
|
|
SEPARATOR
|
|
MN_NAME_GROUP
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
SEPARATOR
|
|
MN_EFFECT
|
|
MN_ACTION
|
|
#endif
|
|
// SEPARATOR
|
|
// MN_STYLEDT
|
|
};
|
|
};
|
|
|
|
//
|
|
// 3DOBJ_POPUP
|
|
//
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
Menu RID_DRAW_3DOBJ_POPUP
|
|
#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
|
|
Menu RID_GRAPHIC_3DOBJ_POPUP
|
|
#endif
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_LINE
|
|
MN_AREA
|
|
MN_TRANSFORM
|
|
SEPARATOR
|
|
MN_POSITION
|
|
MN_OBJECT_ALIGN
|
|
MN_DISTRIBUTE
|
|
MNSUB_CONVERT
|
|
SEPARATOR
|
|
MN_LEAVE_GROUP
|
|
MN_3D_WIN
|
|
SEPARATOR
|
|
MN_NAME_GROUP
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
SEPARATOR
|
|
MN_EFFECT
|
|
MN_ACTION
|
|
#endif
|
|
SEPARATOR
|
|
MN_STYLEDT
|
|
};
|
|
};
|
|
|
|
//
|
|
// GROUPOBJ_POPUP
|
|
//
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
Menu RID_DRAW_GROUPOBJ_POPUP
|
|
#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
|
|
Menu RID_GRAPHIC_GROUPOBJ_POPUP
|
|
#endif
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_LINE
|
|
MN_AREA
|
|
MN_TRANSFORM
|
|
MN_EDIT_POINTS
|
|
SEPARATOR
|
|
MN_CHAR_PARAGRAPH
|
|
SEPARATOR
|
|
MN_POSITION
|
|
MN_OBJECT_ALIGN
|
|
MN_DISTRIBUTE
|
|
MNSUB_MIRROR
|
|
MNSUB_CONVERT
|
|
SEPARATOR
|
|
MN_NAME_GROUP
|
|
SEPARATOR
|
|
MN_UNGROUP
|
|
MN_ENTER_GROUP
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
SEPARATOR
|
|
MN_EFFECT
|
|
MN_ACTION
|
|
#endif
|
|
};
|
|
};
|
|
|
|
//
|
|
// LINEOBJ_POPUP
|
|
//
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
Menu RID_DRAW_LINEOBJ_POPUP
|
|
#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
|
|
Menu RID_GRAPHIC_LINEOBJ_POPUP
|
|
#endif
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_LINE
|
|
MN_TRANSFORM
|
|
MN_EDIT_POINTS
|
|
SEPARATOR
|
|
MN_CHAR_PARAGRAPH
|
|
SEPARATOR
|
|
MN_POSITION
|
|
MN_OBJECT_ALIGN
|
|
MN_DISTRIBUTE
|
|
MNSUB_MIRROR
|
|
MNSUB_CONVERT
|
|
SEPARATOR
|
|
MN_LEAVE_GROUP
|
|
MN_DISMANTLE
|
|
SEPARATOR
|
|
MN_NAME_GROUP
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
SEPARATOR
|
|
MN_EFFECT
|
|
MN_ACTION
|
|
#endif
|
|
SEPARATOR
|
|
MN_STYLEDT
|
|
};
|
|
};
|
|
|
|
//
|
|
// EDGEOBJ_POPUP
|
|
//
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
Menu RID_DRAW_EDGEOBJ_POPUP
|
|
#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
|
|
Menu RID_GRAPHIC_EDGEOBJ_POPUP
|
|
#endif
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_NEW_ROUTING
|
|
SEPARATOR
|
|
MN_LINE
|
|
MN_CONNECTION
|
|
MN_TRANSFORM
|
|
MN_EDIT_POINTS
|
|
SEPARATOR
|
|
MN_CHAR_PARAGRAPH
|
|
SEPARATOR
|
|
MN_POSITION
|
|
MN_OBJECT_ALIGN
|
|
MN_DISTRIBUTE
|
|
MNSUB_CONVERT
|
|
SEPARATOR
|
|
MN_LEAVE_GROUP
|
|
MN_DISMANTLE
|
|
SEPARATOR
|
|
MN_NAME_GROUP
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
SEPARATOR
|
|
MN_EFFECT
|
|
MN_ACTION
|
|
#endif
|
|
SEPARATOR
|
|
MN_STYLEDT
|
|
};
|
|
};
|
|
|
|
//
|
|
// MEASUREOBJ_POPUP
|
|
//
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
Menu RID_DRAW_MEASUREOBJ_POPUP
|
|
#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
|
|
Menu RID_GRAPHIC_MEASUREOBJ_POPUP
|
|
#endif
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_LINE
|
|
MN_TEXTATTR
|
|
MN_MEASURE
|
|
MN_TRANSFORM
|
|
MN_EDIT_POINTS
|
|
SEPARATOR
|
|
MN_CHAR_PARAGRAPH
|
|
SEPARATOR
|
|
MN_POSITION
|
|
MN_OBJECT_ALIGN
|
|
MN_DISTRIBUTE
|
|
MNSUB_MIRROR
|
|
MNSUB_CONVERT
|
|
SEPARATOR
|
|
MN_LEAVE_GROUP
|
|
MN_DISMANTLE
|
|
SEPARATOR
|
|
MN_NAME_GROUP
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
SEPARATOR
|
|
MN_EFFECT
|
|
MN_ACTION
|
|
#endif
|
|
SEPARATOR
|
|
MN_STYLEDT
|
|
};
|
|
};
|
|
|
|
|
|
//
|
|
// POLYLINEOBJ_POPUP
|
|
//
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
Menu RID_DRAW_POLYLINEOBJ_POPUP
|
|
#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
|
|
Menu RID_GRAPHIC_POLYLINEOBJ_POPUP
|
|
#endif
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_LINE
|
|
MN_TRANSFORM
|
|
MN_EDIT_POINTS
|
|
MN_CLOSE_OBJECT
|
|
SEPARATOR
|
|
MN_CHAR_PARAGRAPH
|
|
SEPARATOR
|
|
MN_POSITION
|
|
MN_OBJECT_ALIGN
|
|
MN_DISTRIBUTE
|
|
MNSUB_MIRROR
|
|
MNSUB_CONVERT
|
|
SEPARATOR
|
|
MN_LEAVE_GROUP
|
|
MN_DISMANTLE
|
|
MN_BREAK
|
|
SEPARATOR
|
|
MN_NAME_GROUP
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
SEPARATOR
|
|
MN_EFFECT
|
|
MN_ACTION
|
|
#endif
|
|
SEPARATOR
|
|
MN_STYLEDT
|
|
};
|
|
};
|
|
|
|
//
|
|
// NOSEL_POPUP
|
|
//
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
Menu RID_DRAW_NOSEL_POPUP
|
|
#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
|
|
Menu RID_GRAPHIC_NOSEL_POPUP
|
|
#endif
|
|
{
|
|
ItemList =
|
|
{
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
MN_SLIDE_MENU
|
|
#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
|
|
MN_PAGE_MENU
|
|
#endif
|
|
SEPARATOR
|
|
MN_CAPTUREPOINT
|
|
SEPARATOR
|
|
MN_LEAVE_GROUP
|
|
SEPARATOR
|
|
MN_NAVIGATOR
|
|
SEPARATOR
|
|
MN_GRID
|
|
SEPARATOR
|
|
MN_HELPLINES
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
SEPARATOR
|
|
MN_OUTLINEMODE
|
|
MN_DIAMODE
|
|
MN_PRESENTATION
|
|
#endif
|
|
};
|
|
};
|
|
|
|
//
|
|
// MULTISELECTION_POPUP
|
|
//
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
Menu RID_DRAW_MULTISELECTION_POPUP
|
|
#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
|
|
Menu RID_GRAPHIC_MULTISELECTION_POPUP
|
|
#endif
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_SET_DEFAULT
|
|
SEPARATOR
|
|
MN_LINE
|
|
MN_AREA
|
|
MN_TRANSFORM
|
|
SEPARATOR
|
|
MN_CHAR_PARAGRAPH
|
|
SEPARATOR
|
|
MN_POSITION
|
|
MN_OBJECT_ALIGN
|
|
MN_DISTRIBUTE
|
|
MNSUB_MIRROR
|
|
MNSUB_CONVERT
|
|
SEPARATOR
|
|
MN_GROUP
|
|
MN_UNGROUP
|
|
MN_LEAVE_GROUP
|
|
MN_COMBINE
|
|
MNSUB_FORMEN
|
|
MN_DISMANTLE
|
|
MN_CONNECT
|
|
MN_BREAK
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
SEPARATOR
|
|
MN_EFFECT
|
|
MN_ACTION
|
|
#endif
|
|
};
|
|
};
|
|
|
|
//
|
|
// GRAPHIC_POPUP
|
|
//
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
Menu RID_DRAW_GRAPHIC_POPUP
|
|
#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
|
|
Menu RID_GRAPHIC_GRAPHIC_POPUP
|
|
#endif
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_TRANSFORM
|
|
MN_ORIGINAL_SIZE
|
|
MN_LINE
|
|
MN_AREA
|
|
MN_TEXTATTR
|
|
SEPARATOR
|
|
MN_CHAR_PARAGRAPH
|
|
SEPARATOR
|
|
MN_OBJECT_ALIGN
|
|
MN_POSITION
|
|
MN_DISTRIBUTE
|
|
MNSUB_MIRROR
|
|
MNSUB_CONVERT
|
|
MN_BREAK
|
|
SEPARATOR
|
|
MN_NAME_GROUP
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
MN_EFFECT
|
|
MN_ACTION
|
|
#endif
|
|
SEPARATOR
|
|
MN_STYLEDT
|
|
SEPARATOR
|
|
MN_SAVEGRAPHIC
|
|
};
|
|
};
|
|
|
|
//
|
|
// OLE2_POPUP
|
|
//
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
Menu RID_DRAW_OLE2_POPUP
|
|
#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
|
|
Menu RID_GRAPHIC_OLE2_POPUP
|
|
#endif
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_TRANSFORM
|
|
MN_ORIGINAL_SIZE
|
|
MN_OLE_OBJECT
|
|
SEPARATOR
|
|
MN_POSITION
|
|
MN_OBJECT_ALIGN
|
|
MN_DISTRIBUTE
|
|
MN_BREAK
|
|
SEPARATOR
|
|
MN_NAME_GROUP
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
SEPARATOR
|
|
MN_EFFECT
|
|
MN_ACTION
|
|
#endif
|
|
};
|
|
};
|
|
|
|
|
|
//
|
|
// PAGETAB_POPUP
|
|
//
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
Menu RID_DRAW_PAGETAB_POPUP
|
|
#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
|
|
Menu RID_GRAPHIC_PAGETAB_POPUP
|
|
#endif
|
|
{
|
|
ItemList =
|
|
{
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
MN_INSERT_SLIDE
|
|
MN_DELETE_SLIDE
|
|
MN_MODIFY_PAGE
|
|
#else
|
|
MN_INSERT_PAGE
|
|
MN_DELETE_PAGE
|
|
#endif
|
|
MN_RENAME_PAGE
|
|
};
|
|
};
|
|
|
|
//
|
|
// Media_POPUP
|
|
//
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
Menu RID_DRAW_MEDIA_POPUP
|
|
#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
|
|
Menu RID_GRAPHIC_MEDIA_POPUP
|
|
#endif
|
|
{
|
|
ItemList =
|
|
{
|
|
MN_TRANSFORM
|
|
SEPARATOR
|
|
MN_POSITION
|
|
MN_OBJECT_ALIGN
|
|
MN_DISTRIBUTE
|
|
MN_BREAK
|
|
SEPARATOR
|
|
MN_NAME_GROUP
|
|
#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
|
|
SEPARATOR
|
|
MN_EFFECT
|
|
MN_ACTION
|
|
#endif
|
|
};
|
|
};
|