Code::Blocks  SVN r11506
Public Member Functions | Private Attributes | List of all members
EditorHooks::cbSmartIndentEditorHookFunctor Class Reference

Provides a HookFunctor which redirects the Call() of a cbSmartIndentPlugin so only the interface of cbSmartIndentPlugin has to be implemented for a new language. More...

#include <editor_hooks.h>

Inheritance diagram for EditorHooks::cbSmartIndentEditorHookFunctor:
Collaboration diagram for EditorHooks::cbSmartIndentEditorHookFunctor:

Public Member Functions

 cbSmartIndentEditorHookFunctor (cbSmartIndentPlugin *plugin)
 ctor. More...
 
 ~cbSmartIndentEditorHookFunctor () override
 dtor. More...
 
void Call (cbEditor *editor, wxScintillaEvent &event) const override
 Needs to be implemented by the plugin to act(smart indent) accordingly. More...
 
- Public Member Functions inherited from EditorHooks::HookFunctorBase
virtual ~HookFunctorBase ()
 

Private Attributes

cbSmartIndentPluginm_plugin
 

Detailed Description

Provides a HookFunctor which redirects the Call() of a cbSmartIndentPlugin so only the interface of cbSmartIndentPlugin has to be implemented for a new language.

Definition at line 103 of file editor_hooks.h.

Constructor & Destructor Documentation

◆ cbSmartIndentEditorHookFunctor()

EditorHooks::cbSmartIndentEditorHookFunctor::cbSmartIndentEditorHookFunctor ( cbSmartIndentPlugin plugin)

ctor.

Definition at line 153 of file editor_hooks.cpp.

◆ ~cbSmartIndentEditorHookFunctor()

EditorHooks::cbSmartIndentEditorHookFunctor::~cbSmartIndentEditorHookFunctor ( )
inlineoverride

dtor.

Definition at line 109 of file editor_hooks.h.

References GetTypeName().

Member Function Documentation

◆ Call()

void EditorHooks::cbSmartIndentEditorHookFunctor::Call ( cbEditor editor,
wxScintillaEvent event 
) const
overridevirtual

Needs to be implemented by the plugin to act(smart indent) accordingly.

Parameters
editorThe editor that is active and whose content is changed
eventThe wxScintilla event fired to react accordingly (see cbEditor::CreateEditor, namely scintilla_events)

Implements EditorHooks::HookFunctorBase.

Definition at line 156 of file editor_hooks.cpp.

References m_plugin, and cbSmartIndentPlugin::OnEditorHook().

Member Data Documentation

◆ m_plugin

cbSmartIndentPlugin* EditorHooks::cbSmartIndentEditorHookFunctor::m_plugin
private

Definition at line 124 of file editor_hooks.h.

Referenced by Call().


The documentation for this class was generated from the following files: