cssedwindow.h

Go to the documentation of this file.
00001 /*  cssed (c) Iago Rubio 2003, 2004 - A tiny CSS editor.
00002  *
00003  *  This program is free software; you can redistribute it and/or modify
00004  *  it under the terms of the GNU General Public License as published by
00005  *  the Free Software Foundation; either version 2 of the License, or
00006  *  (at your option) any later version.
00007  *
00008  *  This program is distributed in the hope that it will be useful,
00009  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011  *  GNU Library General Public License for more details.
00012  *
00013  *  You should have received a copy of the GNU General Public License
00014  *  along with this program; if not, write to the Free Software
00015  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00016  */
00017  
00024 #define CSSED_WINDOW(n) (CssedWindow*) n
00025 
00027 #ifdef WIN32
00028 #       define CSSED_REGISTRY_NAME "cssed-0.3.1"
00029 #endif
00030 
00032 #define CSSED_ERROR_DOMAIN  g_quark_from_string ("CSSED_ERROR")
00033 
00035 typedef enum {
00037         CSSED_FILE_ERROR_EXIST,
00039         CSSED_FILE_ERROR_ISDIR,
00041         CSSED_FILE_ERROR_ACCES,
00043         CSSED_FILE_ERROR_NAMETOOLONG,
00045         CSSED_FILE_ERROR_NOENT,
00047         CSSED_FILE_ERROR_NOTDIR,
00049         CSSED_FILE_ERROR_NXIO,
00051         CSSED_FILE_ERROR_NODEV,
00053         CSSED_FILE_ERROR_ROFS,
00055         CSSED_FILE_ERROR_TXTBSY,
00057         CSSED_FILE_ERROR_FAULT,
00059         CSSED_FILE_ERROR_LOOP,
00061         CSSED_FILE_ERROR_NOSPC,
00063         CSSED_FILE_ERROR_NOMEM,
00065         CSSED_FILE_ERROR_MFILE,
00067         CSSED_FILE_ERROR_NFILE,
00069         CSSED_FILE_ERROR_BADF,
00071         CSSED_FILE_ERROR_INVAL,
00073         CSSED_FILE_ERROR_PIPE,
00075         CSSED_FILE_ERROR_AGAIN,
00077         CSSED_FILE_ERROR_INTR,
00079         CSSED_FILE_ERROR_IO,
00081         CSSED_FILE_ERROR_PERM,
00083         CSSED_FILE_ERROR_FAILED,
00085         CSSED_FILE_ERROR_LAST, 
00087         CSSED_ERROR_FILE_IS_OPENED, 
00089         CSSED_ERROR_FILE_NOT_REGULAR, //
00091         CSSED_ERROR_DOC_IS_NULL // 
00092 } CssedError;
00093 
00095 typedef enum {
00097         EOL_MODE_CRLF,  
00099         EOL_MODE_CR,    
00101         EOL_MODE_LF                     
00102 } CssedEolMode;
00103 
00105 typedef enum {
00107         CSSED_CODEPAGE_DEFAULT,
00109         CSSED_CODEPAGE_UTF8,
00111         CSSED_CODEPAGE_DBCS
00112 } CssedCodePage;
00113 
00114 // those are opaque use only provided functions
00122 typedef struct _CssedDoc CssedDoc;
00123         
00130 typedef struct _CssedWindow CssedWindow;
00131 
00132 /* *************************************************************************************************** */
00133 #define CSSED_FILETYPE_DEFAULT CSSED_FILETYPE_TEXT
00134 
00136 typedef enum {
00138         CSSED_FILETYPE_UNKNOW,          
00140         CSSED_FILETYPE_TEXT,            
00142         CSSED_FILETYPE_BYNARY,          
00144         CSSED_FILETYPE_CSS,                     
00146         CSSED_FILETYPE_HTML,            
00148         CSSED_FILETYPE_PHP,             
00150         CSSED_FILETYPE_XML,     
00152         CSSED_FILETYPE_SH,
00154         CSSED_FILETYPE_C,       
00156         CSSED_FILETYPE_APACHE_CONF,
00158         CSSED_FILETYPE_LISP,
00160         CSSED_FILETYPE_PERL,
00162         CSSED_FILETYPE_PYTHON,
00164         CSSED_FILETYPE_SQL,
00166         CSSED_FILETYPE_DIFF,
00168         CSSED_FILETYPE_JAVA,
00170         CSSED_FILETYPE_JS,      
00172         CSSED_FILETYPE_MAKE,
00174         CSSED_FILETYPE_APDL,
00176         CSSED_FILETYPE_AU3,
00178         CSSED_FILETYPE_AVE,
00180         CSSED_FILETYPE_ADA,
00182         CSSED_FILETYPE_ASM,
00184         CSSED_FILETYPE_ASN1,
00186         CSSED_FILETYPE_BAAN,
00188         CSSED_FILETYPE_BASIC,
00190         CSSED_FILETYPE_BULLANT,
00192         CSSED_FILETYPE_CLW,
00194         CSSED_FILETYPE_CAML,
00196         CSSED_FILETYPE_CRONTAB,
00198         CSSED_FILETYPE_ESCRIPT,
00200         CSSED_FILETYPE_EIFFEL,
00202         CSSED_FILETYPE_ERLANG,
00204         CSSED_FILETYPE_FORTH,
00206         CSSED_FILETYPE_FORTRAN,
00208         CSSED_FILETYPE_GUI4CLI,
00210         CSSED_FILETYPE_KIX,
00212         CSSED_FILETYPE_LOUT,
00214         CSSED_FILETYPE_LUA,
00216         CSSED_FILETYPE_MMIXAL,
00218         CSSED_FILETYPE_MPT,
00220         CSSED_FILETYPE_MSSQL,
00222         CSSED_FILETYPE_MATLAB,
00224         CSSED_FILETYPE_METAPOST,
00226         CSSED_FILETYPE_NSIS,
00228         CSSED_FILETYPE_PB,
00230         CSSED_FILETYPE_POV,
00232         CSSED_FILETYPE_PS,
00234         CSSED_FILETYPE_PASCAL,
00236         CSSED_FILETYPE_RUBY,
00238         CSSED_FILETYPE_SCRIPTOL,
00240         CSSED_FILETYPE_SPECMAN,
00242         CSSED_FILETYPE_TEX,
00244         CSSED_FILETYPE_VB,
00246         CSSED_FILETYPE_VHDL,
00248         CSSED_FILETYPE_VERILOG,
00250         CSSED_FILETYPE_YAML,
00251         // if you miss something here, just request  for inclusion
00253         CSSED_FILETYPE_USR,                     // user defined file types
00255         CSSED_FILETYPE_USR1,
00257         CSSED_FILETYPE_USR2,
00259         CSSED_FILETYPE_USR3,
00261         CSSED_FILETYPE_USR4,
00263         CSSED_FILETYPE_USR5,
00265         CSSED_FILETYPE_USR6,
00267         CSSED_FILETYPE_USR7,
00269         CSSED_FILETYPE_USR8,
00271         CSSED_FILETYPE_USR9
00272 } CssedFileTypeId;
00273 
00274 #define CSSED_NUMFILETYPES      (CSSED_FILETYPE_USR9+1)
00275 
00276 

Back to Index

This documentation is © Iago Rubio Sanfiz, 2004