Skip to content

Commit 7103f62

Browse files
15 Sep 2024: ver. 2.3.1
- Built with Delphi 12.2
1 parent 7774c92 commit 7103f62

34 files changed

+512
-211
lines changed

Docs/MarkDown Support Test.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
Markdown support test
2+
=====================
3+
4+
![Markdown logo](markdownlogo.png)
5+
6+
This page is a small demonstration of Markdown support.
7+
8+
From [CommonMark]:
9+
>Markdown is a plain text format for writing structured documents,
10+
>based on conventions for indicating formatting in email and Usenet posts.
11+
>It was developed by John Gruber (with help from Aaron Swartz)
12+
>and released in 2004 in the form of a syntax description and a
13+
>Perl script (Markdown.pl) for converting Markdown to HTML.
14+
>In the next decade, dozens of implementations were developed in many languages.
15+
16+
[CommonMark]:http://spec.commonmark.org/0.28/
17+
18+
*Italic* or _Italic_
19+
**Bold** or __Bold__
20+
21+
`<Code SPAN>`
22+
~~Strike~~
23+
++Ins++
24+
Subscript <sub>text</sub>
25+
26+
Superscript <sup>text</sup>
27+
28+
==Mark==
29+
30+
Tables
31+
------
32+
| First Header | Second Header | Third Header |
33+
| :----------- | :-----------: | -----------: |
34+
| Left | Center | Right |
35+
| Second row | **strong** | *italic* |
36+
37+
Formulas
38+
--------
39+
It is possible to use the [Google Chart API] using `TeX` language,
40+
but the translated formula can only to be seen using a browser,
41+
for insert a formula using `TeX` enclose the code between `$`
42+
without `spaces`:
43+
44+
Quadratic formula |Zeta formula
45+
---------------------------|-----------------------------
46+
$x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$ | $\zeta(s)=\sum_{n=1}^\infty\frac{1}{n^s}$
47+
48+
[Google Chart API]:https://developers.google.com/chart/infographics/docs/formulas
49+
50+

