summaryrefslogtreecommitdiff
path: root/docview/components
AgeCommit message (Collapse)Author
2011-08-29richview: fixed another memory leak.Graeme Geldenhuys
2011-08-29richview: removed DoAllocateWindowHandle() which caused a memory leak.Graeme Geldenhuys
The above mentioned method called CreateWnd() twice, thus causing a memory leak. Now CreateWnd() is simply called once in the constructor.
2011-08-29richview: neatened up the CreateDefaultMenu() method.Graeme Geldenhuys
The code is more human readable now.
2011-08-29richview: making sure we tidy up everything.Graeme Geldenhuys
2011-08-29richview: fixed memory leak with font resources.Graeme Geldenhuys
2011-08-24richview: stop a possible index out of bounds error when there is no text.Graeme Geldenhuys
2011-08-17richview syntax and information file renamed so it is easier to spotGraeme Geldenhuys
2011-08-17richview: to prevent "index out of bounds" errors while RV is empty.Graeme Geldenhuys
2011-08-16richview: extra check to make sure LineIndex is in range.Graeme Geldenhuys
This shoud prevent the 'Index out of bounds' errors.
2011-08-12Removed hard-coded Code Generation option in lazarus package.Graeme Geldenhuys
2011-08-11richview: improved the scrollbar textwidth and SB max value calculations.Graeme Geldenhuys
This helps those odd borderline cases, so now the scrollbar always seems appropriate when it is visible.
2011-08-11RichView: Correctly calculate the HScrollBar Max value.Graeme Geldenhuys
Now that we correctly the FLayout.Width value this change could now be made.
2011-08-11richview: ExtractNextTextElement() changed to support UTF-8 charactersGraeme Geldenhuys
- Ultimately this is so we can fix the Layout.Width problem when UTF-8 characters are used in INF documents. eg: the FPC ref.inf file. - UTF-8 characters can be greater than one byte, so we had to make some changes. - Changed some usages of Char to TfpgChar TODO: - CopyPlainTextToBuffer() implementation has been commented, until we can rewrite it for use with fpGUI. This is a big changes, but I tested DocView with numerous INF documents and all seems well.
2011-08-11richview: we should be looking at SB Width or Height propertyGraeme Geldenhuys
instead we should be looking at the overall FScrollBarWidth field value which defines the Width or Height of all Scrollbars in RichView.
2011-08-11richview: correct the localion where we call to update scrollbar coords.Graeme Geldenhuys
2011-08-11minor code formatting, improved code commentsGraeme Geldenhuys
2011-08-11richview: fixes the painting bug of bottom/right corner rectangleGraeme Geldenhuys
Refactored the code, so we only use UpdateScrollBarCoords() method.
2011-08-11corrected the bottom/right corner color for RichView.Graeme Geldenhuys
It's the rectangle between the two scrollbars.
2011-08-11add and remove commentsGraeme Geldenhuys
- added a unit header comment - removed old code comments not needed any more - removed old debug lines
2011-08-08richview: minor refactoring of code and fixing of one memory leak.Graeme Geldenhuys
2011-08-08bug: forgot to check in this change. Item[] -> Items[]Graeme Geldenhuys
A recent commit forced this change so it is consistent with fpGUI and RTL usage of array property.
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: code formatting improvements. Mainly indentation in case statements.Graeme Geldenhuys
2011-07-24docview: deleted unused or commented codeGraeme Geldenhuys
2011-07-24docview: bug fix where font description had two fontsize values defined.Graeme Geldenhuys
2011-07-23docview: minor code formatting improvements.Graeme 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-23TRichTextLayout & TLayoutLine code reworked to classes instead of arraysGraeme Geldenhuys
- TLayoutLine changed from a record type to a data class - Implemented TLayoutLineList class instead of using a dynamic array for TLayoutLine storage. - Changed all related code to reference the object list correctly.
2011-07-23wip stashGraeme Geldenhuys
2011-07-23fixes compiler errors after bring 'fonts_refactor' branch up to speedGraeme Geldenhuys
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.
2011-03-08docview: Removed left-over debug code. Sorry! :-(Graeme Geldenhuys
2011-02-03temp storage for Encoding implementation in DocViewGraeme Geldenhuys
2010-09-30richview: track cursor position for DocView Notes supportGraeme Geldenhuys
* Now we can click anywhere in the DocView topic to place our notes. There are still some minor positioning bugs, but I'll get to that later.
2010-09-30docview: minor code formattingGraeme Geldenhuys
2010-09-30Removed FontWidthPrecisionFactor. We don't use it anyway.Graeme Geldenhuys
2010-09-01docview: Implemented mouse cursor changes when moved over links.Graeme Geldenhuys
2010-09-01docview: introduced user configurable mouse wheel scroll distance.Graeme Geldenhuys
2010-09-01docview: minor code formattingGraeme Geldenhuys
2010-09-01docview: Removed unused or commented unitsGraeme Geldenhuys
2010-09-01docview: Replace unicode character in source code with UTF-8 byte sequence.Graeme Geldenhuys
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-08-26richview: disabled clipboard items in popup menu for now.Graeme Geldenhuys
* This causes the app using Richview to freeze. :-/
2010-08-23Removed unused code.Graeme Geldenhuys
2010-08-22dcoview: fixed a minor memory leak.Graeme Geldenhuys
2010-08-22docview: fixes the AV on exit.Graeme Geldenhuys
NOTE This is not a 100% fix, but rather a work-around. I need to still find out why such AV's occur.
2010-08-12richview: fixed position of bitmap in context.Graeme Geldenhuys
The positioning of images still used the OS/2 co-ordinate system. This is now fixed.