change test to use Calibri instead of Cambria
[LibreOffice.git] / sd / res / webview / show.pl
blob3252eaeb8c3b429479be7dd4aea0ab81f0849fdd
1 #!/usr/bin/env perl
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 # This file incorporates work covered by the following license notice:
11 # Licensed to the Apache Software Foundation (ASF) under one or more
12 # contributor license agreements. See the NOTICE file distributed
13 # with this work for additional information regarding copyright
14 # ownership. The ASF licenses this file to you under the Apache
15 # License, Version 2.0 (the "License"); you may not use this file
16 # except in compliance with the License. You may obtain a copy of
17 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 require "common.pl";
22 print "Content-type: text/html\n\n";
24 # get current and next picture
25 $sCurrPic = join( "", common::File_read( "currpic.txt" ) );
26 @aPictureArray = common::File_read( "picture.txt" );
28 # not last picture or wrong input ?
29 if( abs( $sCurrPic ) > 0 )
31 $nCurrPic = abs( $sCurrPic );
32 $nPictureArrayLen = @aPictureArray;
33 if( $nCurrPic < $nPictureArrayLen )
35 $sPictureName1 = ( split( ";", @aPictureArray[ $nCurrPic ] ) )[ 1 ];
36 $sPictureName2 = ( split( ";", @aPictureArray[ $nCurrPic + 1 ] ) )[ 1 ];
38 else
40 $sPictureName1 = ( split( ";", @aPictureArray[ $nCurrPic ] ) )[ 1 ];
41 $sPictureName2 = $sPictureName1;
45 print "<HTML>";
47 print "<HEAD>";
48 print "<TITLE>$$1</TITLE>";
49 print "</HEAD>";
51 print "<BODY bgcolor=\"white\">";
52 print "<P ALIGN=CENTER><IMG src=\"" . $sPictureName1 . "\" width=$$4 height=$$5 border=0>";
53 print "<P><IMG src=\"" . $sPictureName2 . "\" width=1 height=1 border=0>";
54 print "</BODY>";
56 print "</HTML>";