Ext/HTMLViewer/Source/HTMLSubs.pas

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -176,15 +176,15 @@ TFontObj = class(TFontObjBase) {font information}
176176
// BG, 10.02.2013: owns its objects.
177177
TFontList = class(TFontObjBaseList) {a list of TFontObj's}
178178
private
179-
function GetFont(Index: Integer): TFontObj; {$ifdef UseInline} inline; {$endif}
179+
function GetFont(Index: TListSize): TFontObj; {$ifdef UseInline} inline; {$endif}
180180
public
181181
constructor CreateCopy(ASection: TSection; T: TFontList);
182182
function GetFontAt(Posn: Integer; out OHang: Integer): ThtFont;
183183
// function GetFontCountAt(Posn, Leng: Integer): Integer;
184184
function GetFontObjAt(Posn: Integer): TFontObj; overload;
185185
function GetFontObjAt(Posn, Leng: Integer; out Obj: TFontObj): Integer; overload;
186186
procedure Decrement(N: Integer; Document: ThtDocument);
187-
property Items[Index: Integer]: TFontObj read GetFont; default;
187+
property Items[Index: TListSize]: TFontObj read GetFont; default;
188188
end;
189189

190190
// BG, 10.02.2013: does not own its font objects.
@@ -1093,11 +1093,11 @@ TFormControlObj = class(TFloatingObj)
10931093
//BG, 15.01.2011:
10941094
TFormControlObjList = class(TFloatingObjList)
10951095
private
1096-
function GetItem(Index: Integer): TFormControlObj; {$ifdef UseInline} inline; {$endif}
1096+
function GetItem(Index: TListSize): TFormControlObj; {$ifdef UseInline} inline; {$endif}
10971097
public
10981098
procedure ActivateTabbing;
10991099
procedure DeactivateTabbing;
1100-
property Items[Index: Integer]: TFormControlObj read GetItem; default;
1100+
property Items[Index: TListSize]: TFormControlObj read GetItem; default;
11011101
end;
11021102

11031103
TImageFormControlObj = class(TFormControlObj)
@@ -2696,7 +2696,7 @@ constructor TFontList.CreateCopy(ASection: TSection; T: TFontList);
26962696
end;
26972697

26982698
//-- BG ---------------------------------------------------------- 10.02.2013 --
2699-
function TFontList.GetFont(Index: Integer): TFontObj;
2699+
function TFontList.GetFont(Index: TListSize): TFontObj;
27002700
begin
27012701
Result := TFontObj(inherited Items[Index]);
27022702
end;
@@ -15593,7 +15593,7 @@ procedure TFormControlObjList.DeactivateTabbing;
1559315593
end;
1559415594

1559515595
//-- BG ---------------------------------------------------------- 15.01.2011 --
15596-
function TFormControlObjList.GetItem(Index: Integer): TFormControlObj;
15596+
function TFormControlObjList.GetItem(Index: TListSize): TFormControlObj;
1559715597
begin
1559815598
{$ifdef UseGenerics}
1559915599
Result := inherited Items[Index] as TFormControlObj;

Ext/HTMLViewer/Source/HTMLUn2.pas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,9 @@ TIndentRec = class
276276

277277
TIndentRecList = class(TObjectList)
278278
private
279-
function Get(Index: Integer): TIndentRec; {$ifdef UseInline} inline; {$endif}
279+
function Get(Index: TListSize): TIndentRec; {$ifdef UseInline} inline; {$endif}
280280
public
281-
property Items[Index: Integer]: TIndentRec read Get; default;
281+
property Items[Index: TListSize]: TIndentRec read Get; default;
282282
end;
283283

284284
TIndentManager = class
@@ -3779,7 +3779,7 @@ procedure ThvMeter.SetHighColor(const value: TColor);
37793779
{ TIndentRecList }
37803780

37813781
//-- BG ---------------------------------------------------------- 06.10.2016 --
3782-
function TIndentRecList.Get(Index: Integer): TIndentRec;
3782+
function TIndentRecList.Get(Index: TListSize): TIndentRec;
37833783
begin
37843784
Result := inherited Get(Index);
37853785
end;

Ext/HTMLViewer/Source/HtmlBuffer.pas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,15 +199,15 @@ TBuffConvInfo = class
199199
TBuffConvInfoList = class(TList)
200200
private
201201
FSorted: Boolean;
202-
function GetItem(Index: Integer): TBuffConvInfo;
202+
function GetItem(Index: TListSize): TBuffConvInfo;
203203
protected
204204
procedure Notify(Ptr: Pointer; Action: TListNotification); override;
205205
public
206206
constructor Create;
207207
procedure Add(Item: TBuffConvInfo);
208208
function Find(CodePage: TBuffCodePage): Integer;
209209
procedure Sort;
210-
property Items[Index: Integer]: TBuffConvInfo read GetItem; default;
210+
property Items[Index: TListSize]: TBuffConvInfo read GetItem; default;
211211
property Sorted: Boolean read FSorted;
212212
end;
213213

@@ -640,7 +640,7 @@ function TBuffConvInfoList.Find(CodePage: TBuffCodePage): Integer;
640640
end;
641641

642642
//-- BG ---------------------------------------------------------- 12.10.2012 --
643-
function TBuffConvInfoList.GetItem(Index: Integer): TBuffConvInfo;
643+
function TBuffConvInfoList.GetItem(Index: TListSize): TBuffConvInfo;
644644
begin
645645
Result := Get(Index);
646646
end;

Ext/HTMLViewer/Source/HtmlGlobals.pas

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ interface
116116

117117

118118
type
119+
{$IF (CompilerVersion >= 36)}TListSize = NativeInt;{$ELSE}TListSize = Integer;{$IFEND}
120+
119121
{$IFNDEF DOTNET}
120122
{$IFNDEF FPC}
121123
{$ifndef PtrInt_defined}

0 commit comments

Comments
 (0)