Code::Blocks  SVN r11506
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
cbEditorInternalData Struct Reference
Collaboration diagram for cbEditorInternalData:

Public Member Functions

 cbEditorInternalData (cbEditor *owner, LoaderBase *fileLoader=nullptr)
 
 ~cbEditorInternalData ()
 
void StripTrailingSpaces ()
 Strip trailing blanks before saving. More...
 
void EnsureFinalLineEnd ()
 Add extra blank line to the file. More...
 
void EnsureConsistentLineEnds ()
 Make sure all the lines end with the same EOL mode. More...
 
void SetLineNumberColWidth (bool both=true)
 Set line number column width. More...
 
void SetFoldingColWidth (bool both=true)
 
wxString GetUrl ()
 

Static Public Member Functions

static wxString GetLineIndentString (int line, cbStyledTextCtrl *stc)
 
static int DetectIndentStyle (cbStyledTextCtrl *stc)
 Detect the indentation style used in a document. More...
 

Public Attributes

cbEditorm_pOwner
 
bool m_strip_trailing_spaces
 
bool m_ensure_final_line_end
 
bool m_ensure_consistent_line_ends
 
int m_LastMarginMenuLine
 
int m_LastDebugLine
 
bool mFoldingLimit
 
int mFoldingLimitLevel
 
wxFontEncoding m_encoding
 
bool m_useByteOrderMark
 
int m_byteOrderMarkLength
 
int m_lineNumbersWidth
 
int m_lineNumbersWidth2
 
LoaderBasem_pFileLoader
 

Detailed Description

Definition at line 96 of file cbeditor.cpp.

Constructor & Destructor Documentation

◆ cbEditorInternalData()

cbEditorInternalData::cbEditorInternalData ( cbEditor owner,
LoaderBase fileLoader = nullptr 
)
inline

◆ ~cbEditorInternalData()

cbEditorInternalData::~cbEditorInternalData ( )
inline

Definition at line 133 of file cbeditor.cpp.

References m_pFileLoader.

Member Function Documentation

◆ DetectIndentStyle()

static int cbEditorInternalData::DetectIndentStyle ( cbStyledTextCtrl stc)
inlinestatic

Detect the indentation style used in a document.

Values for the thresholds are from trial and error over many example files. If this function is not certain on the style used, it will return -1.

Definition at line 402 of file cbeditor.cpp.

References wxString::Find(), wxScintilla::GetLineCount(), GetLineIndentString(), wxString::IsEmpty(), wxString::Length(), wxNOT_FOUND, and wxT.

Referenced by cbEditor::InternalSetEditorStyleAfterFileOpen().

◆ EnsureConsistentLineEnds()

void cbEditorInternalData::EnsureConsistentLineEnds ( )
inline

Make sure all the lines end with the same EOL mode.

Definition at line 185 of file cbeditor.cpp.

References wxScintilla::ConvertEOLs(), cbEditor::GetControl(), and wxScintilla::GetEOLMode().

Referenced by cbEditor::Save().

◆ EnsureFinalLineEnd()

void cbEditorInternalData::EnsureFinalLineEnd ( )
inline

◆ GetLineIndentString()

static wxString cbEditorInternalData::GetLineIndentString ( int  line,
cbStyledTextCtrl stc 
)
inlinestatic

◆ GetUrl()

wxString cbEditorInternalData::GetUrl ( )
inline

◆ SetFoldingColWidth()

void cbEditorInternalData::SetFoldingColWidth ( bool  both = true)
inline

◆ SetLineNumberColWidth()

void cbEditorInternalData::SetLineNumberColWidth ( bool  both = true)
inline

◆ StripTrailingSpaces()

void cbEditorInternalData::StripTrailingSpaces ( )
inline

Member Data Documentation

◆ m_byteOrderMarkLength

int cbEditorInternalData::m_byteOrderMarkLength

Definition at line 495 of file cbeditor.cpp.

Referenced by cbEditorInternalData(), and cbEditor::Open().

◆ m_encoding

wxFontEncoding cbEditorInternalData::m_encoding

◆ m_ensure_consistent_line_ends

bool cbEditorInternalData::m_ensure_consistent_line_ends

Definition at line 485 of file cbeditor.cpp.

Referenced by cbEditor::Save(), and cbEditor::SetEditorStyleBeforeFileOpen().

◆ m_ensure_final_line_end

bool cbEditorInternalData::m_ensure_final_line_end

Definition at line 484 of file cbeditor.cpp.

Referenced by cbEditor::Save(), and cbEditor::SetEditorStyleBeforeFileOpen().

◆ m_LastDebugLine

int cbEditorInternalData::m_LastDebugLine

Definition at line 488 of file cbeditor.cpp.

Referenced by cbEditor::SetDebugLine().

◆ m_LastMarginMenuLine

int cbEditorInternalData::m_LastMarginMenuLine

◆ m_lineNumbersWidth

int cbEditorInternalData::m_lineNumbersWidth

Definition at line 497 of file cbeditor.cpp.

Referenced by SetLineNumberColWidth().

◆ m_lineNumbersWidth2

int cbEditorInternalData::m_lineNumbersWidth2

Definition at line 498 of file cbeditor.cpp.

Referenced by SetLineNumberColWidth().

◆ m_pFileLoader

LoaderBase* cbEditorInternalData::m_pFileLoader

◆ m_pOwner

cbEditor* cbEditorInternalData::m_pOwner

Definition at line 98 of file cbeditor.cpp.

◆ m_strip_trailing_spaces

bool cbEditorInternalData::m_strip_trailing_spaces

Definition at line 483 of file cbeditor.cpp.

Referenced by cbEditor::Save(), and cbEditor::SetEditorStyleBeforeFileOpen().

◆ m_useByteOrderMark

bool cbEditorInternalData::m_useByteOrderMark

◆ mFoldingLimit

bool cbEditorInternalData::mFoldingLimit

Definition at line 490 of file cbeditor.cpp.

Referenced by cbEditor::DoFoldAll(), and cbEditor::SetEditorStyleBeforeFileOpen().

◆ mFoldingLimitLevel

int cbEditorInternalData::mFoldingLimitLevel

Definition at line 491 of file cbeditor.cpp.

Referenced by cbEditor::DoFoldAll(), and cbEditor::SetEditorStyleBeforeFileOpen().


The documentation for this struct was generated from the following file: