~ubuntu-branches/ubuntu/raring/djvulibre/raring

« back to all changes in this revision

Viewing changes to gui/djview/qd_viewer.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-18 11:21:21 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070518112121-rt7fum0zi0xoepm6
Tags: 3.5.19-2ubuntu1
* debian/control: Maintainer: Ubuntu Core Developers
  <ubuntu-devel-discuss@lists.ubuntu.com>.
* debian/rules: call dh_iconcache. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
//C- Copyright (c) 2001  AT&T
6
6
//C-
7
7
//C- This software is subject to, and may be distributed under, the
8
 
//C- GNU General Public License, Version 2. The license should have
 
8
//C- GNU General Public License, either Version 2 of the license,
 
9
//C- or (at your option) any later version. The license should have
9
10
//C- accompanied the software or you may obtain a copy of the license
10
11
//C- from the Free Software Foundation at http://www.fsf.org .
11
12
//C-
14
15
//C- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
16
//C- GNU General Public License for more details.
16
17
//C- 
17
 
//C- DjVuLibre-3.5 is derived from the DjVu(r) Reference Library
18
 
//C- distributed by Lizardtech Software.  On July 19th 2002, Lizardtech 
19
 
//C- Software authorized us to replace the original DjVu(r) Reference 
20
 
//C- Library notice by the following text (see doc/lizard2002.djvu):
 
18
//C- DjVuLibre-3.5 is derived from the DjVu(r) Reference Library from
 
19
//C- Lizardtech Software.  Lizardtech Software has authorized us to
 
20
//C- replace the original DjVu(r) Reference Library notice by the following
 
21
//C- text (see doc/lizard2002.djvu and doc/lizardtech2007.djvu):
21
22
//C-
22
23
//C-  ------------------------------------------------------------------
23
24
//C- | DjVu (r) Reference Library (v. 3.5)
26
27
//C- | 6,058,214 and patents pending.
27
28
//C- |
28
29
//C- | This software is subject to, and may be distributed under, the
29
 
//C- | GNU General Public License, Version 2. The license should have
 
30
//C- | GNU General Public License, either Version 2 of the license,
 
31
//C- | or (at your option) any later version. The license should have
30
32
//C- | accompanied the software or you may obtain a copy of the license
31
33
//C- | from the Free Software Foundation at http://www.fsf.org .
32
34
//C- |
51
53
//C- | MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
52
54
//C- +------------------------------------------------------------------
53
55
// 
54
 
// $Id: qd_viewer.cpp,v 1.37 2006/04/07 14:24:39 leonb Exp $
55
 
// $Name: debian_version_3_5_17-3 $
 
56
// $Id: qd_viewer.cpp,v 1.41 2007/03/25 20:48:23 leonb Exp $
 
57
// $Name: debian_version_3_5_19-2 $
56
58
 
57
59
#ifdef HAVE_CONFIG_H
58
60
# include "config.h"
886
888
   // Check the page key
887
889
   GUTF8String key = qkey_in;
888
890
   GP<DjVuImage> new_dimg;
889
 
   if (key[0] != '=')
 
891
   if (key[0] != '$')
890
892
     new_dimg = doc->get_page(key, false, page_port.getPort());
891
893
   if (! new_dimg)
892
894
     {
893
 
       if (key[0] == '=')
 
895
       if (key[0] == '$')
894
896
         key = GUTF8String(((const char*)key)+1);
895
897
       if (key.is_int())
896
898
         new_dimg=doc->get_page(key.toInt()-1, false, page_port.getPort());
1286
1288
     } 
1287
1289
   else
1288
1290
     {
1289
 
       GURL base = dimg->get_djvu_file()->get_url().base();
 
1291
       GURL base = djvu_doc->get_init_url().base();
1290
1292
       base.clear_all_arguments();
1291
1293
       url=GURL::UTF8(url_in,base);
1292
1294
     }
1549
1551
       try
1550
1552
         {
1551
1553
           GURL helpurl;
1552
 
           helpurl = getDjVuDataFile(DJVIEW_HELP_DJVU);
 
1554
           helpurl = getDjViewDataFile(DJVIEW_HELP_DJVU);
1553
1555
           if ( helpurl.is_empty() )
1554
 
             helpurl = getDjVuDataFile(DJVIEW_HELP_HTML);
 
1556
             helpurl = getDjViewDataFile(DJVIEW_HELP_HTML);
1555
1557
           if ( helpurl.is_empty() )
1556
1558
             helpurl = GURL::UTF8(GUTF8String(DJVIEW_HELP_URL));
1557
1559