~ubuntu-branches/ubuntu/hardy/gnome-commander/hardy

« back to all changes in this revision

Viewing changes to src/libgviewer/datapresentation.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2006-06-13 15:39:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060613153948-gvrt3mb2ddk5u62o
Tags: 1.2.0-3
added --disable-scrollkeeper on build

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    LibGViewer - GTK+ File Viewer library 
 
3
    Copyright (C) 2006 Assaf Gordon
 
4
    
 
5
    Part of
 
6
        GNOME Commander - A GNOME based file manager
 
7
        Copyright (C) 2001-2006 Marcus Bjurman
 
8
 
 
9
    This program is free software; you can redistribute it and/or modify
 
10
    it under the terms of the GNU General Public License as published by
 
11
    the Free Software Foundation; either version 2 of the License, or
 
12
    (at your option) any later version.
 
13
 
 
14
    This program is distributed in the hope that it will be useful,
 
15
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
    GNU General Public License for more details.
 
18
 
 
19
    You should have received a copy of the GNU General Public License
 
20
    along with this program; if not, write to the Free Software
 
21
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
22
*/
 
23
#ifndef __LIBGVIEWER_DATA_PRESENTATION_H__
 
24
#define __LIBGVIEWER_DATA_PRESENTATION_H__
 
25
 
 
26
typedef struct _GVDataPresentation GVDataPresentation;
 
27
 
 
28
typedef enum
 
29
{
 
30
        PRSNT_NO_WRAP,
 
31
        PRSNT_WRAP,
 
32
        
 
33
        /* Here, BIN_FIXED is "fixed number of binary characters per line"
 
34
           (e.g. CHAR=BYTE, no UTF-8 or other translations) */
 
35
        PRSNT_BIN_FIXED
 
36
} PRESENTATION;
 
37
 
 
38
GVDataPresentation* gv_data_presentation_new();
 
39
 
 
40
void gv_init_data_presentation(GVDataPresentation *dp, GVInputModesData *imd, offset_type max_offset);
 
41
void gv_free_data_presentation(GVDataPresentation *dp);
 
42
 
 
43
void gv_set_data_presentation_mode(GVDataPresentation *dp, PRESENTATION present) ;
 
44
PRESENTATION gv_get_data_presentation_mode(GVDataPresentation *dp);
 
45
void gv_set_wrap_limit(GVDataPresentation *dp, guint chars_per_line);
 
46
void gv_set_fixed_count(GVDataPresentation *dp, guint chars_per_line);
 
47
void gv_set_tab_size(GVDataPresentation *dp, guint tab_size);
 
48
 
 
49
offset_type gv_align_offset_to_line_start(GVDataPresentation *dp, offset_type offset);
 
50
offset_type gv_scroll_lines(GVDataPresentation *dp, offset_type current_offset, int delta);
 
51
offset_type gv_get_end_of_line_offset(GVDataPresentation *dp, offset_type start_of_line);
 
52
 
 
53
 
 
54
#endif