$search
00001 00002 /*************************************************************************** 00003 * xpdfctrl.h - ROS slide presenter 00004 * 00005 * Created: Fri Sep 3 11:12:12 2010 00006 * Copyright 2010 Tim Niemueller [www.niemueller.de] 00007 * 2010 Carnegie Mellon University 00008 * 2010 Intel Labs Pittsburgh, Intel Research 00009 * 00010 ****************************************************************************/ 00011 00012 /* This program is free software; you can redistribute it and/or modify 00013 * it under the terms of the GNU General Public License as published by 00014 * the Free Software Foundation; either version 2 of the License, or 00015 * (at your option) any later version. 00016 * 00017 * This program is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU Library General Public License for more details. 00021 * 00022 * Read the full text in the LICENSE.GPL file in the doc directory. 00023 */ 00024 00025 class XpdfControl 00026 { 00027 public: 00028 XpdfControl(const char *remote); 00029 ~XpdfControl(); 00030 00031 void next_page(); 00032 void prev_page(); 00033 void goto_page(unsigned int page); 00034 void load_file(const char *filename); 00035 void hide(); 00036 00037 private: 00038 void execute_command(const char *format, ...); 00039 00040 private: 00041 bool __hidden; 00042 char *__remote; 00043 };