2
* This file is part of the apvlv package
4
* Copyright (C) 2008 Alf.
6
* Contact: Alf <naihe2010@gmail.com>
8
* This program is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU General Public License
10
* as published by the Free Software Foundation; either version 2.0 of
11
* the License, or (at your option) any later version.
13
* This program is distributed in the hope that it will be useful, but
14
* WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* General Public License for more details.
18
* You should have received a copy of the GNU General Public
19
* License along with this program; if not, write to the Free Software
20
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23
/* @PPCFILE ApvlvCore.hpp
25
* Author: Alf <naihe2010@gmail.com>
27
/* @date Created: 2008/09/30 00:00:00 Alf */
29
#ifndef _APVLV_CORE_H_
30
#define _APVLV_CORE_H_
33
# include "config.hpp"
36
#include "ApvlvUtil.hpp"
52
virtual ~ApvlvCoreStatus ();
54
virtual GtkWidget *widget ();
56
virtual void active (bool act);
58
virtual void setsize (int w, int h);
71
virtual ~ApvlvCore ();
73
virtual void inuse (bool use);
75
virtual bool inuse ();
79
virtual GtkWidget *widget ();
81
virtual ApvlvCore *copy ();
83
virtual bool loadfile (const char *file, bool check = true);
85
virtual const char *filename ();
87
virtual gint getrotate ();
89
virtual gint pagenumber ();
91
virtual gint pagesum ();
93
virtual void showpage (gint, gdouble);
94
virtual void refresh ();
96
virtual gdouble zoomvalue ();
98
virtual void setzoom (const char *s);
99
virtual void setzoom (double d);
101
virtual void zoomin ();
102
virtual void zoomout ();
104
virtual void setactive (bool act);
106
virtual gdouble scrollrate ();
108
virtual gboolean scrollto (double s);
110
virtual void scrollup (int times);
111
virtual void scrolldown (int times);
112
virtual void scrollleft (int times);
113
virtual void scrollright (int times);
115
virtual void setsize (int wid, int hei);
117
virtual returnType process (int times, guint keyval);
151
double mPagex, mPagey;
153
double mVrate, mHrate;
159
GtkAdjustment *mVaj, *mHaj;
164
// the document scrolled window
165
GtkWidget *mScrollwin;
171
ApvlvCoreStatus *mStatus;