21 #ifndef F_CODEVIEW_FORMAT_H
22 #define F_CODEVIEW_FORMAT_H
24 #include <gui/gfxtypes.h>
25 #include <pyro/types.h>
27 #include <util/string.h>
47 virtual int operator==(
const CodeViewContext& c )
const {
return nContext == c.nContext; }
83 virtual uint GetStyleCount() = 0;
95 virtual const os::String& GetStyleName(
char nStyle ) = 0;
106 virtual void SetStyle(
char nStyle,
const CodeViewStyle& cStyle ) = 0;
137 virtual CodeViewContext Parse(
const os::String &cText, os::String &cStyle,
157 virtual os::String GetIndentString(
const os::String &cText,
bool bUseTabs, uint nTabSize)=0;
166 virtual uint GetPreviousWordLimit(
const os::String &cLine, uint nChr)=0;
175 virtual uint GetNextWordLimit(
const os::String &cLine, uint nChr) = 0;
186 virtual int GetFoldLevel(
const os::String &cLine,
int nOldFoldLevel ) {
return nOldFoldLevel; }