Skip to content

Releases: BerndGabriel/HtmlViewer

11.10

12 Mar 14:18
Compare
Choose a tag to compare
Added
  • Lazarus 2.2 Support (Windows, Linux)
  • RAD Studio 11 Alexandria Support
  • Properties ParentColor and ParentFont.
  • Unit HtmlPrinter.pas containing ThtPrinter (moved from vwPrint.pas) and ThtPagePrinter (extracted from TMetaFilePrinter as base class).
  • THtmlViewer.Load()/THtmlViewer.LoadFromUrl()/TfvFrame.LoadFiles()/TfvFrame.ReloadFiles() accept scheme 'source://' followed by HTML text.
  • 156: Feature request - HandCursor (or LinkCursor).
    • Added to htmlcons.inc: $define UseHandCursor
Enhanced
  • 255: DPI inconsistency
  • 312: DPI scaling THtmlViewer
Fixed
  • FrameBrowser's URLExpandName() now respects Viewer.Base to get the correct scheme.
  • Function TSection.FindCountThatFits() seems to freeze when checking very long strings with some non unicode chars.
  • Crash when Document.IDNameList tries to delete an already deleted image again.
  • memory leak THtmlViewer.FObjects.
  • 139: Incorrect drawing of THtmlViewer at design time in Lazarus.
  • 268: Image-Rendering unexpected between 11.6 and 11.9.
  • 272: Line-Height stops Vertical-Align from working.
  • 286: Width of 100% in table column works wrong and content is passed into the neighbouring cell.
  • 294: Build Error with Lazarus 2.0.10 in Linux (neither PDeviceModeW nor PDeviceMode is used for Linux).
  • 298: Transparent PNGs.
  • 299: Some fonts are not justified.
  • 303: Unit name is not found in Linux.
  • 304: Crash when hitting RETURN on a selected link.
  • 305: TObjectList problem.
    • Sydney has no classic TObjectList.
    • Using generic TObjectList<> instead.
  • 306: Center Tables not rendered.
  • 309: Draw CSS-embedded images.
  • 314: HTML not well rendered.
  • 316: THtmlViewer.LoadHTML hangs when loading an html with css code that includes a media query on color scheme.
  • 318: Master no longer builds on Delphi XE or earlier.

11.7

20 Sep 21:58
Compare
Choose a tag to compare
Added
  • Delphi 10 Seattle Support
  • Lazarus 1.6 Support
  • Linux (GTK2) Support
  • Raspbian (GTK2) Support
  • Detect UTF16 w/o BOM. Helps reading UnicodeStrings written to Streams.
  • Scrolling in unfocused HtmlViewer.
  • TFloatingObj supports style Position:Absolute
  • Position:fixed for Blocks and Images
  • HtmlViewer supports !important now
  • Working With Protocols
    • New unit UrlConn makes it easy for coders to add own protocol handlers for a TFrameBrowser
      • New base class ThtConnection offers to get a document.
      • New class ThtFileConnection gets a document from a file.
      • New class ThtResourceConnection gets a document from the application's resources.
      • New component base class ThtConnector offers to create a connection for a protocol. When dropped to a form with a ThtConnectionManager on it ThtConnectors register themselves at the ThtConnectionManager automatically.
      • New component ThtFileConnector creates a ThtFileConnection for protocol 'file://'.
      • New component ThtResourceConnector creates a ThtResourceConnection for protocol 'res://'.
      • New component ThtConnectionManager creates ThtConnections for the registered protocols.
    • TFrameBrowser Demos promoted from Other Demos to Main Demos
      • FrameBrowserDemoIndy10.dpr for Delphi and Lazarus (Win32/Win64/Linux)
      • FrameBrowserDemoIcs.dpr for Delphi only
      • Both demos are using the same code except their specific THttpConnector/THttpConnection in unit UrlConId10 resp. UrlConIcs.
Enhanced
  • Working With Images
    • Global image loader in unit HtmlImages, which enables coders to detect and load additional image formats:
      • base class ThtImageLoader
      • global procedure SetImageLoader
      • global function GetImageLoader
      • global function LoadImageFromStream uses the new global image loader
      • ThtImageLoader.GetFilter() returns a filter for file open dialogs.
      • Removed global function LoadImageFromFile: now done by new local procedure GetTheFile in ThtDocument.GetTheImage.
    • Added: ThtGraphicImage: support for all TGraphics without own TBitmap, e.g. meta files
    • Changed: More general code due to enhanced ThtImage
    • Changed: ThtGpImage becomes a TGraphic
    • Changed: TGIFImage becomes a ThtBitmap
    • Removed: type TGpObject no longer needed
    • ThtBitmap extended and moved from unit HtmlGif2 to HtmlGlobals. ThtBitmap is needed to support TBitmap.Assign() in Lazarus 0.9.30, which is the current official version for Raspbian gtk2/ARM
Fixed

11.6

30 Jun 21:41
Compare
Choose a tag to compare

Version 11.6

