plugin_config.h

Go to the documentation of this file.
00001 /*
00002  * File Name: plugin_config.h
00003  */
00004 
00005 /*
00006  * This file is part of uds-plugin-common.
00007  *
00008  * uds-plugin-common is free software: you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation, either version 2 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * uds-plugin-common is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with this program. If not, see <http://www.gnu.org/licenses/>.
00020  */
00021 
00022 /**
00023  * Copyright (C) 2008 iRex Technologies B.V.
00024  * All rights reserved.
00025  */
00026 
00027 #ifndef PLUGIN_CONFIG_H_
00028 #define PLUGIN_CONFIG_H_
00029 
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif
00033 
00034     // TODO. remove unnecessary defines. 
00035     // change name from config to constants.
00036 #define PLUGIN_MAX_ERROR_MSG_LENGTH     1024    /**< The max error message length. Whenever you change it you must increase it. */
00037 #define PLUGIN_MAX_PATH                 1025
00038 
00039 /**
00040  * Zoom factor.
00041  */
00042 #define PLUGIN_ZOOM_INVALID               0.0f
00043 #define PLUGIN_ZOOM_TO_PAGE              -1.0f
00044 #define PLUGIN_ZOOM_TO_WIDTH             -2.0f
00045 #define PLUGIN_ZOOM_TO_CROP              -3.0f
00046 #define PLUGIN_ZOOM_TO_CROP_BY_PAGE     -10.0f
00047 #define PLUGIN_ZOOM_TO_CROP_BY_WIDTH    -11.0f
00048 #define PLUGIN_ZOOM_DEFAULT             PLUGIN_ZOOM_TO_PAGE
00049 #define PLUGIN_ZOOM_MAX                 200.0f
00050 #define PLUGIN_ZOOM_MIN                  75.0f
00051 
00052 
00053 /**
00054  * Font size in points.
00055  */
00056 #define PLUGIN_FONT_SIZE_INVALID         0
00057 #define PLUGIN_FONT_SIZE_DEFAULT        16
00058 
00059 /**
00060  * Page number.
00061  */
00062 #define PLUGIN_MAX_ANCHOR_LENGTH        1024
00063 #define PLUGIN_DEFAULT_START_PAGE       1
00064 #define PLUGIN_DEFAULT_PAGE_NUMBER      1
00065 #define PLUGIN_DEFAULT_PAGE_COUNT       1
00066 #define PLUGIN_PAGE_NUMBER_PENDING      -1  /**< The total page number is still unknown. */
00067 #define PLUGIN_INVALID_PAGE_NUMBER      -2
00068 
00069 /**
00070  * Encoding.
00071  */
00072 #define PLUGIN_ENCODING_MAX_LENGTH      256
00073 
00074 #ifdef __cplusplus
00075 }
00076 #endif 
00077 
00078 #endif
00079 
Generated by  doxygen 1.6.2-20100208