plugin_view_settings.h

Go to the documentation of this file.
00001 /*
00002  * File Name: plugin_view_settings.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_VIEW_SETTINGS_H_
00028 #define PLUGIN_VIEW_SETTINGS_H_
00029 
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif
00033 
00034 #include "plugin_type.h"
00035 #include "plugin_unknown.h"
00036 
00037 /**
00038  * @brief Universal Document Shell Plugin View Settings interface.
00039  * Through IPluginViewSettings, callers can set the viewing-related attributes
00040  * to plugin. The viewing attribute set in this interface would affect the 
00041  * rendering of all pages in current document. And this attribute would affect
00042  * all kinds of the document formats. IPluginViewSettings currently supports:
00043  * - Display Size
00044  * - Dot per Inch(DPI)
00045  */
00046 typedef struct
00047 {
00048     /**
00049      * @brief Set display size of the view
00050      * @param thiz IPluginUnknown pointer of the view object.
00051      * @param Width of the display size to be set.
00052      * @param Height of the display size to be set.
00053      * @return TODO. Add return codes here.
00054      */
00055     PluginStatus (* set_display_size)( IPluginUnknown *thiz,
00056                                        const int       width,
00057                                        const int       height );
00058 
00059 
00060     /**
00061      * @brief Set DPI.
00062      * @param thiz IPluginUnknown pointer of the view object
00063      * @param DIP to be set
00064      * @return TODO. Add return codes here.
00065      */
00066     PluginStatus (* set_DPI)( IPluginUnknown        *thiz,
00067                               const unsigned int    dpi );
00068 
00069      /**
00070      * @brief Set Color Depth.
00071      * @param thiz IPluginUnknown pointer of the view object
00072      * @param Color depth(by bits) to be set.
00073      * @return TODO. Add return codes here.
00074      */
00075     PluginStatus (* set_color_depth)( IPluginUnknown        *thiz,
00076                                       const unsigned int    color_depth );
00077 
00078 } IPluginViewSettings;
00079 
00080 #ifdef __cplusplus
00081 }
00082 #endif 
00083 
00084 #endif
00085 
Generated by  doxygen 1.6.2-20100208