Lines Matching refs:ls
382 String ls = System.getProperty("line.separator"); in createWordPrintHelper() local
397 …l 'exec perl -wS $0 ${1+\"$@\"}' " + ls ); in createWordPrintHelper()
398 …if 0; " + ls ); in createWordPrintHelper()
399 … strict; " + ls ); in createWordPrintHelper()
400 … Time::HiRes; " + ls ); in createWordPrintHelper()
401 …( $^O ne \"MSWin32\") " + ls ); in createWordPrintHelper()
402 … " + ls ); in createWordPrintHelper()
403 …rint 'Windows only.\\n'; " + ls ); in createWordPrintHelper()
404 …print_usage(); " + ls ); in createWordPrintHelper()
405 …exit(1); " + ls ); in createWordPrintHelper()
406 … " + ls ); in createWordPrintHelper()
407 … " + ls ); in createWordPrintHelper()
408 … Win32::OLE; " + ls ); in createWordPrintHelper()
409 … Win32::OLE::Const 'Microsoft Word'; " + ls ); in createWordPrintHelper()
410 … " + ls ); in createWordPrintHelper()
411 …----- usage ------ " + ls ); in createWordPrintHelper()
412 … print_usage() " + ls ); in createWordPrintHelper()
413 … " + ls ); in createWordPrintHelper()
414 …print STDERR \"Usage: word_print.pl <Word file> <name of printer> <output file> .\\n " + ls ); in createWordPrintHelper()
415 … Please use the same string for the name of the printer as you can find \\n " + ls ); in createWordPrintHelper()
416 … under Start-Control Panel-Printer and Faxes \\n " + ls ); in createWordPrintHelper()
417 … The name could look like the the following line: \\n " + ls ); in createWordPrintHelper()
418 … Apple LaserWriter II NT v47.0 \\n " + ls ); in createWordPrintHelper()
419 … Sample command line: \\n " + ls ); in createWordPrintHelper()
420 … execl_print.pl c:\\book1.doc Apple LaserWriter II NT v47.0 c:\\output\\book1.ps \\n\"; " + ls ); in createWordPrintHelper()
421 … " + ls ); in createWordPrintHelper()
422 … " + ls ); in createWordPrintHelper()
423 … " + ls ); in createWordPrintHelper()
424 …($#ARGV != 2) " + ls ); in createWordPrintHelper()
425 … " + ls ); in createWordPrintHelper()
426 …rint 'Too less arguments.\\n'; " + ls ); in createWordPrintHelper()
427 …print_usage(); " + ls ); in createWordPrintHelper()
428 …exit(1); " + ls ); in createWordPrintHelper()
429 … " + ls ); in createWordPrintHelper()
430 … " + ls ); in createWordPrintHelper()
431 out.write( "my $startWordTime = Time::HiRes::time(); " + ls ); in createWordPrintHelper()
432 …$Word = Win32::OLE->new('Word.Application'); " + ls ); in createWordPrintHelper()
433 out.write( "my $stopWordTime = Time::HiRes::time() - $startWordTime; " + ls ); in createWordPrintHelper()
434 …Word->{'Visible'} = 1; # if you want to see what's going on " + ls ); in createWordPrintHelper()
435 out.write( "# , ReadOnly => 1})" + ls ); in createWordPrintHelper()
436 out.write(ls); in createWordPrintHelper()
437 out.write( "my $startLoadWordTime = Time::HiRes::time(); " + ls ); in createWordPrintHelper()
438 …rd->Documents->Open({Filename => $ARGV[0]}) " + ls ); in createWordPrintHelper()
439 … || die('Unable to open document ', Win32::OLE->LastError()); " + ls ); in createWordPrintHelper()
440 out.write( "my $stopLoadWordTime = Time::HiRes::time() - $startLoadWordTime; " + ls ); in createWordPrintHelper()
441 out.write(ls); in createWordPrintHelper()
442 out.write( "my $startPrintWordTime = Time::HiRes::time(); " + ls); in createWordPrintHelper()
443 …$oldActivePrinte = $Word->{ActivePrinter} ; " + ls ); in createWordPrintHelper()
444 …rd->{ActivePrinter} = $ARGV[1]; " + ls ); in createWordPrintHelper()
445 …rd->ActiveDocument->PrintOut({ " + ls ); in createWordPrintHelper()
446 … Background => 0, " + ls ); in createWordPrintHelper()
447 … Append => 0, " + ls ); in createWordPrintHelper()
448 … Range => wdPrintAllDocument, " + ls ); in createWordPrintHelper()
449 … Item => wdPrintDocumentContent, " + ls ); in createWordPrintHelper()
450 … Copies => 1, " + ls ); in createWordPrintHelper()
451 … PageType => wdPrintAllPages, " + ls ); in createWordPrintHelper()
452 … PrintToFile => 1, " + ls ); in createWordPrintHelper()
453 … OutputFileName => $ARGV[2] " + ls ); in createWordPrintHelper()
454 …); " + ls ); in createWordPrintHelper()
455 …rd->{ActivePrinter} = $oldActivePrinte; " + ls ); in createWordPrintHelper()
456 out.write( "my $stopPrintWordTime = Time::HiRes::time() - $startPrintWordTime;" + ls); in createWordPrintHelper()
458 … out.write( "# ActiveDocument.Close(SaveChanges:=WdSaveOptions.wdDoNotSaveChanges)" + ls ); in createWordPrintHelper()
459 out.write( "my $sVersion = $Word->Application->Version();"+ls); in createWordPrintHelper()
460 …ent->Close({SaveChanges => 0}); " + ls ); in createWordPrintHelper()
461 …rd->Quit(); " + ls ); in createWordPrintHelper()
463 out.write( "local *FILE;" + ls); in createWordPrintHelper()
464 out.write( "if (open(FILE, \">$ENV{HOME}/msofficeloadtimes.txt\"))" + ls); in createWordPrintHelper()
465 out.write( "{" + ls); in createWordPrintHelper()
466 out.write( " print FILE \"name=$ARGV[0]\\n\";" + ls); in createWordPrintHelper()
467 out.write( " print FILE \"WordVersion=$sVersion\\n\";" + ls); in createWordPrintHelper()
468 out.write( " print FILE \"WordStartTime=$stopWordTime\\n\";" + ls); in createWordPrintHelper()
469 out.write( " print FILE \"WordLoadTime=$stopLoadWordTime\\n\";" + ls); in createWordPrintHelper()
470 out.write( " print FILE \"WordPrintTime=$stopPrintWordTime\\n\";" + ls); in createWordPrintHelper()
471 out.write( " close(FILE);" + ls); in createWordPrintHelper()
472 out.write( "}" + ls); in createWordPrintHelper()
515 String ls = System.getProperty("line.separator"); in createWordStoreHelper() local
535 …l 'exec perl -wS $0 ${1+\"$@\"}' " + ls ); in createWordStoreHelper()
536 …if 0; " + ls ); in createWordStoreHelper()
537 … strict; " + ls ); in createWordStoreHelper()
538 … " + ls ); in createWordStoreHelper()
539 …( $^O ne \"MSWin32\") " + ls ); in createWordStoreHelper()
540 … " + ls ); in createWordStoreHelper()
541 …rint 'Windows only.\\n'; " + ls ); in createWordStoreHelper()
542 …print_usage(); " + ls ); in createWordStoreHelper()
543 …exit(1); " + ls ); in createWordStoreHelper()
544 … " + ls ); in createWordStoreHelper()
545 … " + ls ); in createWordStoreHelper()
546 … Win32::OLE; " + ls ); in createWordStoreHelper()
547 … Win32::OLE::Const 'Microsoft Word'; " + ls ); in createWordStoreHelper()
548 … " + ls ); in createWordStoreHelper()
549 …----- usage ------ " + ls ); in createWordStoreHelper()
550 … print_usage() " + ls ); in createWordStoreHelper()
551 … " + ls ); in createWordStoreHelper()
552 …print STDERR \"Usage: storeViaWord.pl <Word file> <output filer> <output file> \\n\" " + ls ); in createWordStoreHelper()
553 … " + ls ); in createWordStoreHelper()
554 … " + ls ); in createWordStoreHelper()
555 … " + ls ); in createWordStoreHelper()
556 …($#ARGV != 2) " + ls ); in createWordStoreHelper()
557 … " + ls ); in createWordStoreHelper()
558 …rint 'Too less arguments.\\n'; " + ls ); in createWordStoreHelper()
559 …print_usage(); " + ls ); in createWordStoreHelper()
560 …exit(1); " + ls ); in createWordStoreHelper()
561 … " + ls ); in createWordStoreHelper()
562 … " + ls ); in createWordStoreHelper()
563 … " + ls ); in createWordStoreHelper()
564 …$Word = Win32::OLE->new('Word.Application'); " + ls ); in createWordStoreHelper()
565 …Word->{'Visible'} = 1; # if you want to see what's going on " + ls ); in createWordStoreHelper()
566 …rd->Documents->Open($ARGV[0]) " + ls ); in createWordStoreHelper()
567 … || die('Unable to open document ', Win32::OLE->LastError()); " + ls ); in createWordStoreHelper()
568 …$oldActivePrinte = $Word->{ActivePrinter} ; " + ls ); in createWordStoreHelper()
569 …rd->{ActivePrinter} = $ARGV[1]; " + ls ); in createWordStoreHelper()
570 …rd->ActiveDocument->PrintOut({ " + ls ); in createWordStoreHelper()
571 … Background => 0, " + ls ); in createWordStoreHelper()
572 … Append => 0, " + ls ); in createWordStoreHelper()
573 … Range => wdPrintAllDocument, " + ls ); in createWordStoreHelper()
574 … Item => wdPrintDocumentContent, " + ls ); in createWordStoreHelper()
575 … Copies => 1, " + ls ); in createWordStoreHelper()
576 … PageType => wdPrintAllPages, " + ls ); in createWordStoreHelper()
577 … PrintToFile => 1, " + ls ); in createWordStoreHelper()
578 … OutputFileName => $ARGV[2] " + ls ); in createWordStoreHelper()
579 …); " + ls ); in createWordStoreHelper()
580 …rd->{ActivePrinter} = $oldActivePrinte; " + ls ); in createWordStoreHelper()
581 …->savaAs($ARGV[2], $ARGV[1]); " + ls ); in createWordStoreHelper()
582 … out.write( "# ActiveDocument.Close(SaveChanges:=WdSaveOptions.wdDoNotSaveChanges)" + ls ); in createWordStoreHelper()
583 …ook->Close({SaveChanges => 0}); " + ls ); in createWordStoreHelper()
584 …rd->Quit(); " + ls ); in createWordStoreHelper()
597 String ls = System.getProperty("line.separator"); in createExcelPrintHelper() local
617 out.write("#BEGIN" + ls); in createExcelPrintHelper()
618 out.write("#{" + ls); in createExcelPrintHelper()
619 out.write("#" + ls); in createExcelPrintHelper()
620 out.write("# # insert HACK" + ls); in createExcelPrintHelper()
621 out.write("# unshift(@INC, '');" + ls); in createExcelPrintHelper()
622 out.write("#}" + ls); in createExcelPrintHelper()
623 … " + ls ); in createExcelPrintHelper()
624 … " + ls ); in createExcelPrintHelper()
625 …) " + ls ); in createExcelPrintHelper()
626 … " + ls ); in createExcelPrintHelper()
627 …\\n\"; " + ls ); in createExcelPrintHelper()
628 … " + ls ); in createExcelPrintHelper()
629 … " + ls ); in createExcelPrintHelper()
630 … " + ls ); in createExcelPrintHelper()
631 … " + ls ); in createExcelPrintHelper()
632 … " + ls ); in createExcelPrintHelper()
633 …th); " + ls ); in createExcelPrintHelper()
634 …Microsoft Excel'; " + ls ); in createExcelPrintHelper()
635 … " + ls ); in createExcelPrintHelper()
636 … " + ls ); in createExcelPrintHelper()
637 … " + ls ); in createExcelPrintHelper()
638 … " + ls ); in createExcelPrintHelper()
639 …printViaExcel.pl <Excel file> <name of printer> <output file> .\\n " + ls ); in createExcelPrintHelper()
640 … use the same string for the name of the printer as you can find \\n " + ls ); in createExcelPrintHelper()
641 …der Start-Control Panel-Printer and Faxes \\n " + ls ); in createExcelPrintHelper()
642 …me could look like the the following line: \\n " + ls ); in createExcelPrintHelper()
643 …LaserWriter II NT v47.0 \\n " + ls ); in createExcelPrintHelper()
644 … command line: \\n " + ls ); in createExcelPrintHelper()
645 …ecl_print.pl c:\\book1.xls Apple LaserWriter II NT v47.0 c:\\output\\book1.ps \\n\"; " + ls ); in createExcelPrintHelper()
646 … " + ls ); in createExcelPrintHelper()
647 … " + ls ); in createExcelPrintHelper()
648 … " + ls ); in createExcelPrintHelper()
649 … " + ls ); in createExcelPrintHelper()
650 … # die on errors... " + ls ); in createExcelPrintHelper()
651 … " + ls ); in createExcelPrintHelper()
652 … " + ls ); in createExcelPrintHelper()
653 … " + ls ); in createExcelPrintHelper()
654 … " + ls ); in createExcelPrintHelper()
655 …ess arguments.\\n\"; " + ls ); in createExcelPrintHelper()
656 …0] $ARGV[0]\\n\"; " + ls ); in createExcelPrintHelper()
657 …1] $ARGV[1]\\n\"; " + ls ); in createExcelPrintHelper()
658 …2] $ARGV[2]\\n\"; " + ls ); in createExcelPrintHelper()
659 … " + ls ); in createExcelPrintHelper()
660 … " + ls ); in createExcelPrintHelper()
661 … " + ls ); in createExcelPrintHelper()
662 … " + ls ); in createExcelPrintHelper()
663 …>GetActiveObject('Excel.Application') " + ls ); in createExcelPrintHelper()
664 …'Excel.Application', 'Quit'); # get already active Excel " + ls ); in createExcelPrintHelper()
665 … # application or open new " + ls ); in createExcelPrintHelper()
666 … " + ls ); in createExcelPrintHelper()
667 … " + ls ); in createExcelPrintHelper()
668 … " + ls ); in createExcelPrintHelper()
669 …books->Open( $ARGV[0] ); " + ls ); in createExcelPrintHelper()
670 …ies => 1, " + ls ); in createExcelPrintHelper()
671 …ivePrinter => $ARGV[1], " + ls ); in createExcelPrintHelper()
672 …oFileName => $ARGV[2], " + ls ); in createExcelPrintHelper()
673 …late => 1 " + ls ); in createExcelPrintHelper()
674 … " + ls ); in createExcelPrintHelper()
675 out.write( "# Close worksheets without store changes" + ls ); in createExcelPrintHelper()
676 …ook->Close({SaveChanges => 0}); " + ls ); in createExcelPrintHelper()
677 out.write( "my $sVersion = $Excel->Application->Version();"+ls); in createExcelPrintHelper()
678 … " + ls ); in createExcelPrintHelper()
679 out.write( "local *FILE;" + ls); in createExcelPrintHelper()
680 out.write( "if (open(FILE, \">$ENV{HOME}/msofficeloadtimes.txt\"))" + ls); in createExcelPrintHelper()
681 out.write( "{" + ls); in createExcelPrintHelper()
682 out.write( " print FILE \"name=$ARGV[0]\\n\";" + ls); in createExcelPrintHelper()
683 out.write( " print FILE \"ExcelVersion=$sVersion\\n\";" + ls); in createExcelPrintHelper()
687 out.write( " close(FILE);" + ls); in createExcelPrintHelper()
688 out.write( "}" + ls); in createExcelPrintHelper()
700 String ls = System.getProperty("line.separator"); in createExcelStoreHelper() local
718 …1+\"$@\"}' " + ls ); in createExcelStoreHelper()
719 … " + ls ); in createExcelStoreHelper()
720 … " + ls ); in createExcelStoreHelper()
721 …tically created. " + ls ); in createExcelStoreHelper()
722 … " + ls ); in createExcelStoreHelper()
723 …th); " + ls ); in createExcelStoreHelper()
724 …Microsoft Excel'; " + ls ); in createExcelStoreHelper()
725 … " + ls ); in createExcelStoreHelper()
726 … " + ls ); in createExcelStoreHelper()
727 … " + ls ); in createExcelStoreHelper()
728 … " + ls ); in createExcelStoreHelper()
729 …sage: savaViaExcel.pl <Excel file> <filefilter> <output file> .\\n " + ls ); in createExcelStoreHelper()
730 …ecl_print.pl c:\\book1.xls Apple LaserWriter II NT v47.0 c:\\output\\book1.ps \\n\"; " + ls ); in createExcelStoreHelper()
731 … " + ls ); in createExcelStoreHelper()
732 … " + ls ); in createExcelStoreHelper()
733 … " + ls ); in createExcelStoreHelper()
734 … " + ls ); in createExcelStoreHelper()
735 … # die on errors... " + ls ); in createExcelStoreHelper()
736 … " + ls ); in createExcelStoreHelper()
737 … " + ls ); in createExcelStoreHelper()
738 … " + ls ); in createExcelStoreHelper()
739 … " + ls ); in createExcelStoreHelper()
740 …ments.\\n\"; " + ls ); in createExcelStoreHelper()
741 … " + ls ); in createExcelStoreHelper()
742 … " + ls ); in createExcelStoreHelper()
743 … " + ls ); in createExcelStoreHelper()
744 … " + ls ); in createExcelStoreHelper()
745 …>GetActiveObject('Excel.Application') " + ls ); in createExcelStoreHelper()
746 …'Excel.Application', 'Quit'); # get already active Excel " + ls ); in createExcelStoreHelper()
747 … # application or open new " + ls ); in createExcelStoreHelper()
748 … " + ls ); in createExcelStoreHelper()
749 … " + ls ); in createExcelStoreHelper()
750 … " + ls ); in createExcelStoreHelper()
751 … " + ls ); in createExcelStoreHelper()
752 … " + ls ); in createExcelStoreHelper()
753 … " + ls ); in createExcelStoreHelper()
754 … " + ls ); in createExcelStoreHelper()
755 … " + ls ); in createExcelStoreHelper()
756 … " + ls ); in createExcelStoreHelper()
757 … " + ls ); in createExcelStoreHelper()
758 … " + ls ); in createExcelStoreHelper()
759 … " + ls ); in createExcelStoreHelper()
760 … " + ls); in createExcelStoreHelper()
761 … " + ls ); in createExcelStoreHelper()
762 … " + ls ); in createExcelStoreHelper()
763 … " + ls ); in createExcelStoreHelper()
764 …books->Open( $ARGV[0] ); " + ls ); in createExcelStoreHelper()
765 … = 0; " + ls ); in createExcelStoreHelper()
766 … " + ls ); in createExcelStoreHelper()
767 …erName, " + ls ); in createExcelStoreHelper()
768 … " + ls ); in createExcelStoreHelper()
769 … " + ls ); in createExcelStoreHelper()
770 … " + ls ); in createExcelStoreHelper()
771 … " + ls ); in createExcelStoreHelper()
772 …e, " + ls ); in createExcelStoreHelper()
773 …ssionChanges, " + ls ); in createExcelStoreHelper()
774 … " + ls ); in createExcelStoreHelper()
775 out.write( "# Close worksheets without store changes" + ls ); in createExcelStoreHelper()
776 out.write( "# $Book->Close({SaveChanges => 0}); " + ls ); in createExcelStoreHelper()
777 … " + ls ); in createExcelStoreHelper()
789 String ls = System.getProperty("line.separator"); in createPowerPointPrintHelper() local
808 …' " + ls ); in createPowerPointPrintHelper()
809 … " + ls ); in createPowerPointPrintHelper()
810 … " + ls ); in createPowerPointPrintHelper()
811 … " + ls ); in createPowerPointPrintHelper()
812 … " + ls ); in createPowerPointPrintHelper()
813 … " + ls ); in createPowerPointPrintHelper()
814 … " + ls ); in createPowerPointPrintHelper()
815 … " + ls ); in createPowerPointPrintHelper()
816 … " + ls ); in createPowerPointPrintHelper()
817 … " + ls ); in createPowerPointPrintHelper()
818 … " + ls ); in createPowerPointPrintHelper()
819 … " + ls ); in createPowerPointPrintHelper()
820 … " + ls ); in createPowerPointPrintHelper()
821 …oft PowerPoint'; " + ls ); in createPowerPointPrintHelper()
822 … " + ls ); in createPowerPointPrintHelper()
823 … " + ls ); in createPowerPointPrintHelper()
824 … " + ls ); in createPowerPointPrintHelper()
825 … " + ls ); in createPowerPointPrintHelper()
826 …point_print.pl <PowerPoint file> <name of printer> <output file> .\\n " + ls ); in createPowerPointPrintHelper()
827 …he same string for the name of the printer as you can find \\n " + ls ); in createPowerPointPrintHelper()
828 …art-Control Panel-Printer and Faxes \\n " + ls ); in createPowerPointPrintHelper()
829 …ld look like the the following line: \\n " + ls ); in createPowerPointPrintHelper()
830 …riter II NT v47.0 \\n " + ls ); in createPowerPointPrintHelper()
831 …nd line: \\n " + ls ); in createPowerPointPrintHelper()
832 …t_print.pl c:\\book.ppt Apple LaserWriter II NT v47.0 c:\\output\\book.ps \\n\"; " + ls ); in createPowerPointPrintHelper()
833 … " + ls ); in createPowerPointPrintHelper()
834 … " + ls ); in createPowerPointPrintHelper()
835 … " + ls ); in createPowerPointPrintHelper()
836 … " + ls ); in createPowerPointPrintHelper()
837 … # die on errors... " + ls ); in createPowerPointPrintHelper()
838 … " + ls ); in createPowerPointPrintHelper()
839 … " + ls ); in createPowerPointPrintHelper()
840 … " + ls ); in createPowerPointPrintHelper()
841 … " + ls ); in createPowerPointPrintHelper()
842 …n\"; " + ls ); in createPowerPointPrintHelper()
843 … " + ls ); in createPowerPointPrintHelper()
844 … " + ls ); in createPowerPointPrintHelper()
845 … " + ls ); in createPowerPointPrintHelper()
846 … " + ls ); in createPowerPointPrintHelper()
847 …GetActiveObject('PowerPoint.Application') " + ls ); in createPowerPointPrintHelper()
848 …Point.Application', 'Quit'); # get already active Excel " + ls ); in createPowerPointPrintHelper()
849 … # application or open new " + ls ); in createPowerPointPrintHelper()
850 … " + ls ); in createPowerPointPrintHelper()
851 … " + ls ); in createPowerPointPrintHelper()
852 … " + ls ); in createPowerPointPrintHelper()
853 … 1; " + ls ); in createPowerPointPrintHelper()
854 …oint->Presentations->Add; " + ls ); in createPowerPointPrintHelper()
855 …oint->Presentations->Open( $ARGV[0] ); " + ls ); in createPowerPointPrintHelper()
856 …e active printer in powerpoint " + ls ); in createPowerPointPrintHelper()
857 out.write( "# $Presentation->PrintOptions->{ActivePrinter} = $ARGV[1]; " + ls ); in createPowerPointPrintHelper()
858 … print \"Active printer is: \" . $Presentation->PrintOptions->{ActivePrinter} . \"\\n\"; " + ls ); in createPowerPointPrintHelper()
859 …s->{PrintInBackground} = 0; " + ls ); in createPowerPointPrintHelper()
860 … print in color and PrintColorType = 2 means print in gray " + ls ); in createPowerPointPrintHelper()
861 …s->{PrintColorType} = 1; " + ls ); in createPowerPointPrintHelper()
862 … " + ls ); in createPowerPointPrintHelper()
863 …rintToFile => $ARGV[2]}); " + ls ); in createPowerPointPrintHelper()
864 … " + ls ); in createPowerPointPrintHelper()
865 … printed\\n\"; " + ls ); in createPowerPointPrintHelper()
866 out.write( "my $sVersion = $Presentation->Application->Version();"+ls); in createPowerPointPrintHelper()
867 out.write( " $PowerPoint->Quit(); " + ls ); in createPowerPointPrintHelper()
869 out.write( "local *FILE;" + ls); in createPowerPointPrintHelper()
870 out.write( "if (open(FILE, \">$ENV{HOME}/msofficeloadtimes.txt\"))" + ls); in createPowerPointPrintHelper()
871 out.write( "{" + ls); in createPowerPointPrintHelper()
872 out.write( " print FILE \"name=$ARGV[0]\\n\";" + ls); in createPowerPointPrintHelper()
873 out.write( " print FILE \"PowerPointVersion=$sVersion\\n\";" + ls); in createPowerPointPrintHelper()
877 out.write( " close(FILE);" + ls); in createPowerPointPrintHelper()
878 out.write( "}" + ls); in createPowerPointPrintHelper()