Added
  • Delphi XE7 and XE8 Support
Enhanced
  • Issue 328: Patch for CSS border-spacing
  • Issue 184: 'WaitBitmap' facility no longer available
    • Added: bitmaps WaitBitmap, ErrorBitmap
    • Added: event OnBitmapRequested
    • Added: to TFrameViewer and TFrameBrowser: OnBitmapRequest, OnBitmapRequested
  • Issue 360: LoadDocument updates screen cursor (suggested by wildcroftsecurity)
  • Issue 363: HtmlViewer should not act on MouseWheel if there is no vertical scrollbar (suggested by Andreas Hausladen)
  • Issue 367: Allow to reload the page in the frame browser via F5
  • Issue 369: <div> fixed height not working
  • Issue 404: non-CSS-standard color:none not treated as transparent
Fixed
  • Issue 283: Handle incorrectly defined HTML entities missing semicolon
  • Issue 318: GetUrl returns wrong "title" for inner div-tags
  • Issue 358: Error page display: charset/codepage meta attribute must not change the HtmlViewer default charset/codepage
  • Issue 365: Please make FirstLineIndent and Buff public again
  • Issue 366: Bug in TFVBase.BumpHistory() introduced during migration from original 9.44 (thanks to sergei at usa.com)
  • Issue 371: Revision 470 broke "right" and "bottom" style properties
  • Issue 372: Absolute position with right anchor does not work
  • Issue 377: Encoded Characters Breaking Parser with Meta Content-Type
  • Issue 380: Missing borders on empty table cells
  • Issue 384: Memory Leak in TFrameSetBase.LoadFromString
  • Issue 385: Body background-image InsertImage has no visual effect
  • Issue 387: transp attribute in tag (lower left corner) doesn't work if GDIPLUS is enabled
  • Issue 388: THtmlViewer.Clear does not clear DocumentSource property
  • Issue 390: Problem with fonts object in TSection.HRef
  • Issue 391: Error when we use FullDisplaySize function
  • Issue 395: HtmlId and GlobalId both empty
  • Issue 403: Crash "Control has no parent window"
  • github-issue 82: Free on an Freed Object / Google-Code-Issue 405: Print Preview Error

HtmlViewer 11.5

30 Jun 18:13
Compare
Choose a tag to compare

Version 11.5

Added
  • Delphi XE5 and XE6 Support
  • Lazarus Printing Support
  • Delphi 2010 - XE6 Gesture Support. Built-in panning support
  • HTML 4 Element <iframe>
  • HTML 5 Elements <main>, <progress>, <meter>
  • CSS Property BorderColor accepts currentColor keyword
  • TIFF support for <img> (requires GDI+) (by JPM)
  • Property THtmlViewer.DocumentCodePage reflects the documents codepage while property THtmlViewer.CodePage is the default codepage if a document comes without it
  • Issue 261: placeholder attribute should be recognized
  • Issue 262: maxlength attribute should be recognized in text areas
Enhanced
  • Restructured element class hierarchy
  • Reduced code duplicates
  • Simplified image handling via new base class ThtImage
  • Indicate support for further file types and extension
  • Renamed various types to start with the T resp. Tht prefix
  • Performance
  • Supports <pre style="white-space: normal"> (by JPM)
  • Lazarus demos can load files with non-ANSI names
  • Prefer loading and scaling PNG, TIFF, JPEG, ICO, EMF, WMF, EXIF, and BMP images via GDI+ for better scaling results
Fixed
  • Issue 133: Nested lists bottom margins not collapsed
  • Issue 181: Gifs are not animated, if there are too many on the same page
  • Issue 257: StyleUn.hpp fails to build in C++Builder XE4
  • Issue 270: Print preview hand button sends previewed page into oblivion
  • Issue 277: URLs aren't decoded in demo application
  • Issue 285: Border of <hr>s always visible
  • Issue 296: OnBitmapRequest's Result seems to be discarded
  • Issue 297: Divide by zero in THtmlTable.DrawLogic
  • Issue 299: List item indention comes from wrong style attribute
  • Issue 303: Attribute rowspan disables mouse click
  • Issue 305: HtmlViewer.DocumentSource returns broken string
  • Issue 308: Right alignment does always work properly
  • Issue 309: TCellManager.FindColNum throws "Index out of bounds"
  • Issue 311: Table width calculation bug where MinWidths become larger than MaxWidths
  • Issue 312: Animated gif error
  • Issue 313: Memory leak when printing/print previewing (by wildcroftsecurity)
  • Issue 319: THtmlViewer.CopyToClipboard error
  • Issue 320: <div> with negative margins in a <td> is clipped
  • Issue 347: Entities in DocumentTitle are not converted
  • Issue 351: Problems with superscript/subscript in tables
  • Issue 355.1: Table cell cut off if cell and table widths are overdetermined
  • Issue 355.3: Table too wide, if sum of given cell widths exceeds given table width
  • Issue 356: Error underlined text
  • Issue 362: Resource leak in TMapArea