|
@@ -10,11 +10,84 @@ namespace PDFSettings
|
|
|
{
|
|
|
public class PDFEditList
|
|
|
{
|
|
|
- public string mTag { get; set; }
|
|
|
+ public string mTag { get; set; }= "Custom";
|
|
|
public string mTagContent { get; set; }
|
|
|
- public int mFontSize { get; set; }
|
|
|
+ public static int mFontSize1 { get; set; } = 1;
|
|
|
public FontFamily mFontFamily { get; set; }
|
|
|
public FontStyle mFontStyle { get; set; }
|
|
|
public FontWeight mFontWeight { get; set; }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ public struct PresetFontItem
|
|
|
+ {
|
|
|
+ public string mTag;
|
|
|
+ public string mTagContent;
|
|
|
+ public int mFontSize;
|
|
|
+ public int mFontSize1;
|
|
|
+ public FontFamily mFontFamily;
|
|
|
+ public FontStyle mFontStyle;
|
|
|
+ public FontWeight mFontWeight;
|
|
|
+ }
|
|
|
+ public List<PresetFontItem> fontStyleList = new List<PresetFontItem>() {
|
|
|
+ new PresetFontItem() {
|
|
|
+ mTag = "Custom",
|
|
|
+ mTagContent = "PresetTextStyle_Customize",
|
|
|
+ mFontSize = 16,
|
|
|
+ mFontFamily = new FontFamily("Helvetica"),
|
|
|
+ mFontStyle = FontStyles.Normal,
|
|
|
+ mFontWeight = FontWeights.Normal
|
|
|
+ },
|
|
|
+ new PresetFontItem() {
|
|
|
+ mTag = "H1",
|
|
|
+ mTagContent = "PresetTextStyle_H1Title",
|
|
|
+ mFontSize = mFontSize1,
|
|
|
+ mFontFamily = new FontFamily("Helvetica"),
|
|
|
+ mFontStyle = FontStyles.Normal,
|
|
|
+ mFontWeight = FontWeights.Bold
|
|
|
+ },
|
|
|
+ new PresetFontItem() {
|
|
|
+ mTag = "H2",
|
|
|
+ mTagContent = "PresetTextStyle_H2Title",
|
|
|
+ mFontSize = 24,
|
|
|
+ mFontFamily = new FontFamily("Helvetica"),
|
|
|
+ mFontStyle = FontStyles.Normal,
|
|
|
+ mFontWeight = FontWeights.Bold
|
|
|
+ },
|
|
|
+ new PresetFontItem() {
|
|
|
+ mTag = "H3",
|
|
|
+ mTagContent = "PresetTextStyle_H3Title",
|
|
|
+ mFontSize = 18,
|
|
|
+ mFontFamily = new FontFamily("Helvetica"),
|
|
|
+ mFontStyle = FontStyles.Normal,
|
|
|
+ mFontWeight = FontWeights.Bold
|
|
|
+ },
|
|
|
+ new PresetFontItem() {
|
|
|
+ mTag = "B1",
|
|
|
+ mTagContent = "PresetTextStyle_B1NormalTextStandard",
|
|
|
+ mFontSize = 14,
|
|
|
+ mFontFamily = new FontFamily("Helvetica"),
|
|
|
+ mFontStyle = FontStyles.Normal,
|
|
|
+ mFontWeight = FontWeights.Regular
|
|
|
+ },
|
|
|
+ new PresetFontItem() {
|
|
|
+ mTag = "B2",
|
|
|
+ mTagContent = "PresetTextStyle_B2NormalTextSmall",
|
|
|
+ mFontSize = 12,
|
|
|
+ mFontFamily = new FontFamily("Helvetica"),
|
|
|
+ mFontStyle = FontStyles.Normal,
|
|
|
+ mFontWeight = FontWeights.Regular
|
|
|
+ },
|
|
|
+ new PresetFontItem() {
|
|
|
+ mTag = "B3",
|
|
|
+ mTagContent = "PresetTextStyle_B3Description",
|
|
|
+ mFontSize = 11,
|
|
|
+ mFontFamily = new FontFamily("Helvetica"),
|
|
|
+ mFontStyle = FontStyles.Normal,
|
|
|
+ mFontWeight = FontWeights.Regular
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
}
|
|
|
+
|
|
|
}
|