forked from amazingfate/loongoffice
497 lines
13 KiB
Plaintext
497 lines
13 KiB
Plaintext
/*
|
|
* 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 "ParaPropertyPanel.hrc"
|
|
#include <sfx2/sidebar/ResourceDefinitions.hrc>
|
|
#include "helpid.hrc"
|
|
|
|
#define MASKCOLOR MaskColor = Color { Red = 0xFFFF ; Green = 0x0000 ; Blue = 0xFFFF ; };
|
|
|
|
#define SVX_PROPERTYPANEL_PARA_VERT_IDLIST \
|
|
IdList = \
|
|
{ \
|
|
IID_VERT_TOP ; \
|
|
IID_VERT_CENTER ; \
|
|
IID_VERT_BOTTOM ; \
|
|
}; \
|
|
IdCount = { 3 ; };
|
|
|
|
#define SVX_PROPERTYPANEL_PARA_NUMBULLET_IDLIST \
|
|
IdList = \
|
|
{ \
|
|
IID_BULLET ; \
|
|
IID_NUMBER ; \
|
|
}; \
|
|
IdCount = { 2 ; };
|
|
|
|
//add by wj for sym2_7380
|
|
#define SVX_PROPERTYPANEL_PARA_NUMBULLET_IDLIST_RTL \
|
|
IdList = \
|
|
{ \
|
|
IID_BULLET ; \
|
|
IID_NUMBER ; \
|
|
}; \
|
|
IdCount = { 2 ; };
|
|
|
|
Image IMG_BACK_COLOR
|
|
{
|
|
ImageBitmap = Bitmap{File = "symphony/sc_backgroundcolor.bmp";};
|
|
};
|
|
Image IMG_BACK_COLOR_H
|
|
{
|
|
ImageBitmap = Bitmap{File = "symphony/sch_backgroundcolor.bmp";};
|
|
};
|
|
Image IMG_SPACE3
|
|
{
|
|
ImageBitmap = Bitmap{File = "symphony/spacing3.png";};
|
|
};
|
|
Image IMG_INDENT_HANG
|
|
{
|
|
ImageBitmap = Bitmap{File = "symphony/Indent_Hanging.png";};
|
|
};
|
|
ImageList IL_NUM_BULLET
|
|
{
|
|
Prefix = "symphony/para_numbullet";
|
|
MaskColor = STD_MASKCOLOR ;
|
|
SVX_PROPERTYPANEL_PARA_NUMBULLET_IDLIST
|
|
};
|
|
ImageList IL_NUM_BULLET_RTL
|
|
{
|
|
Prefix = "symphony/para_numbullet_rtl";
|
|
MaskColor = STD_MASKCOLOR ;
|
|
SVX_PROPERTYPANEL_PARA_NUMBULLET_IDLIST_RTL
|
|
};
|
|
|
|
//===========================================Back color page==============================
|
|
Control RID_POPUPPANEL_PARAPAGE_BACK_COLOR
|
|
{
|
|
OutputSize = TRUE;
|
|
DialogControl = TRUE;
|
|
Border = FALSE;
|
|
Size = MAP_APPFONT( POPUP_COLOR_PICKER_WIDTH , POPUP_COLOR_PICKER_HEIGHT );
|
|
|
|
Control VS_FONT_COLOR
|
|
{
|
|
HelpID = HID_PPROPERTYPANEL_PARA_BACK_COLOR_VS ;
|
|
Hide = TRUE ;
|
|
Pos = MAP_APPFONT ( OFFSET_X , OFFSET_Y );
|
|
Size = MAP_APPFONT ( POPUP_COLOR_PICKER_WIDTH - OFFSET_X * 2, POPUP_COLOR_PICKER_HEIGHT - OFFSET_Y * 2);
|
|
TabStop = TRUE ;
|
|
Text = "Color Picker";
|
|
};
|
|
String STR_NOFILL
|
|
{
|
|
Text [ en-US ] = "No Color";
|
|
};
|
|
};
|
|
|
|
//===========================================Bullet popup page==============================
|
|
Control RID_POPUPPANEL_PARAPAGE_BULLETS
|
|
{
|
|
DialogControl = TRUE;
|
|
OutputSize = TRUE;
|
|
Border = FALSE;
|
|
|
|
Size = MAP_APPFONT ( POPUP_WIDTH_BULLET , POPUP_HEIGHT_BULLET) ;
|
|
Control VS_VALUES
|
|
{
|
|
Pos = MAP_APPFONT ( POPUPPANEL_MARGIN_NB , POPUPPANEL_MARGIN_NB ) ;
|
|
Size = MAP_APPFONT ( VS_WIDTH_BULLET , VS_HEIGHT_BULLET) ;
|
|
HelpID = HID_POPUP_BULLET_VS_VALUES ;
|
|
TabStop = TRUE ;
|
|
Text = "Bullet";
|
|
};
|
|
PushButton CB_BULLET_MORE
|
|
{
|
|
Pos = MAP_APPFONT (CUST_MORE_BUTTON_X + POPUPPANEL_MARGIN_NB, VS_HEIGHT_BULLET + POPUPPANEL_MARGIN_NB * 2 ) ;
|
|
Size = MAP_APPFONT (POPUP_WIDTH_BULLET - 2*CUST_MORE_BUTTON_X - POPUPPANEL_MARGIN_NB*2, CUST_MORE_BUTTON_HEIGHT ) ;
|
|
HelpID = HID_POPUP_BULLET_CB_BULLET_MORE ;
|
|
TabStop = TRUE ;
|
|
Text [ en-US ] = "~More Options";
|
|
};
|
|
Bitmap BMP_BULLET_MORE
|
|
{
|
|
File = "symphony/__morebutton.bmp";
|
|
};
|
|
};
|
|
|
|
String RID_SVXSTR_SIDEBAR_BULLET_DESCRIPTIONS_0
|
|
{
|
|
Text [en-US] = "large square bullets";
|
|
};
|
|
|
|
String RID_SVXSTR_SIDEBAR_BULLET_DESCRIPTIONS_1
|
|
{
|
|
Text [en-US] = "graphic bullets";
|
|
};
|
|
|
|
String RID_SVXSTR_SIDEBAR_BULLET_DESCRIPTIONS_2
|
|
{
|
|
Text [en-US] = "graphic bullets";
|
|
};
|
|
|
|
String RID_SVXSTR_SIDEBAR_BULLET_DESCRIPTIONS_3
|
|
{
|
|
Text [en-US] = "graphic bullets";
|
|
};
|
|
|
|
String RID_SVXSTR_SIDEBAR_BULLET_DESCRIPTIONS_4
|
|
{
|
|
Text [en-US] = "graphic bullets";
|
|
};
|
|
|
|
//===========================================Numbering popup page==============================
|
|
Control RID_POPUPPANEL_PARAPAGE_NUMBERING
|
|
{
|
|
SVLook = TRUE ;
|
|
DialogControl = TRUE;
|
|
OutputSize = TRUE;
|
|
Border = FALSE;
|
|
|
|
Size = MAP_APPFONT ( POPUP_WIDTH_NUM , POPUP_HEIGHT_NUM) ;
|
|
Control VS_NUMBERING
|
|
{
|
|
Pos = MAP_APPFONT ( POPUPPANEL_MARGIN_NB, POPUPPANEL_MARGIN_NB ) ;
|
|
Size = MAP_APPFONT ( VS_WIDTH_NUM , VS_HEIGHT_NUM) ;
|
|
HelpID = HID_POPUP_NUM_VS_NUMBERING ;
|
|
TabStop = TRUE ;
|
|
Text = "Numbering";
|
|
};
|
|
PushButton CB_NUMBERING_MORE
|
|
{
|
|
Pos = MAP_APPFONT (CUST_MORE_BUTTON_X + POPUPPANEL_MARGIN_NB, VS_HEIGHT_NUM + POPUPPANEL_MARGIN_NB * 2 ) ;
|
|
Size = MAP_APPFONT (POPUP_WIDTH_NUM - 2*CUST_MORE_BUTTON_X - POPUPPANEL_MARGIN_NB*2, CUST_MORE_BUTTON_HEIGHT ) ;
|
|
HelpID = HID_POPUP_NUM_CB_NUMBERING_MORE ;
|
|
TabStop = TRUE ;
|
|
Text [ en-US ] = "~More Options";
|
|
};
|
|
Bitmap BMP_NUMERING_MORE
|
|
{
|
|
File = "symphony/__morebutton.bmp";
|
|
};
|
|
};
|
|
|
|
//===========================================Line Space popup page==============================
|
|
|
|
Image IMG_SPACING1
|
|
{
|
|
ImageBitmap = Bitmap{File = "symphony/lpspacing-1.png";};
|
|
};
|
|
Image IMG_SPACING115
|
|
{
|
|
ImageBitmap = Bitmap{File = "symphony/lpspacing-1_15.png";};
|
|
};
|
|
Image IMG_SPACING15
|
|
{
|
|
ImageBitmap = Bitmap{File = "symphony/lpspacing-1_5.png";};
|
|
};
|
|
Image IMG_SPACING2
|
|
{
|
|
ImageBitmap = Bitmap{File = "symphony/lpspacing-2.png";};
|
|
};
|
|
Image IMG_SEL_SPACING1
|
|
{
|
|
ImageBitmap = Bitmap{File = "symphony/lpselected-spacing-1.png";};
|
|
};
|
|
Image IMG_SEL_SPACING115
|
|
{
|
|
ImageBitmap = Bitmap{File = "symphony/lpselected-spacing-1_15.png";};
|
|
};
|
|
Image IMG_SEL_SPACING15
|
|
{
|
|
ImageBitmap = Bitmap{File = "symphony/lpselected-spacing-1_5.png";};
|
|
};
|
|
Image IMG_SEL_SPACING2
|
|
{
|
|
ImageBitmap = Bitmap{File = "symphony/lpselected-spacing-2.png";};
|
|
};
|
|
Image IMG_CUSTOM
|
|
{
|
|
ImageBitmap = Bitmap{File = "symphony/last_custom_common.png";};
|
|
};
|
|
Image IMG_CUSTOM_GRAY
|
|
{
|
|
ImageBitmap = Bitmap{File = "symphony/last_custom_common_grey.png";};
|
|
};
|
|
|
|
Control RID_POPUPPANEL_PARAPAGE_LINESPACING
|
|
{
|
|
OutputSize = TRUE;
|
|
DialogControl = TRUE;
|
|
Border = FALSE;
|
|
|
|
Size = MAP_APPFONT( POPUPPANEL_MARGIN_SMALL * 2 + POPUP_BORDER_WIDTH + VS_SPACING_WIDTH, POPUP_PAGE_HEIGHT );
|
|
|
|
Control LINE_SPACING
|
|
{
|
|
Pos = MAP_APPFONT( POPUPPANEL_MARGIN_SMALL + OFFSET_X , POPUPPANEL_MARGIN_SMALL + OFFSET_Y );
|
|
Size = MAP_APPFONT ( VS_SPACING_WIDTH , 17 * 5);
|
|
TabStop = TRUE ;
|
|
Text = "Line Spacing";
|
|
};
|
|
|
|
FixedText FT_CUSTOM
|
|
{
|
|
Pos = MAP_APPFONT ( POP_FT_CUSTOM_X, POP_FT_CUSTOM_Y );
|
|
Size = MAP_APPFONT ( _FIXED_TEXT_WIDTH + 50 , _FIXED_TEXT_HEIGHT) ;
|
|
Text [ en-US ] = "Custom:";
|
|
};
|
|
FixedText FT_LINE_SPACING
|
|
{
|
|
Pos = MAP_APPFONT ( FT_1_X, FT_1_Y );
|
|
Size = MAP_APPFONT ( _FIXED_TEXT_WIDTH + 10, _FIXED_TEXT_HEIGHT) ;
|
|
Text [ en-US ] = "~Line Spacing:";
|
|
};
|
|
|
|
FixedText FT_OF
|
|
{
|
|
Pos = MAP_APPFONT ( FT_2_X, FT_2_Y );
|
|
Size = MAP_APPFONT ( _FIXED_TEXT_WIDTH , _FIXED_TEXT_HEIGHT) ;
|
|
Text [ en-US ] = "~Of:";
|
|
};
|
|
|
|
ListBox LB_LINE_SPACING
|
|
{
|
|
Border = TRUE ;
|
|
Pos = MAP_APPFONT ( EDIT_1_X, EDIT_1_Y );
|
|
Size = MAP_APPFONT ( BD_WIDTH - POPUPPANEL_MARGIN_LARGE * 2,LISTBOX_HEIGHT ) ;
|
|
TabStop = TRUE ;
|
|
DropDown = TRUE ;
|
|
HelpID = HID_POPUP_LS_LB_LINE_SPACING ;
|
|
StringList [ en-US ] =
|
|
{
|
|
< "Single" ; Default ; > ;
|
|
< "1.5 Lines" ; Default ; > ;
|
|
< "Double" ; Default ; > ;
|
|
< "Proportional" ; Default ; > ;
|
|
< "At least" ; Default ; > ;
|
|
< "Leading" ; Default ; > ;
|
|
< "Fixed" ; Default ; > ;
|
|
};
|
|
};
|
|
MetricField ED_SBINDE_LINEDISTPERCENT
|
|
{
|
|
Disable = TRUE;
|
|
Border = TRUE;
|
|
Pos = MAP_APPFONT ( EDIT_2_X, EDIT_2_Y );
|
|
Size = MAP_APPFONT ( BD_WIDTH - POPUPPANEL_MARGIN_LARGE * 2,MBOX_HEIGHT ) ;
|
|
HelpID = HID_POPUP_LS_ED_SBINDE_LINEDISTPERCENT ;
|
|
Repeat = TRUE;
|
|
Spin = TRUE;
|
|
Minimum = 50;
|
|
Maximum = 200;
|
|
Value = 100;
|
|
StrictFormat = TRUE;
|
|
Unit = FUNIT_CUSTOM ;
|
|
CustomUnitText = "%";
|
|
First = 50;
|
|
Last = 200;
|
|
SpinSize = 1;
|
|
};
|
|
MetricField ED_SBINDE_LINEDISTPOINT
|
|
{
|
|
Disable = TRUE;
|
|
Border = TRUE;
|
|
Pos = MAP_APPFONT ( EDIT_2_X, EDIT_2_Y );
|
|
Size = MAP_APPFONT ( BD_WIDTH - POPUPPANEL_MARGIN_LARGE * 2, MBOX_HEIGHT ) ;
|
|
HelpID = HID_POPUP_LS_ED_SBINDE_LINEDISTPOINT ;
|
|
Repeat = TRUE;
|
|
Spin = TRUE;
|
|
Maximum = 9999;
|
|
DecimalDigits = 2;
|
|
StrictFormat = TRUE ;
|
|
Unit = FUNIT_INCH;
|
|
Last = 9999;
|
|
SpinSize = 2;
|
|
};
|
|
|
|
String STR_LS_SINGLE
|
|
{
|
|
Text [ en-US ] = "Line spacing: Single";
|
|
};
|
|
String STR_LS_115
|
|
{
|
|
Text [ en-US ] = "Line spacing: 1.15 Lines";
|
|
};
|
|
String STR_LS_15
|
|
{
|
|
Text [ en-US ] = "Line spacing: 1.5 Lines";
|
|
};
|
|
String STR_LS_DOUBLE
|
|
{
|
|
Text [ en-US ] = "Line spacing: Double";
|
|
};
|
|
String STR_LSPACING
|
|
{
|
|
Text [ en-US ] = "Line spacing:";
|
|
};
|
|
String STR_LS_OF
|
|
{
|
|
Text [ en-US ] = "of:";
|
|
};
|
|
String STR_SPACING1
|
|
{
|
|
Text [ en-US ] = "Spacing: 1";
|
|
};
|
|
String STR_SPACING115
|
|
{
|
|
Text [ en-US ] = "Spacing: 1.15";
|
|
};
|
|
String STR_SPACING15
|
|
{
|
|
Text [ en-US ] = "Spacing: 1.5";
|
|
};
|
|
String STR_SPACING2
|
|
{
|
|
Text [ en-US ] = "Spacing: 2";
|
|
};
|
|
String STR_LCVALUE
|
|
{
|
|
Text [ en-US ] = "Last Custom Value";
|
|
};
|
|
};
|
|
|
|
String RID_SVXSTR_NUMBULLET_NONE
|
|
{
|
|
Text [en-US] = "None";
|
|
};
|
|
|
|
//i122118, Seems the bullets graphic order and count is changed in the gallary,
|
|
//Following descriptions should be changed accordingly.
|
|
|
|
String RID_SVXSTR_GRAPHICS_DESCRIPTION_0
|
|
{
|
|
Text [en-US] = "Black Pearl";
|
|
};
|
|
String RID_SVXSTR_GRAPHICS_DESCRIPTION_1
|
|
{
|
|
Text [en-US] = "Blue Arrow 1";
|
|
};
|
|
String RID_SVXSTR_GRAPHICS_DESCRIPTION_2
|
|
{
|
|
Text [en-US] = "Blue Ball";
|
|
};
|
|
String RID_SVXSTR_GRAPHICS_DESCRIPTION_3
|
|
{
|
|
Text [en-US] = "Blue Diamond";
|
|
};
|
|
String RID_SVXSTR_GRAPHICS_DESCRIPTION_4
|
|
{
|
|
Text [en-US] = "Blue Red";
|
|
};
|
|
String RID_SVXSTR_GRAPHICS_DESCRIPTION_5
|
|
{
|
|
Text [en-US] = "Blue Square";
|
|
};
|
|
String RID_SVXSTR_GRAPHICS_DESCRIPTION_6
|
|
{
|
|
Text [en-US] = "Blue Star";
|
|
};
|
|
String RID_SVXSTR_GRAPHICS_DESCRIPTION_7
|
|
{
|
|
Text [en-US] = "Dark Red Circle";
|
|
};
|
|
String RID_SVXSTR_GRAPHICS_DESCRIPTION_8
|
|
{
|
|
Text [en-US] = "Blue Circle";
|
|
};
|
|
String RID_SVXSTR_GRAPHICS_DESCRIPTION_9
|
|
{
|
|
Text [en-US] = "Green Circle";
|
|
};
|
|
String RID_SVXSTR_GRAPHICS_DESCRIPTION_10
|
|
{
|
|
Text [en-US] = "Black Square";
|
|
};
|
|
String RID_SVXSTR_GRAPHICS_DESCRIPTION_11
|
|
{
|
|
Text [en-US] = "Orange Square";
|
|
};
|
|
String RID_SVXSTR_GRAPHICS_DESCRIPTION_12
|
|
{
|
|
Text [en-US] = "Purple Square";
|
|
};
|
|
String RID_SVXSTR_GRAPHICS_DESCRIPTION_13
|
|
{
|
|
Text [en-US] = "Blue Diamond";
|
|
};
|
|
String RID_SVXSTR_GRAPHICS_DESCRIPTION_14
|
|
{
|
|
Text [en-US] = "Light Blue Diamond";
|
|
};
|
|
String RID_SVXSTR_GRAPHICS_DESCRIPTION_15
|
|
{
|
|
Text [en-US] = "Red Diamond";
|
|
};
|
|
String RID_SVXSTR_GRAPHICS_DESCRIPTION_16
|
|
{
|
|
Text [en-US] = "Yellow Star";
|
|
};
|
|
String RID_SVXSTR_GRAPHICS_DESCRIPTION_17
|
|
{
|
|
Text [en-US] = "Blue Star";
|
|
};
|
|
String RID_SVXSTR_GRAPHICS_DESCRIPTION_18
|
|
{
|
|
Text [en-US] = "Blue Triangle";
|
|
};
|
|
String RID_SVXSTR_GRAPHICS_DESCRIPTION_19
|
|
{
|
|
Text [en-US] = "Dark Green Triangle";
|
|
};
|
|
String RID_SVXSTR_GRAPHICS_DESCRIPTION_20
|
|
{
|
|
Text [en-US] = "Red Arrow";
|
|
};
|
|
String RID_SVXSTR_GRAPHICS_DESCRIPTION_21
|
|
{
|
|
Text [en-US] = "Blue Arrow 2";
|
|
};
|
|
String RID_SVXSTR_GRAPHICS_DESCRIPTION_22
|
|
{
|
|
Text [en-US] = "Blue Box";
|
|
};
|
|
String RID_SVXSTR_GRAPHICS_DESCRIPTION_23
|
|
{
|
|
Text [en-US] = "Red Box";
|
|
};
|
|
String RID_SVXSTR_GRAPHICS_DESCRIPTION_24
|
|
{
|
|
Text [en-US] = "Light Blue Asterisk";
|
|
};
|
|
String RID_SVXSTR_GRAPHICS_DESCRIPTION_25
|
|
{
|
|
Text [en-US] = "Red Leaves";
|
|
};
|
|
String RID_SVXSTR_GRAPHICS_DESCRIPTION_26
|
|
{
|
|
Text [en-US] = "Blue Target";
|
|
};
|
|
String RID_SVXSTR_GRAPHICS_DESCRIPTION_27
|
|
{
|
|
Text [en-US] = "Blue Arrow 3";
|
|
};
|
|
String RID_SVXSTR_GRAPHICS_DESCRIPTION_28
|
|
{
|
|
Text [en-US] = "Dark Blue Arrow";
|
|
};
|
|
String RID_SVXSTR_GRAPHICS_DESCRIPTION_29
|
|
{
|
|
Text [en-US] = "Brown Arrow";
|
|
};
|
|
//i122118
|