|  |  |  | Anjuta Developers Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Prerequisites | ||||
#include <libanjuta/interfaces/ianjuta-editor-line-mode.h> #define IANJUTA_TYPE_EDITOR_LINE_MODE_TYPE #define IANJUTA_EDITOR_LINE_MODE_ERROR IAnjutaEditorLineMode; IAnjutaEditorLineModeIface; enum IAnjutaEditorLineModeType; GQuark ianjuta_editor_line_mode_error_quark (void); GType ianjuta_editor_line_mode_get_type (void); void ianjuta_editor_line_mode_convert (IAnjutaEditorLineMode *obj,IAnjutaEditorLineModeType mode,GError **err); void ianjuta_editor_line_mode_fix (IAnjutaEditorLineMode *obj,GError **err); IAnjutaEditorLineModeType ianjuta_editor_line_mode_get (IAnjutaEditorLineMode *obj,GError **err); void ianjuta_editor_line_mode_set (IAnjutaEditorLineMode *obj,IAnjutaEditorLineModeType mode,GError **err);
#define IANJUTA_TYPE_EDITOR_LINE_MODE_TYPE (ianjuta_editor_line_mode_type_get_type())
#define IANJUTA_EDITOR_LINE_MODE_ERROR ianjuta_editor_line_mode_error_quark()
typedef struct {
	IAnjutaEditorIface g_iface;
	
	void (*convert) (IAnjutaEditorLineMode *obj, IAnjutaEditorLineModeType mode, GError **err);
	void (*fix) (IAnjutaEditorLineMode *obj, GError **err);
	IAnjutaEditorLineModeType (*get) (IAnjutaEditorLineMode *obj, GError **err);
	void (*set) (IAnjutaEditorLineMode *obj, IAnjutaEditorLineModeType mode, GError **err);
} IAnjutaEditorLineModeIface;
typedef enum {
	IANJUTA_EDITOR_LINE_MODE_LF,
	IANJUTA_EDITOR_LINE_MODE_CR,
	IANJUTA_EDITOR_LINE_MODE_CRLF
} IAnjutaEditorLineModeType;
This enumeration is used to specify the type of text. Note that not all editors implement this.
GQuark              ianjuta_editor_line_mode_error_quark
                                                        (void);
| Returns : | 
void ianjuta_editor_line_mode_convert (IAnjutaEditorLineMode *obj,IAnjutaEditorLineModeType mode,GError **err);
Set the line ending mode to the given mode and convert all line end
characters in the buffer to mode line end characters.
| 
 | Self | 
| 
 | Line mode to convert. | 
| 
 | Error propagation and reporting | 
void ianjuta_editor_line_mode_fix (IAnjutaEditorLineMode *obj,GError **err);
Convert EOL characters to majority of line mode. This is helpful when the buffer contains mixed line modes and we want to fix it.
| 
 | Self | 
| 
 | Error propagation and reporting | 
IAnjutaEditorLineModeType ianjuta_editor_line_mode_get (IAnjutaEditorLineMode *obj,GError **err);
Get current line ending mode. It is auto-detected from the buffer contents.
| 
 | Self | 
| 
 | Error propagation and reporting | 
| Returns : | 
void ianjuta_editor_line_mode_set (IAnjutaEditorLineMode *obj,IAnjutaEditorLineModeType mode,GError **err);
Set the line ending mode to the given mode. Existing line end
characters in the buffer are not touched. Only the newly added
texts will have mode line end characters.
| 
 | Self | 
| 
 | Line mode to set. | 
| 
 | Error propagation and reporting |