source: trunk/Lucide/SOURCE/gui/lucide.h @ 88

Last change on this file since 88 was 88, checked in by Eugene Romanenko, 15 years ago

UI improvements, save files, ability to compile plugins with gcc, saveAs for djvu plugin, djvu plugin compiled with gcc, get rid of ddjvuapi.dll

File size: 3.2 KB
Line 
1/* ***** BEGIN LICENSE BLOCK *****
2 * Version: CDDL 1.0/LGPL 2.1
3 *
4 * The contents of this file are subject to the COMMON DEVELOPMENT AND
5 * DISTRIBUTION LICENSE (CDDL) Version 1.0 (the "License"); you may not use
6 * this file except in compliance with the License. You may obtain a copy of
7 * the License at http://www.sun.com/cddl/
8 *
9 * Software distributed under the License is distributed on an "AS IS" basis,
10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 * for the specific language governing rights and limitations under the
12 * License.
13 *
14 * The Initial Developer of the Original Code is
15 * Eugene Romanenko, netlabs.org.
16 * Portions created by the Initial Developer are Copyright (C) 2006
17 * the Initial Developer. All Rights Reserved.
18 *
19 * Contributor(s):
20 *
21 * Alternatively, the contents of this file may be used under the terms of
22 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
23 * in which case the provisions of the LGPL are applicable instead of those
24 * above. If you wish to allow use of your version of this file only under the
25 * terms of the LGPL, and not to allow others to use your version of this file
26 * under the terms of the CDDL, indicate your decision by deleting the
27 * provisions above and replace them with the notice and other provisions
28 * required by the LGPL. If you do not delete the provisions above, a recipient
29 * may use your version of this file under the terms of any one of the CDDL
30 * or the LGPL.
31 *
32 * ***** END LICENSE BLOCK ***** */
33
34
35#ifndef __LUCIDE_H
36#define __LUCIDE_H
37
38extern const char *appName;
39extern const char *appVersion;
40extern HAB hab;
41extern char deffont[];
42extern int deffontlen;
43
44class LuDocument;
45class ProgressDlg;
46
47enum PgLayout { SinglePage = 0, Continuous = 1 };
48
49struct LuWindowPos
50{
51    SWP    Swp;
52    USHORT XRestore;
53    USHORT YRestore;
54    USHORT CXRestore;
55    USHORT CYRestore;
56    USHORT XMinimize;
57    USHORT YMinimize;
58};
59
60class Lucide
61{
62    private:
63   
64                static ProgressDlg *loadProgressDlg;
65                static char docName[ CCHMAXPATH ];
66                static bool docLoaded;
67                static char *loadError;
68                static bool isMaxview;
69                static bool isFullscreen;
70                static LuWindowPos winPos;
71   
72        static void setOfPages( long pages );
73        static void enableZoomMenus();
74        static void setZoomChecks( SHORT cmd, SHORT cbind, double zoom );
75        static void loadthread( void *p );
76
77    public:
78        static bool dontSwitchPage;
79        static SHORT splitterPos;
80        static bool showIndex;
81       
82        static void openDocument();
83        static void loadDocument( const char *fn );
84        static void saveDocumentAs();
85        static void setDocument( LuDocument *_doc );
86        static void checkNavigationMenus();
87        static void checkZoomMenus();
88        static void checkMenus();
89        static void checkNavpane();
90        static void goToPage( long page );
91        static void setZoom( double zoom );
92        static void enableCopy( bool enable );
93        static void setPageLayout( PgLayout layout );
94        static void toggleMaxview();
95        static void toggleFullscreen();
96};
97
98#endif // __LUCIDE_H
99
Note: See TracBrowser for help on using the repository browser.