summaryrefslogtreecommitdiff
path: root/docview/components/richtext/RichTextStyleUnit.pas
AgeCommit message (Collapse)Author
2013-03-12richtext: minor improvement to default used colorsGraeme Geldenhuys
2012-11-26More richtext color tag improvements.Michael van Canneyt
Attached is another patch I made for the richtext edit. Now the red/green/blue/black tags can/must be closed by a correct red/green/blue/black closing tag. That means that except for the margin tags, all tags can/must now be closed with a matching tag.
2012-11-26RichTextView syntax tag improvementsMichael van Canneyt
1) h1, h2 h3 are now ended by /h1 /h2 /h3 2) <wrap yes> and <wrap no> are changed to <nowrap> </nowrap> 3) The size part of the font tag is now optional. I suspect a small change is still needed in order to apply the font size if one is specified anyway. I put a comment in the text for that. 4) I adapted the sample01.txt so it reflects the 1. and 2. changes.
2012-11-21richtext:: Incorrect "normal font" was assigned as default style.Graeme Geldenhuys
Very weird, there was even a code comment saying that it was wrong!! The constructor of TRichTextSettings already sets the "normal font". So by ignoring the ASettings parameter, the end-user couldn't assign a new normal font values. Anyway, this is now fixed.
2012-08-21docview: fixes a memory leak in font handling.Graeme Geldenhuys
We checked for the same fontdesc, but never for the same instance. So the NewFont instance might not have been freed, causing the memory leak.
2011-07-24docview: adjusted Margin Size Style to Avg Char Width.Graeme Geldenhuys
This gives an overall improved margin size. In future we should make this user selectable in Docview's Preferences dialog.
2011-07-24docview: various RichTextStyleUnit fixesGraeme Geldenhuys
- Rename Settings parameter to ASettings. This is to prevent possible confusion with the Settings global variable. - ApplyStyleTag had many issues, applying the style changes to the wrong properties. Manyly, styling was applied to the ASettings parameter when they should have been applied to the Style parameter. - Code formatting improvements.
2011-07-24docview: rename paramater so as to prevent confusion with a global variableGraeme Geldenhuys
Settings is a global variable for RichView component. I renamed the parameter Settings to ASettings so as to prevent any possible confusion between the two.
2011-07-24docview: deleted unused or commented codeGraeme Geldenhuys
2011-07-23docview: FontNameSize has a duplicate font size elementGraeme Geldenhuys
The global variable DefaultTopicFont already contained the font size, so we didn't need to append it.
2011-07-23Major refactoring in the CanvasFontManager unit. Work-in-Progress!Graeme Geldenhuys
The CanvasFontManager unit has totally been reworked to use the native TfpgFont class instead of TLogicalFont, TFontFace etc... The code is a lot more simplified now and DocView can actually display content but there are some width wrapping issues and AV's on changing topics. This will be fixed next.
2010-09-01docview: Replaced hard-coded font values with constants.Graeme Geldenhuys
A reference to a default font or fixed font are now the same throughout docview. If you change one, you change them all.
2010-09-01docview: fixed unwanted linefeeds which were not in INF docs.Graeme Geldenhuys
2010-03-11fixes compilation for docview and fpc 2.5.1Andrew
Not sure when it became the case but it makes sense that var parameters must use the exact type and not a descendant class. This patch puts that into effect.
2010-02-11Fix visibility problem with constructor and destructor.Graeme Geldenhuys
2009-11-27Merged separate DocView project as our subdirectoryGraeme Geldenhuys