FileName: string;
NewReceiveNo: Integer;
Res: TResRec;
+
+ UserOptionalStyle: string;
SkinHeaderFileName: string;
SkinNewResFileName: string;
SkinResFileName: string;
SkinFooterFileName: string;
SkinBookmarkFileName: string;
SkinNewmarkFileName: string;
+ SkinHeader: string;
SkinNewRes: string;
SkinRes: string;
SizeByte: Integer;
doc.open;
doc.charset := 'Shift_JIS';
+ // \83t\83H\83\93\83g\82â\83T\83C\83Y\82Ì\90Ý\92è
+ if Length( GikoSys.Setting.BrowserFontName ) > 0 then
+ UserOptionalStyle := UserOptionalStyle +
+ 'font-family:' + GikoSys.Setting.BrowserFontName + ';';
+ if GikoSys.Setting.BrowserFontSize <> 0 then
+ UserOptionalStyle := UserOptionalStyle +
+ 'font-size:' + IntToStr( GikoSys.Setting.BrowserFontSize ) + 'pt;';
+ if GikoSys.Setting.BrowserFontColor <> -1 then
+ UserOptionalStyle := UserOptionalStyle +
+ 'color:#' + IntToHex( GikoSys.Setting.BrowserFontColor, 4 ) + ';';
+ if GikoSys.Setting.BrowserBackColor <> -1 then
+ UserOptionalStyle := UserOptionalStyle +
+ 'background-color:#' + IntToHex( GikoSys.Setting.BrowserBackColor, 4 ) + ';';
+ case GikoSys.Setting.BrowserFontBold of
+ -1: UserOptionalStyle := UserOptionalStyle + 'font-weight:normal;';
+ 1: UserOptionalStyle := UserOptionalStyle + 'font-weight:bold;';
+ end;
+ case GikoSys.Setting.BrowserFontItalic of
+ -1: UserOptionalStyle := UserOptionalStyle + 'font-style:normal;';
+ 1: UserOptionalStyle := UserOptionalStyle + 'font-style:italic;';
+ end;
+
CSSFileName := GetStyleSheetDir + Setting.CSSFileName;
SkinHeaderFileName := Setting.CSSFileName + SKIN_HEADER_FILE_NAME;
SkinNewResFileName := Setting.CSSFileName + SKIN_NEWRES_FILE_NAME;
// \83X\83L\83\93\82Ì\90Ý\92è
try
- SaveList.Add( LoadSkin( SkinHeaderFileName ) );
+ SkinHeader := LoadSkin( SkinHeaderFileName );
+ if Length( UserOptionalStyle ) > 0 then
+ SkinHeader := StringReplace( SkinHeader, '</head>',
+ '<style type="text/css">body {' + UserOptionalStyle + '}</style></head>', [rfReplaceAll] );
+ SaveList.Add( SkinHeader );
+ except
+ end;
+ try
SkinNewRes := LoadSkin( SkinNewResFileName );
+ except
+ end;
+ try
SkinRes := LoadSkin( SkinResFileName );
except
end;
SaveList.Add('<meta http-equiv="Content-type" content="text/html; charset=Shift_JIS">');
SaveList.Add('<title>' + sTitle + '</title>');
SaveList.Add('<link rel="stylesheet" href="'+CSSFileName+'" type="text/css">');
+ if Length( UserOptionalStyle ) > 0 then
+ SaveList.Add('<style type="text/css">body {' + UserOptionalStyle + '}</style>');
SaveList.Add('</head>');
SaveList.Add('<body>');
SaveList.Add('<a name="top"></a>');
FListBackColor: TColor;
//\83u\83\89\83E\83U
- //FBrowserFontColor: TColor;
- //FBrowserBackColor: TColor;
- //FBrowserFontSize: Integer;
+ FBrowserFontName: string; // ''...default
+ FBrowserFontSize: Integer; // 0...default
+ FBrowserFontBold: Integer; // 0...default, -1...False, 1...True
+ FBrowserFontItalic: Integer; // \8fã\82É\93¯\82¶
+ FBrowserFontColor: Integer; // -1...default
+ FBrowserBackColor: Integer; // \8fã\82É\93¯\82¶
//\83G\83f\83B\83^
FEditorFontName: string;
FHintFontColor: TColor;
FHintBackColor: TColor;
+
//\83E\83B\83\93\83h\83E\83T\83C\83Y
FWindowTop: Integer;
FWindowLeft: Integer;
FTimeAdjustSec: Integer;
FTimeAdjust: Boolean;
- //\82 \82Ú\81`\82ñ
- FAbonDeleterlo : Boolean; //&rlo;\82ð\8dí\82é\82©
- FAbonReplaceul : Boolean; //<ul>\83^\83O\82ð<br>\83^\83O\82É\92u\8a·\82·\82é\82©
- FPopUpAbon : Boolean; //\83\8c\83X\83|\83b\83v\83A\83b\83v\8e\9e\82Ì\82 \82Ú\81`\82ñ\97L\8cø
+ //\82 \82Ú\81`\82ñ
+ FAbonDeleterlo : Boolean; //&rlo;\82ð\8dí\82é\82©
+ FAbonReplaceul : Boolean; //<ul>\83^\83O\82ð<br>\83^\83O\82É\92u\8a·\82·\82é\82©
+ FPopUpAbon : Boolean; //\83\8c\83X\83|\83b\83v\83A\83b\83v\8e\9e\82Ì\82 \82Ú\81`\82ñ\97L\8cø
// \83X\83\8c\83b\83h\8di\8d\9e\83t\83B\81[\83\8b\83h\82Ì\95\9d
FSelectComboBoxWidth : Integer;
property ListFontColor: TColor read FListFontColor write FListFontColor;
property ListBackColor: TColor read FListBackColor write FListBackColor;
-// property BrowserFontColor: TColor read FBrowserFontColor write FBrowserFontColor;
-// property BrowserBackColor: TColor read FBrowserBackColor write FBrowserBackColor;
-// property BrowserFontSize: Integer read FBrowserFontSize write FBrowserFontSize;
+ property BrowserFontName: string read FBrowserFontName write FBrowserFontName;
+ property BrowserFontSize: Integer read FBrowserFontSize write FBrowserFontSize;
+ property BrowserFontBold: Integer read FBrowserFontBold write FBrowserFontBold;
+ property BrowserFontItalic: Integer read FBrowserFontItalic write FBrowserFontItalic;
+ property BrowserFontColor: Integer read FBrowserFontColor write FBrowserFontColor;
+ property BrowserBackColor: Integer read FBrowserBackColor write FBrowserBackColor;
property EditorFontName: string read FEditorFontName write FEditorFontName;
property EditorFontSize: Integer read FEditorFontSize write FEditorFontSize;
property TimeAdjustSec: Integer read FTimeAdjustSec write FTimeAdjustSec;
property TimeAdjust: Boolean read FTimeAdjust write FTimeAdjust;
- //\82 \82Ú\81`\82ñ
- property AbonDeleterlo : Boolean read FAbonDeleterlo write FAbonDeleterlo;
- property AbonReplaceul : Boolean read FAbonReplaceul write FAbonReplaceul;
- property PopUpAbon : Boolean read FPopUpAbon write FPopUpAbon;
+ //\82 \82Ú\81`\82ñ
+ property AbonDeleterlo : Boolean read FAbonDeleterlo write FAbonDeleterlo;
+ property AbonReplaceul : Boolean read FAbonReplaceul write FAbonReplaceul;
+ property PopUpAbon : Boolean read FPopUpAbon write FPopUpAbon;
// \83X\83\8c\83b\83h\8di\8d\9e\83t\83B\81[\83\8b\83h\82Ì\95\9d
property SelectComboBoxWidth : Integer read FSelectComboBoxWidth write FSelectComboBoxWidth;
FWriteProxyUserID := ini.ReadString('WriteProxy', 'UserID', '');
FWriteProxyPassword := ini.ReadString('WriteProxy', 'Password', '');
+ FBrowserFontName := ini.ReadString('Window', 'BrowserFontName', '');
+ FBrowserFontSize := ini.ReadInteger('Window', 'BrowserFontSize', 0);
+ FBrowserFontBold := ini.ReadInteger('Window', 'BrowserFontBold', 0);
+ FBrowserFontItalic := ini.ReadInteger('Window', 'BrowserFontItalic', 0);
+ FBrowserFontColor := ini.ReadInteger('Window', 'BrowserFontColor', -1);
+ FBrowserBackColor := ini.ReadInteger('Window', 'BrowserBackColor', -1);
+
FCabinetFontName := ini.ReadString('Window', 'CabinetFontName', DEFAULT_FONT_NAME);
FCabinetFontSize := ini.ReadInteger('Window', 'CabinetFontSize', DEFAULT_FONT_SIZE);
FCabinetFontBold := ini.ReadBool('Window', 'CabinetFontBold', False);
ini.WriteString('WriteProxy', 'UserID', FWriteProxyUserID);
ini.WriteString('WriteProxy', 'Password', FWriteProxyPassword);
+ ini.WriteString('Window', 'BrowserFontName', FBrowserFontName);
+ ini.WriteInteger('Window', 'BrowserFontSize', FBrowserFontSize);
+ ini.WriteInteger('Window', 'BrowserFontSize', FBrowserFontSize);
+ ini.WriteInteger('Window', 'BrowserFontBold', FBrowserFontBold);
+ ini.WriteInteger('Window', 'BrowserFontItalic', FBrowserFontItalic);
+ ini.WriteInteger('Window', 'BrowserFontColor', FBrowserFontColor);
+ ini.WriteInteger('Window', 'BrowserBackColor', FBrowserBackColor);
+
ini.WriteString('Window', 'CabinetFontName', FCabinetFontName);
ini.WriteInteger('Window', 'CabinetFontSize', FCabinetFontSize);
ini.WriteString('Window', 'CabinetFontColor', ColorToString(FCabinetFontColor));
ini.WriteBool('BrowserCoolBar', 'Break' + IntToStr(i), CoolSet.FCoolBreak);
end;
- //\82 \82Ú\81`\82ñ
- ini.WriteBool('Abon','Deleterlo',FAbonDeleterlo);
- ini.WriteBool('Abon','Replaceul',FAbonReplaceul);
- ini.WriteBool('abon','Popup',FPopUpAbon);
+ //\82 \82Ú\81`\82ñ
+ ini.WriteBool('Abon','Deleterlo',FAbonDeleterlo);
+ ini.WriteBool('Abon','Replaceul',FAbonReplaceul);
+ ini.WriteBool('abon','Popup',FPopUpAbon);
ini.UpdateFile;
finally