|
@@ -490,14 +490,51 @@ namespace PDF_Master.ViewModels.Tools
|
|
|
|
|
|
#region 注释-右键菜单文案
|
|
|
|
|
|
- public string T_RightMenuAnnotCopy = App.MainPageLoader.GetString("ViewRightMenuSelection_Copy");
|
|
|
- public string T_RightMenuAnnotPaste = App.MainPageLoader.GetString("ViewRightMenuSelection_Paste");
|
|
|
- public string T_RightMenuAnnotHighlight = App.MainPageLoader.GetString("ViewRightMenuSelection_Highlight");
|
|
|
- public string T_RightMenuAnnotUnderline = App.MainPageLoader.GetString("ViewRightMenuSelection_Underline");
|
|
|
- public string T_RightMenuAnnotStrikethrough = App.MainPageLoader.GetString("ViewRightMenuSelection_Strikethrough");
|
|
|
- public string T_RightMenuAnnotText = App.MainPageLoader.GetString("ViewRightMenuSelection_Text");
|
|
|
- public string T_RightMenuAnnotNote = App.MainPageLoader.GetString("ViewRightMenuSelection_Note");
|
|
|
+ //public string T_RightMenuAnnotCopy = App.MainPageLoader.GetString("ViewRightMenuSelection_Copy");
|
|
|
+ //public string T_RightMenuAnnotPaste = App.MainPageLoader.GetString("ViewRightMenuSelection_Paste");
|
|
|
+ //public string T_RightMenuAnnotHighlight = App.MainPageLoader.GetString("ViewRightMenuSelection_Highlight");
|
|
|
+ //public string T_RightMenuAnnotUnderline = App.MainPageLoader.GetString("ViewRightMenuSelection_Underline");
|
|
|
+ //public string T_RightMenuAnnotStrikethrough = App.MainPageLoader.GetString("ViewRightMenuSelection_Strikethrough");
|
|
|
+ //public string T_RightMenuAnnotText = App.MainPageLoader.GetString("ViewRightMenuSelection_Text");
|
|
|
+ //public string T_RightMenuAnnotNote = App.MainPageLoader.GetString("ViewRightMenuSelection_Note");
|
|
|
|
|
|
+ public string T_RightMenuAnnotCopy = App.MainPageLoader.GetString("ViewRightMenuAnnot_Copy");
|
|
|
+ public string T_RightMenuAnnotCut = App.MainPageLoader.GetString("ViewRightMenuAnnot_Cut");
|
|
|
+ public string T_RightMenuAnnotPaste = App.MainPageLoader.GetString("ViewRightMenuAnnot_Paste");
|
|
|
+ public string T_RightMenuAnnotDelete = App.MainPageLoader.GetString("ViewRightMenuAnnot_Delete");
|
|
|
+ public string T_RightMenuAnnotAddNote = App.MainPageLoader.GetString("ViewRightMenuAnnot_AddNote");
|
|
|
+ public string T_RightMenuAnnotDefault = App.MainPageLoader.GetString("ViewRightMenuAnnot_Default");
|
|
|
+ public string T_RightMenuFreehandAnnotColor = App.MainPageLoader.GetString("ViewRightMenuFreehandAnnot_Color");
|
|
|
+ public string T_RightMenuFreehandAnnotLineStyle = App.MainPageLoader.GetString("ViewRightMenuFreehandAnnot_LineStyle");
|
|
|
+ public string T_RightMenuFreehandAnnotLineStyleSolid = App.MainPageLoader.GetString("ViewRightMenuFreehandAnnotLineStyle_SolidLine");
|
|
|
+ public string T_RightMenuFreehandAnnotLineStyleDotted = App.MainPageLoader.GetString("ViewRightMenuFreehandAnnotLineStyle_DottedLine");
|
|
|
+ public string T_RightMenuFreetextAnnotFontColor = App.MainPageLoader.GetString("ViewRightMenuFreetextAnnot_FontColor");
|
|
|
+ public string T_RightMenuFreetextAnnotFillColor = App.MainPageLoader.GetString("ViewRightMenuFreetextAnnot_FillColor");
|
|
|
+ public string T_RightMenuFreetextAnnotFont = App.MainPageLoader.GetString("ViewRightMenuFreetextAnnot_Font");
|
|
|
+ public string T_RightMenuFreetextAnnotFontCourierNew = App.MainPageLoader.GetString("ViewRightMenuFreetextAnnotFont_CourierNew");
|
|
|
+ public string T_RightMenuFreetextAnnotFontHelvetica = App.MainPageLoader.GetString("ViewRightMenuFreetextAnnotFont_Helvetica");
|
|
|
+ public string T_RightMenuFreetextAnnotFontTimesNewRoman = App.MainPageLoader.GetString("ViewRightMenuFreetextAnnotFont_TimesNewRoman");
|
|
|
+ public string T_RightMenuFreetextAnnotTextAlignment = App.MainPageLoader.GetString("ViewRightMenuFreetextAnnot_TextAlignment");
|
|
|
+ public string T_RightMenuFreetextAnnotTextAlignmentAlignLeft = App.MainPageLoader.GetString("ViewRightMenuFreetextAnnotTextAlignment_AlignLeft");
|
|
|
+ public string T_RightMenuFreetextAnnotTextAlignmentAlignCenter = App.MainPageLoader.GetString("ViewRightMenuFreetextAnnotTextAlignment_AlignCenter");
|
|
|
+ public string T_RightMenuFreetextAnnotTextAlignmentAlignRight = App.MainPageLoader.GetString("ViewRightMenuFreetextAnnotTextAlignment_AlignRight");
|
|
|
+ public string T_RightMenuFreetextAnnotTextAlignmentFullyJustified = App.MainPageLoader.GetString("ViewRightMenuFreetextAnnotTextAlignment_FullyJustified");
|
|
|
+ public string T_RightMenuStickyNoteAnnotColor = App.MainPageLoader.GetString("ViewRightMenuStickyNoteAnnot_Color");
|
|
|
+ public string T_RightMenuStickyNoteAnnotEdit = App.MainPageLoader.GetString("ViewRightMenuStickyNoteAnnot_Edit");
|
|
|
+ public string T_RightMenuSharpsNoteAnnotColor = App.MainPageLoader.GetString("ViewRightMenuSharpsAnnot_Color");
|
|
|
+ public string T_RightMenuSharpsNoteAnnotLineStyleSolidline = App.MainPageLoader.GetString("ViewRightMenuSharpsAnnotLineStyle_SolidLine");
|
|
|
+ public string T_RightMenuSharpsNoteAnnotLineStyleDottedLine = App.MainPageLoader.GetString("ViewRightMenuSharpsAnnotLineStyle_DottedLine");
|
|
|
+ public string T_RightMenuSharpsNoteAnnotLineStyle = App.MainPageLoader.GetString("ViewRightMenuSharpsAnnot_LineStyle");
|
|
|
+ public string T_RightMenuSharpsNoteAnnotDirection = App.MainPageLoader.GetString("ViewRightMenuSharpsAnnot_Direction");
|
|
|
+ public string T_RightMenuSharpsNoteAnnotDirectionVertical = App.MainPageLoader.GetString("ViewRightMenuSharpsAnnotDirection_Vertical");
|
|
|
+ public string T_RightMenuSharpsNoteAnnotDirectionHorizontal = App.MainPageLoader.GetString("ViewRightMenuSharpsAnnotDirection_Horizontal");
|
|
|
+ public string T_RightMenuSharpsNoteAnnotBorderColor = App.MainPageLoader.GetString("ViewRightMenuSharpsAnnot_BorderColor");
|
|
|
+ public string T_RightMenuSharpsNoteAnnotFillColor = App.MainPageLoader.GetString("ViewRightMenuSharpsAnnot_FillColor");
|
|
|
+ public string T_RightMenuStampNoteAnnotExport = App.MainPageLoader.GetString("ViewRightMenuStampAnnot_Export");
|
|
|
+ public string T_RightMenuStampNoteAnnotExportPNG = App.MainPageLoader.GetString("ViewRightMenuStampAnnotExport_PNG");
|
|
|
+ public string T_RightMenuStampNoteAnnotExportPDF = App.MainPageLoader.GetString("ViewRightMenuStampAnnotExport_PDF");
|
|
|
+ public string T_RightMenuTextNoteAnnotCopyText = App.MainPageLoader.GetString("ViewRightMenuTextAnnot_CopyText");
|
|
|
+ public string T_RightMenuTextNoteAnnotDelete = App.MainPageLoader.GetString("ViewRightMenuTextAnnot_Delete");
|
|
|
#endregion 注释-右键菜单文案
|
|
|
|
|
|
private ColorMenuItem colorContent;
|
|
@@ -533,24 +570,24 @@ namespace PDF_Master.ViewModels.Tools
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "hightCopyText";
|
|
|
- menuItem.Header = "复制文本";
|
|
|
+ menuItem.Header = T_RightMenuTextNoteAnnotCopyText;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), HightAnnotCopyText_MenuCommand);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "hightdelete";
|
|
|
- menuItem.Header = "删除";
|
|
|
+ menuItem.Header = T_RightMenuTextNoteAnnotDelete;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), ApplicationCommands.Delete);
|
|
|
|
|
|
pop.AddItem(GetSeparator());
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "hightAddNote";
|
|
|
- menuItem.Header = "添加笔记";
|
|
|
+ menuItem.Header = T_RightMenuAnnotAddNote;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), AnnotAddNoteText_MenuCommand);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "hightdefault";
|
|
|
- menuItem.Header = "设置当前属性为默认值";
|
|
|
+ menuItem.Header = T_RightMenuAnnotDefault;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), AnnotDefaultValue_MenuCommand);
|
|
|
HightAnnotPopMenu = pop;
|
|
|
}
|
|
@@ -647,42 +684,42 @@ namespace PDF_Master.ViewModels.Tools
|
|
|
PopMenu pop = new PopMenu(popMenu);
|
|
|
var menuItem = new MenuItem();
|
|
|
menuItem.Name = "FreeHandCopy";
|
|
|
- menuItem.Header = "复制";
|
|
|
+ menuItem.Header = T_RightMenuAnnotCopy;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), ApplicationCommands.Copy);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "FreeHandCut";
|
|
|
- menuItem.Header = "剪切";
|
|
|
+ menuItem.Header = T_RightMenuAnnotCopy;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), ApplicationCommands.Cut);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "FreeHandPaste";
|
|
|
- menuItem.Header = "粘贴";
|
|
|
+ menuItem.Header = T_RightMenuAnnotPaste;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), ApplicationCommands.Paste);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "FreeHandDelete";
|
|
|
- menuItem.Header = "删除";
|
|
|
+ menuItem.Header = T_RightMenuAnnotDelete;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), ApplicationCommands.Delete);
|
|
|
|
|
|
pop.AddItem(GetSeparator());
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "FreeHandColor";
|
|
|
- menuItem.Header = "边框颜色";
|
|
|
+ menuItem.Header = T_RightMenuFreehandAnnotColor;
|
|
|
menuItem.Tag = "Color";
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), AnnotColorPalette_MenuCommand);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "FreeHandLineStyle";
|
|
|
- menuItem.Header = "线段样式";
|
|
|
+ menuItem.Header = T_RightMenuFreehandAnnotLineStyle;
|
|
|
pop.AddItem(menuItem);
|
|
|
|
|
|
RadioButton radioButton = new RadioButton();
|
|
|
radioButton.Style = App.Current.Resources["MenuRadioBtnStyle"] as Style;
|
|
|
radioButton.Background = new SolidColorBrush(Colors.Transparent);
|
|
|
radioButton.Name = "FreeHandSolid";
|
|
|
- radioButton.Content = "实线";
|
|
|
+ radioButton.Content = T_RightMenuFreehandAnnotLineStyleSolid;
|
|
|
radioButton.GroupName = "LineStyle";
|
|
|
radioButton.Tag = "Solid";
|
|
|
pop.BindingEvent(pop.AddChild("FreeHandLineStyle", radioButton), FreeHandLineStyle_MenuCommand);
|
|
@@ -691,19 +728,19 @@ namespace PDF_Master.ViewModels.Tools
|
|
|
radioButton.Style = App.Current.Resources["MenuRadioBtnStyle"] as Style;
|
|
|
radioButton.Background = new SolidColorBrush(Colors.Transparent);
|
|
|
radioButton.Name = "FreeHandDash";
|
|
|
- radioButton.Content = "虚线";
|
|
|
+ radioButton.Content = T_RightMenuFreehandAnnotLineStyleDotted;
|
|
|
radioButton.GroupName = "LineStyle";
|
|
|
radioButton.Tag = "Dash";
|
|
|
pop.BindingEvent(pop.AddChild("FreeHandLineStyle", radioButton), FreeHandLineStyle_MenuCommand);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "FreeHandAddNote";
|
|
|
- menuItem.Header = "添加笔记";
|
|
|
+ menuItem.Header = T_RightMenuAnnotAddNote;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), AnnotAddNoteText_MenuCommand);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "FreeHandDefault";
|
|
|
- menuItem.Header = "设置当前属性为默认值";
|
|
|
+ menuItem.Header = T_RightMenuAnnotDefault;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), AnnotDefaultValue_MenuCommand);
|
|
|
FreeHandAnnotPopMenu = pop;
|
|
|
}
|
|
@@ -717,41 +754,41 @@ namespace PDF_Master.ViewModels.Tools
|
|
|
PopMenu pop = new PopMenu(popMenu);
|
|
|
var menuItem = new MenuItem();
|
|
|
menuItem.Name = "FreeTextCopy";
|
|
|
- menuItem.Header = "复制";
|
|
|
+ menuItem.Header = T_RightMenuAnnotCopy;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), ApplicationCommands.Copy);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "FreeTextCut";
|
|
|
- menuItem.Header = "剪切";
|
|
|
+ menuItem.Header = T_RightMenuAnnotCut;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), ApplicationCommands.Cut);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "FreeTextPaste";
|
|
|
- menuItem.Header = "粘贴";
|
|
|
+ menuItem.Header = T_RightMenuAnnotPaste;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), ApplicationCommands.Paste);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "FreeTextDelete";
|
|
|
- menuItem.Header = "删除";
|
|
|
+ menuItem.Header = T_RightMenuAnnotDelete;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), ApplicationCommands.Delete);
|
|
|
|
|
|
pop.AddItem(GetSeparator());
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "FreeTextColor";
|
|
|
- menuItem.Header = "字体颜色";
|
|
|
+ menuItem.Header = T_RightMenuFreetextAnnotFontColor;
|
|
|
menuItem.Tag = "FontColor";
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), AnnotColorPalette_MenuCommand);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "FreeTextFillColor";
|
|
|
- menuItem.Header = "填充颜色";
|
|
|
+ menuItem.Header = T_RightMenuFreetextAnnotFillColor;
|
|
|
menuItem.Tag = "FillColor";
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), AnnotColorPalette_MenuCommand);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "FreeTextFontFamily";
|
|
|
- menuItem.Header = "字体";
|
|
|
+ menuItem.Header = T_RightMenuFreetextAnnotFont;
|
|
|
pop.AddItem(menuItem);
|
|
|
|
|
|
var family = TextFont.GetFamily();
|
|
@@ -770,7 +807,7 @@ namespace PDF_Master.ViewModels.Tools
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "FreeTextAglin";
|
|
|
- menuItem.Header = "文本对齐";
|
|
|
+ menuItem.Header = T_RightMenuFreetextAnnotTextAlignment;
|
|
|
pop.AddItem(menuItem);
|
|
|
|
|
|
var radioButton = new RadioButton();
|
|
@@ -779,7 +816,7 @@ namespace PDF_Master.ViewModels.Tools
|
|
|
radioButton.Name = "FreeTextAglinLeft";
|
|
|
radioButton.Tag = "Left";
|
|
|
radioButton.GroupName = "Aglin";
|
|
|
- radioButton.Content = "左对齐";
|
|
|
+ radioButton.Content = T_RightMenuFreetextAnnotTextAlignmentAlignLeft;
|
|
|
pop.BindingEvent(pop.AddChild("FreeTextAglin", radioButton), FreeTextAglin_MenuCommand);
|
|
|
|
|
|
radioButton = new RadioButton();
|
|
@@ -788,7 +825,7 @@ namespace PDF_Master.ViewModels.Tools
|
|
|
radioButton.Name = "FreeTextAglinCenter";
|
|
|
radioButton.Tag = "Center";
|
|
|
radioButton.GroupName = "Aglin";
|
|
|
- radioButton.Content = "居中对齐";
|
|
|
+ radioButton.Content = T_RightMenuFreetextAnnotTextAlignmentAlignCenter;
|
|
|
pop.BindingEvent(pop.AddChild("FreeTextAglin", radioButton), FreeTextAglin_MenuCommand);
|
|
|
|
|
|
radioButton = new RadioButton();
|
|
@@ -797,7 +834,7 @@ namespace PDF_Master.ViewModels.Tools
|
|
|
radioButton.Name = "FreeTextAglinRight";
|
|
|
radioButton.Tag = "Right";
|
|
|
radioButton.GroupName = "Aglin";
|
|
|
- radioButton.Content = "右对齐";
|
|
|
+ radioButton.Content = T_RightMenuFreetextAnnotTextAlignmentAlignRight;
|
|
|
pop.BindingEvent(pop.AddChild("FreeTextAglin", radioButton), FreeTextAglin_MenuCommand);
|
|
|
|
|
|
radioButton = new RadioButton();
|
|
@@ -806,12 +843,12 @@ namespace PDF_Master.ViewModels.Tools
|
|
|
radioButton.Name = "FreeTextAglinJustify";
|
|
|
radioButton.Tag = "Justify";
|
|
|
radioButton.GroupName = "Aglin";
|
|
|
- radioButton.Content = "两端对齐";
|
|
|
+ radioButton.Content = T_RightMenuFreetextAnnotTextAlignmentFullyJustified;
|
|
|
//pop.BindingEvent(pop.AddChild("FreeTextAglin", radioButton), FreeTextAglin_MenuCommand);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "FreeHandDefault";
|
|
|
- menuItem.Header = "设置当前属性为默认值";
|
|
|
+ menuItem.Header = T_RightMenuAnnotDefault;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), AnnotDefaultValue_MenuCommand);
|
|
|
FreeTextAnnotPopMenu = pop;
|
|
|
}
|
|
@@ -825,38 +862,38 @@ namespace PDF_Master.ViewModels.Tools
|
|
|
PopMenu pop = new PopMenu(popMenu);
|
|
|
var menuItem = new MenuItem();
|
|
|
menuItem.Name = "StrickNoteCopy";
|
|
|
- menuItem.Header = "复制";
|
|
|
+ menuItem.Header = T_RightMenuAnnotCopy;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), ApplicationCommands.Copy);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "StrickNoteCut";
|
|
|
- menuItem.Header = "剪切";
|
|
|
+ menuItem.Header = T_RightMenuAnnotCut;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), ApplicationCommands.Cut);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "StrickNotePaste";
|
|
|
- menuItem.Header = "粘贴";
|
|
|
+ menuItem.Header = T_RightMenuAnnotPaste;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), ApplicationCommands.Paste);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "StrickNoteDelete";
|
|
|
- menuItem.Header = "删除";
|
|
|
+ menuItem.Header = T_RightMenuAnnotDelete;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), ApplicationCommands.Delete);
|
|
|
|
|
|
pop.AddItem(GetSeparator());
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "StrickNoteColor";
|
|
|
- menuItem.Header = "颜色";
|
|
|
+ menuItem.Header = T_RightMenuStickyNoteAnnotColor;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), AnnotColorPalette_MenuCommand);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "StrickNoteEdit";
|
|
|
- menuItem.Header = "编辑便签";
|
|
|
+ menuItem.Header = T_RightMenuStickyNoteAnnotEdit;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), StrikeNoteEditStrike_MenuCommand);
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "StrickNoteDefault";
|
|
|
- menuItem.Header = "设置当前属性为默认值";
|
|
|
+ menuItem.Header = T_RightMenuAnnotDefault;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), AnnotDefaultValue_MenuCommand);
|
|
|
StrickNoteAnnotPopMenu = pop;
|
|
|
}
|
|
@@ -870,48 +907,48 @@ namespace PDF_Master.ViewModels.Tools
|
|
|
PopMenu pop = new PopMenu(popMenu);
|
|
|
var menuItem = new MenuItem();
|
|
|
menuItem.Name = "ShapeCopy";
|
|
|
- menuItem.Header = "复制";
|
|
|
+ menuItem.Header = T_RightMenuAnnotCopy;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), ApplicationCommands.Copy);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "ShapeCut";
|
|
|
- menuItem.Header = "剪切";
|
|
|
+ menuItem.Header = T_RightMenuAnnotCut;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), ApplicationCommands.Cut);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "ShapePaste";
|
|
|
- menuItem.Header = "粘贴";
|
|
|
+ menuItem.Header = T_RightMenuAnnotPaste;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), ApplicationCommands.Paste);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "ShapeDelete";
|
|
|
- menuItem.Header = "删除";
|
|
|
+ menuItem.Header = T_RightMenuAnnotDelete;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), ApplicationCommands.Delete);
|
|
|
|
|
|
pop.AddItem(GetSeparator());
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "ShapeColor";
|
|
|
- menuItem.Header = "边框颜色";
|
|
|
+ menuItem.Header = T_RightMenuSharpsNoteAnnotBorderColor;
|
|
|
menuItem.Tag = "Color";
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), AnnotColorPalette_MenuCommand);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "ShapeFillColor";
|
|
|
- menuItem.Header = "填充颜色";
|
|
|
+ menuItem.Header = T_RightMenuSharpsNoteAnnotFillColor;
|
|
|
menuItem.Tag = "FillColor";
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), AnnotColorPalette_MenuCommand);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "ShapeLineStyle";
|
|
|
- menuItem.Header = "线段样式";
|
|
|
+ menuItem.Header = T_RightMenuSharpsNoteAnnotLineStyle;
|
|
|
pop.AddItem(menuItem);
|
|
|
|
|
|
RadioButton radioButton = new RadioButton();
|
|
|
radioButton.Style = App.Current.Resources["MenuRadioBtnStyle"] as Style;
|
|
|
radioButton.Background = new SolidColorBrush(Colors.Transparent);
|
|
|
radioButton.Name = "ShapeSolid";
|
|
|
- radioButton.Content = "实线";
|
|
|
+ radioButton.Content = T_RightMenuSharpsNoteAnnotLineStyleSolidline;
|
|
|
radioButton.GroupName = "LineStyle";
|
|
|
radioButton.Tag = "Solid";
|
|
|
pop.BindingEvent(pop.AddChild("ShapeLineStyle", radioButton), ShapeLineStyle_MenuCommand);
|
|
@@ -920,36 +957,36 @@ namespace PDF_Master.ViewModels.Tools
|
|
|
radioButton.Style = App.Current.Resources["MenuRadioBtnStyle"] as Style;
|
|
|
radioButton.Background = new SolidColorBrush(Colors.Transparent);
|
|
|
radioButton.Name = "ShapeDash";
|
|
|
- radioButton.Content = "虚线";
|
|
|
+ radioButton.Content = T_RightMenuSharpsNoteAnnotLineStyleDottedLine;
|
|
|
radioButton.GroupName = "LineStyle";
|
|
|
radioButton.Tag = "Dash";
|
|
|
pop.BindingEvent(pop.AddChild("ShapeLineStyle", radioButton), ShapeLineStyle_MenuCommand);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "ShapeDirect";
|
|
|
- menuItem.Header = "线段方向";
|
|
|
+ menuItem.Header = T_RightMenuSharpsNoteAnnotDirection;
|
|
|
pop.AddItem(menuItem);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "ShapeVer";
|
|
|
- menuItem.Header = "垂直";
|
|
|
+ menuItem.Header = T_RightMenuSharpsNoteAnnotDirectionVertical;
|
|
|
menuItem.Tag = "Ver";
|
|
|
pop.BindingEvent(pop.AddChild("ShapeDirect", menuItem), ShapeLineDirect_MenuCommand);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "ShapeHor";
|
|
|
- menuItem.Header = "横向";
|
|
|
+ menuItem.Header = T_RightMenuSharpsNoteAnnotDirectionHorizontal;
|
|
|
menuItem.Tag = "Hor";
|
|
|
pop.BindingEvent(pop.AddChild("ShapeDirect", menuItem), ShapeLineDirect_MenuCommand);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "ShapeNoteText";
|
|
|
- menuItem.Header = "添加笔记";
|
|
|
+ menuItem.Header = T_RightMenuAnnotAddNote;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), AnnotAddNoteText_MenuCommand);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "ShapeDefault";
|
|
|
- menuItem.Header = "设置当前属性为默认值";
|
|
|
+ menuItem.Header = T_RightMenuAnnotDefault;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), AnnotDefaultValue_MenuCommand);
|
|
|
ShapeAnnotPopMenu = pop;
|
|
|
}
|
|
@@ -963,22 +1000,22 @@ namespace PDF_Master.ViewModels.Tools
|
|
|
PopMenu pop = new PopMenu(popMenu);
|
|
|
var menuItem = new MenuItem();
|
|
|
menuItem.Name = "LinkCopy";
|
|
|
- menuItem.Header = "复制";
|
|
|
+ menuItem.Header = T_RightMenuAnnotCopy;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), ApplicationCommands.Copy);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "LinkCut";
|
|
|
- menuItem.Header = "剪切";
|
|
|
+ menuItem.Header = T_RightMenuAnnotCut;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), ApplicationCommands.Cut);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "LinkPaste";
|
|
|
- menuItem.Header = "粘贴";
|
|
|
+ menuItem.Header = T_RightMenuAnnotPaste;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), ApplicationCommands.Paste);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "LinkDelete";
|
|
|
- menuItem.Header = "删除";
|
|
|
+ menuItem.Header = T_RightMenuAnnotDelete;
|
|
|
//pop.BindingEvent(pop.AddItem(menuItem), Link_MenuCommand);
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), ApplicationCommands.Delete);
|
|
|
LinkAnnotPopMenu = pop;
|
|
@@ -993,34 +1030,34 @@ namespace PDF_Master.ViewModels.Tools
|
|
|
PopMenu pop = new PopMenu(popMenu);
|
|
|
var menuItem = new MenuItem();
|
|
|
menuItem.Name = "StampCopy";
|
|
|
- menuItem.Header = "复制";
|
|
|
+ menuItem.Header = T_RightMenuAnnotCopy;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), ApplicationCommands.Copy);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "StampCut";
|
|
|
- menuItem.Header = "剪切";
|
|
|
+ menuItem.Header = T_RightMenuAnnotCut;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), ApplicationCommands.Cut);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "StampPaste";
|
|
|
- menuItem.Header = "粘贴";
|
|
|
+ menuItem.Header = T_RightMenuAnnotPaste;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), ApplicationCommands.Paste);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "StampDelete";
|
|
|
- menuItem.Header = "删除";
|
|
|
+ menuItem.Header = T_RightMenuAnnotDelete;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), ApplicationCommands.Delete);
|
|
|
|
|
|
pop.AddItem(GetSeparator());
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "StampExportPicture";
|
|
|
- menuItem.Header = "导出";
|
|
|
+ menuItem.Header = T_RightMenuStampNoteAnnotExport;
|
|
|
pop.AddItem(menuItem);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "StampExportPNG";
|
|
|
- menuItem.Header = "PNG";
|
|
|
+ menuItem.Header = T_RightMenuStampNoteAnnotExportPNG;
|
|
|
menuItem.Tag = "PNG";
|
|
|
pop.BindingEvent(pop.AddChild("StampExportPicture", menuItem), StampExportPicture_MenuCommand);
|
|
|
|
|
@@ -1033,13 +1070,13 @@ namespace PDF_Master.ViewModels.Tools
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "StampExportPDF";
|
|
|
- menuItem.Header = "PDF";
|
|
|
+ menuItem.Header = T_RightMenuStampNoteAnnotExportPDF;
|
|
|
menuItem.Tag = "PDF";
|
|
|
pop.BindingEvent(pop.AddChild("StampExportPicture", menuItem), StampExportPicture_MenuCommand);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "StampAddNote";
|
|
|
- menuItem.Header = "添加笔记";
|
|
|
+ menuItem.Header = T_RightMenuAnnotAddNote;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), AnnotAddNoteText_MenuCommand);
|
|
|
|
|
|
StampAnnotPopMenu = pop;
|
|
@@ -1054,17 +1091,17 @@ namespace PDF_Master.ViewModels.Tools
|
|
|
PopMenu pop = new PopMenu(popMenu);
|
|
|
var menuItem = new MenuItem();
|
|
|
menuItem.Name = "MultiCopy";
|
|
|
- menuItem.Header = "复制";
|
|
|
+ menuItem.Header = T_RightMenuAnnotCopy;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), ApplicationCommands.Copy);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "MultiCut";
|
|
|
- menuItem.Header = "剪切";
|
|
|
+ menuItem.Header = T_RightMenuAnnotCut;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), ApplicationCommands.Cut);
|
|
|
|
|
|
menuItem = new MenuItem();
|
|
|
menuItem.Name = "MultiDelete";
|
|
|
- menuItem.Header = "删除";
|
|
|
+ menuItem.Header = T_RightMenuAnnotDelete;
|
|
|
pop.BindingEvent(pop.AddItem(menuItem), ApplicationCommands.Delete);
|
|
|
MultiAnnotPopMenu = pop;
|
|
|
}
|