Search found 119 matches

by martindholmes
Thu Jun 12, 2008 12:20 pm
Forum: Support
Topic: Incorporating RVF into an XML file
Replies: 1
Views: 8715

Incorporating RVF into an XML file

I've found myself in a situation where I need to save RVF code (text, not binary) to an XML file which is encoded in UTF-8. I'm wondering what the nature of RVF code is. As a string, is it ASCII or ANSI? In other words, does it ever contain characters between 128 and 255? The TRichViewEdit which is ...
by martindholmes
Mon Jun 09, 2008 8:59 pm
Forum: Support
Topic: SaveHTMLEx and character encoding
Replies: 3
Views: 11457

I'm assuming, then, that there are three categories of text here: ASCII (0 - 127), same in ANSI and UTF-8 128 - 255 (ANSI, saved differently) 255 + (Unicode, saved as numeric escapes) Am I right? I've been a bit thrown in one of my projects by the fact that the TRVXML component seems to save accente...
by martindholmes
Mon Jun 09, 2008 12:31 pm
Forum: Support
Topic: SaveHTMLEx and character encoding
Replies: 3
Views: 11457

SaveHTMLEx and character encoding

Hi there,

If rvsoUTF8 is included in the save options for SaveHTMLEx, the result is saved as UTF-8. But if it's not included, what format is saved? Is it UTF-16, for Unicode documents, or something else?

Cheers,
Martin
by martindholmes
Wed Feb 13, 2008 1:46 pm
Forum: Support
Topic: Load RVF into table cells
Replies: 3
Views: 11600

I seem to have a working solution to this, explained here:

http://www.trichview.com/forums/viewtop ... =8874#8874

(Not a solution to the table cell problem; it's a solution to the issue I was trying to solve with tables, but which is better solved using paragraph formatting.)
by martindholmes
Wed Feb 13, 2008 1:44 pm
Forum: Support
Topic: Adding additional formatting when inserting RVF from stream
Replies: 3
Views: 12303

I seem to have found a solution to this, so I'm posting it in case anyone else is facing a similar problem (trying to insert a sequence of smaller documents in the form of a numbered list). This is what I do: For each subdocument: Set the cursor to the end of the document Insert an appropriate numbe...
by martindholmes
Tue Feb 12, 2008 6:57 pm
Forum: Support
Topic: Load RVF into table cells
Replies: 3
Views: 11600

Thanks!

This table stuff is actually one of the solutions I'm looking at for getting around the import of a set of little documents as a numbered list. I'm trying to use a table with no borders to fake the hanging indent :-).
by martindholmes
Mon Feb 11, 2008 1:56 pm
Forum: Support
Topic: Load RVF into table cells
Replies: 3
Views: 11600

Load RVF into table cells

I'm trying to load RVF from a stream into table cells, but the method (LoadRVFFromStream) seems to have a lot of parameters which aren't documented in the help file, such as Color, Background and Layout. Could you explain what these are, or give an example of how to load RVF from a stream into an em...
by martindholmes
Thu Feb 07, 2008 1:27 pm
Forum: Support
Topic: Adding additional formatting when inserting RVF from stream
Replies: 3
Views: 12303

Adding additional formatting when inserting RVF from stream

Hi there, I'm struggling with a process whereby I insert a sequence of little documents into a main document. The small documents are stored as RVF. When I insert them into the main document, I need them to become list items. This is the process I'm using: Add a list marker. Add a space. Stream in t...
by martindholmes
Tue Jan 15, 2008 4:53 pm
Forum: Support
Topic: Selection bounds and Unicode text
Replies: 3
Views: 11629

I know what text was found, but I don't know where it was found (in what RVData).

I suppose I'll have to create a linear list of all the items in all the RVDatas, and do the search inside each item.

Cheers,
Martin
by martindholmes
Tue Jan 15, 2008 1:45 pm
Forum: Support
Topic: Selection bounds and Unicode text
Replies: 3
Views: 11629

Selection bounds and Unicode text

Hi there, I'm trying to implement a "Find All" function which creates a list of all the hits from a particular search operation, using SearchTextW. I'm able to find each instance of the search text without problems, but I'm having trouble storing information about the hit (start location, ...
by martindholmes
Wed Dec 19, 2007 7:42 pm
Forum: Support
Topic: Search and replace that crosses item boundaries?
Replies: 8
Views: 23048

Are you planning to add that functionality?

Cheers,
Martin
by martindholmes
Wed Dec 19, 2007 1:04 pm
Forum: Support
Topic: Search and replace that crosses item boundaries?
Replies: 8
Views: 23048

Search and replace that crosses item boundaries?

Hi there, Earlier this year, DavidRM and Michael Pro developed and bugfixed some code for effective search and replace which is more unicode-friendly than SearchText, and which can span item boundaries. This was the discussion where the code was posted and worked out: http://www.trichview.com/forums...
by martindholmes
Thu Dec 13, 2007 1:07 pm
Forum: Support
Topic: StyleLoadingMode in TRichViewXML
Replies: 1
Views: 8871

I've done some further investigation into this, and it looks as though some code may be missing from RVStyle.pas: When RVXML tries to merge styles using slmMerge, it calls RVStyle.TextStyles.MergeWith, passing rvs_merge_SmartMerge as the MergeMode. The comments at the head of RVStyle.TextStyles.Merg...
by martindholmes
Wed Dec 12, 2007 9:07 pm
Forum: Support
Topic: What kinds of process can be part of an undo group?
Replies: 3
Views: 11891

Unfortunately, this almost always involves adding new styles to the collection. Undo is such a messy business, eh? I guess I'll have to try and store enough information to re-create the previous state of the document, by taking actions instead of undoing them. If I intercept the Undo command when I ...
by martindholmes
Wed Dec 12, 2007 1:56 pm
Forum: Support
Topic: What kinds of process can be part of an undo group?
Replies: 3
Views: 11891

What kinds of process can be part of an undo group?

I noticed from this post: <http://www.trichview.com/forums/viewtopic.php?t=651&highlight=undo> that "direct assignment to StyleNo cannot be undone". I'm trying to create systems for undoing complex sequences of actions, so I'd like to know exactly what actions can be part of an UndoGro...