Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » RichText,QTF,RTF... » QTF editors and styles
Re: QTF editors and styles [message #30580 is a reply to message #30579] Mon, 10 January 2011 10:16 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
Style is part of 'RichText'.

RichText::
int GetStyleCount() const { return style.GetCount(); }
Uuid GetStyleId(int i) const { return style.GetKey(i); }
Uuid GetStyleId(const String& name) const;
const RichStyle& GetStyle(int i) const { return style[i]; }
const RichStyle& GetStyle(const Uuid& id) const { return UPP::GetStyle(style, id); }
void SetStyle(const Uuid& id, const RichStyle& _style);
bool HasStyle(const Uuid& id) { return style.Find(id) >= 0; }
void RemoveStyle(const Uuid& id);

const RichStyles& GetStyles() const { return style; }
void SetStyles(const RichStyles& styles);
void OverrideStyles(const RichStyles& masterstyles,
bool matchname = true, bool addmissing = true);
void MergeStyles(const RichText& text);

Also, handy is RichEdit::ApplyStyleSheet.

I am afraid you will need a new callback introduced to RichEdit, something like "WhenStyleUpdate"?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: QTF question -how to insert a QTF string into an XML file?
Next Topic: Can I turn the page a few degrees when printing?
Goto Forum:
  


Current Time: Mon May 13 21:34:52 CEST 2024

Total time taken to generate the page: 0.02898 seconds