class TNonPrintingCharVisibility |
A set of flags to indicate which non-printing characters (e.g. space, tab, paragraph break, etc.) should be drawn using symbols. By default, all non-printing characters are hidden.
An instance of this class is used in CTextLayout::SetNonPrintingCharsVisibility().
Public Member Functions | |
---|---|
TNonPrintingCharVisibility() | |
TNonPrintingCharVisibility(const TNonPrintingCharVisibility &) | |
TBool | AllVisible() |
IMPORT_C void | ExternalizeL(RWriteStream &) |
IMPORT_C void | InternalizeL(RReadStream &) |
TBool | LineBreaksVisible() |
TBool | NonBreakingHyphensVisible() |
TBool | NonBreakingSpacesVisible() |
TBool | NoneVisible() |
TBool | PageBreaksVisible() |
TBool | ParagraphDelimitersVisible() |
TBool | PotentialHyphensVisible() |
IMPORT_C void | SetAllVisible() |
IMPORT_C void | SetLineBreaksVisible(TBool) |
IMPORT_C void | SetNonBreakingHyphensVisible(TBool) |
IMPORT_C void | SetNonBreakingSpacesVisible(TBool) |
IMPORT_C void | SetNoneVisible() |
IMPORT_C void | SetPageBreaksVisible(TBool) |
IMPORT_C void | SetParagraphDelimitersVisible(TBool) |
IMPORT_C void | SetPotentialHyphensVisible(TBool) |
IMPORT_C void | SetSpacesVisible(TBool) |
IMPORT_C void | SetTabsVisible(TBool) |
TBool | SpacesVisible() |
TBool | TabsVisible() |
IMPORT_C TNonPrintingCharVisibility & | operator=(const TNonPrintingCharVisibility &) |
Private Member Enumerations | |
---|---|
enum | TShowFormatChars { EFNothingVisible = 0x000, EFTabsVisible = 0x001, EFSpacesVisible = 0x002, EFParagraphDelimitersVisible = 0x004, EFLineBreaksVisible = 0x008, EFPotentialHyphensVisible = 0x010, EFNonBreakingHyphensVisible = 0x020, EFNonBreakingSpacesVisible = 0x040, EFPageBreaksVisible = 0x080, EFEverythingVisible = 0xffffffff } |
Private Attributes | |
---|---|
TUint32 | iVisible |
IMPORT_C | TNonPrintingCharVisibility | ( | const TNonPrintingCharVisibility & | aVisibility | ) |
const TNonPrintingCharVisibility & aVisibility |
TBool | AllVisible | ( | ) | const [inline] |
Tests whether all non-printing characters are visible. ETrue if all non-printing characters are visible. EFalse if any or all hidden.
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
RWriteStream & aStream |
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) |
RReadStream & aStream |
TBool | LineBreaksVisible | ( | ) | const [inline] |
Tests whether forced line break characters are visible. ETrue if forced line break characters are visible. EFalse if hidden.
TBool | NonBreakingHyphensVisible | ( | ) | const [inline] |
Tests whether non-breaking hyphens (enclosing word is always kept on the same line) are visible. ETrue if non-breaking hyphens are visible. EFalse if hidden.
TBool | NonBreakingSpacesVisible | ( | ) | const [inline] |
Tests whether non-breaking spaces are visible. ETrue if non-breaking spaces are visible. EFalse if hidden.
TBool | NoneVisible | ( | ) | const [inline] |
Tests whether all non-printing characters are hidden. ETrue if all non-printing characters are hidden. EFalse if any are visible.
TBool | PageBreaksVisible | ( | ) | const [inline] |
Tests whether page break characters are visible. ETrue if page break characters are visible. EFalse if hidden.
TBool | ParagraphDelimitersVisible | ( | ) | const [inline] |
Tests whether paragraph delimiters are visible. ETrue if paragraph delimiters are visible. EFalse if hidden.
TBool | PotentialHyphensVisible | ( | ) | const [inline] |
Tests whether potential hyphen characters (inserted before a line break within a word) are visible.
ETrue if potential hyphen characters are visible. EFalse if hidden.
IMPORT_C void | SetLineBreaksVisible | ( | TBool | aVisible | ) |
TBool aVisible |
IMPORT_C void | SetNonBreakingHyphensVisible | ( | TBool | aVisible | ) |
TBool aVisible |
IMPORT_C void | SetNonBreakingSpacesVisible | ( | TBool | aVisible | ) |
TBool aVisible |
IMPORT_C void | SetPageBreaksVisible | ( | TBool | aVisible | ) |
TBool aVisible |
IMPORT_C void | SetParagraphDelimitersVisible | ( | TBool | aVisible | ) |
TBool aVisible |
IMPORT_C void | SetPotentialHyphensVisible | ( | TBool | aVisible | ) |
TBool aVisible |
TBool | SpacesVisible | ( | ) | const [inline] |
Tests whether space characters are visible.
Note: To get the the visibility of non-breaking space characters, use NonBreakingSpacesVisible() instead. ETrue if space characters are visible. EFalse if hidden.
TBool | TabsVisible | ( | ) | const [inline] |
Tests whether tab stop characters are visible. ETrue if tab stop characters are visible. EFalse if hidden.
IMPORT_C TNonPrintingCharVisibility & | operator= | ( | const TNonPrintingCharVisibility & | aVisibility | ) |
const TNonPrintingCharVisibility & aVisibility |
EFNothingVisible = 0x000 | |
EFTabsVisible = 0x001 | |
EFSpacesVisible = 0x002 | |
EFParagraphDelimitersVisible = 0x004 | |
EFLineBreaksVisible = 0x008 | |
EFPotentialHyphensVisible = 0x010 | |
EFNonBreakingHyphensVisible = 0x020 | |
EFNonBreakingSpacesVisible = 0x040 | |
EFPageBreaksVisible = 0x080 | |
EFEverythingVisible = 0xffffffff |