From 22347e2a45e7ee6d76f33b64f65fe49ab1cf0e7d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 15 Jun 2014 18:00:33 +0000 Subject: removed support for mathmodule & speech git-svn-id: http://svn.miranda-ng.org/main/trunk@9507 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/HistoryPlusPlus/hpp_options.pas | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) (limited to 'plugins/HistoryPlusPlus/hpp_options.pas') diff --git a/plugins/HistoryPlusPlus/hpp_options.pas b/plugins/HistoryPlusPlus/hpp_options.pas index 15f78b5e70..155dd17925 100644 --- a/plugins/HistoryPlusPlus/hpp_options.pas +++ b/plugins/HistoryPlusPlus/hpp_options.pas @@ -158,7 +158,7 @@ const (_type: [hppFont,hppColor]; name: 'Incoming url'; Mes: [mtUrl,mtIncoming]; style:0; size: -11; color: $000000; back: $F4D9CC), - + (_type: [hppFont,hppColor]; name: 'Outgoing url'; Mes: [mtUrl,mtOutgoing]; style:0; size: -11; color: $000000; back: $F4D9CC), @@ -229,8 +229,6 @@ const var GridOptions: TGridOptions; SmileyAddEnabled: Boolean; - MathModuleEnabled: Boolean; - MeSpeakEnabled: Boolean; ShowHistoryCount: Boolean; hppIcons: array of ThppIntIconsRec; skinIcons: array of ThppIntIconsRec; @@ -262,9 +260,6 @@ const (Index: 5; Filter:'Unicode text file'; DefaultExt:'*.txt'; Owned:[sfUnicode,sfText]; OwnedIndex: 1), (Index: 6; Filter:'Text file'; DefaultExt:'*.txt'; Owned:[sfUnicode,sfText]; OwnedIndex: 2)); -{$include m_mathmodule.inc} -{$include m_speak.inc} - procedure RegisterFont(Name:PAnsiChar; Order:integer; const defFont:TFontSettings); var fid: TFontID; @@ -448,7 +443,6 @@ begin GridOptions.SmileysEnabled := GetDBBool(hppDBName, 'Smileys', SmileyAddEnabled); GridOptions.BBCodesEnabled := GetDBBool(hppDBName, 'BBCodes', true); - GridOptions.MathModuleEnabled := GetDBBool(hppDBName, 'MathModule', MathModuleEnabled); GridOptions.RawRTFEnabled := GetDBBool(hppDBName, 'RawRTF', true); GridOptions.AvatarsHistoryEnabled := GetDBBool(hppDBName, 'AvatarsHistory', true); @@ -480,7 +474,6 @@ begin WriteDBBool(hppDBName, 'BBCodes', GridOptions.BBCodesEnabled); WriteDBBool(hppDBName, 'Smileys', GridOptions.SmileysEnabled); - WriteDBBool(hppDBName, 'MathModule', GridOptions.MathModuleEnabled); WriteDBBool(hppDBName, 'RawRTF', GridOptions.RawRTFEnabled); WriteDBBool(hppDBName, 'AvatarsHistory', GridOptions.AvatarsHistoryEnabled); @@ -611,21 +604,9 @@ begin hppFontItems[i].back { TRANSLATE-IGNORE } ); end; end; + // Register in SmileyAdd SmileyAddEnabled := boolean(ServiceExists(MS_SMILEYADD_REPLACESMILEYS)); - { if SmileyAddEnabled then begin - ZeroMemory(@sarc,SizeOf(sarc)); - sarc.cbSize := SizeOf(sarc); - sarc.name := hppName; - sarc.dispname := hppName; - CallService(MS_SMILEYADD_REGISTERCATEGORY,0,LPARAM(@sarc)); - end; } - // Register in MathModule - MathModuleEnabled := boolean(ServiceExists(MATH_RTF_REPLACE_FORMULAE)); - - // Checking presence of speech api - MeSpeakEnabled := boolean(ServiceExists(MS_SPEAK_SAY_W)) or - boolean(ServiceExists(MS_SPEAK_SAY_A)); end; procedure PrepareSaveDialog(SaveDialog: TSaveDialog; SaveFormat: TSaveFormat; AllFormats: boolean = false); -- cgit v1.2.3