]> git.lyx.org Git - features.git/commitdiff
Pavel Sanda's "PDFOptions" patch, part II
authorAndré Pönitz <poenitz@gmx.net>
Thu, 20 Sep 2007 22:32:20 +0000 (22:32 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Thu, 20 Sep 2007 22:32:20 +0000 (22:32 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20390 a592a061-630c-0410-9148-cb99ea01b6c8

development/qmake/qt4/qt4.pro
development/qmake/src/src.pro
development/scons/scons_manifest.py
lib/CREDITS
lib/lyx2lyx/lyx_1_6.py

index 8766ca71644dc2d1cff272cb64b4696227fc8cc7..f90bea2a0e293e41ffe6d95c08179922d27d4518 100644 (file)
@@ -88,7 +88,6 @@ HPP += PanelStack.h
 HPP += pch.h
 HPP += qlkey.h
 HPP += qt_helpers.h
-HPP += SocketCallback.h
 HPP += TocModel.h
 HPP += TocWidget.h
 HPP += Validator.h
@@ -168,7 +167,6 @@ CPP += LengthCombo.cpp
 CPP += LyXFileDialog.cpp
 CPP += PanelStack.cpp
 CPP += qt_helpers.cpp
-CPP += SocketCallback.cpp
 CPP += TocModel.cpp
 CPP += TocWidget.cpp
 CPP += Validator.cpp
index 2c44a0a2ffa3576be73de8350188323e53c04586..2a5c65cd68fdaf2b5f50f34435d64aa0156e5d41 100644 (file)
@@ -69,6 +69,7 @@ HPP += Messages.h
 HPP += MetricsInfo.h
 HPP += Mover.h
 HPP += OutputParams.h
+HPP += PDFOptions.h
 HPP += PSpell.h
 HPP += ParIterator.h
 HPP += Paragraph.h
@@ -178,6 +179,7 @@ CPP += Messages.cpp
 CPP += MetricsInfo.cpp
 CPP += Mover.cpp
 CPP += OutputParams.cpp
+CPP += PDFOptions.cpp
 #CPP += PSpell.cpp
 CPP += ParIterator.cpp
 CPP += Paragraph.cpp
index 36b5443460f8c920133d81aa83da7bbe404f7a0f..3be332a6196ae665165d356fbb47c3bff762d220 100644 (file)
@@ -92,6 +92,7 @@ src_header_files = Split('''
     ModuleList.h
     Mover.h
     OutputParams.h
+    PDFOptions.h
     PSpell.h
     ParIterator.h
     Paragraph.h
@@ -201,6 +202,7 @@ src_pre_files = Split('''
     MetricsInfo.cpp
     Mover.cpp
     OutputParams.cpp
+    PDFOptions.cpp
     ParIterator.cpp
     Paragraph.cpp
     ParagraphMetrics.cpp
index 33544f67a4c04539172295d4e6712f367938fead..9c6df57e3777ae51faec96a88256ccf6e86d62b1 100644 (file)
    Support for kluwer and ijmpd document classes
 @bSanda Pavel
 @iE-mail: ps@ucw !cz
-   Czech translation
+   Czech translation, pdf support
 @bBo Peng
 @iE-mail: ben.bob@gmail.com
    Conversion of all shell scripts to Python, session, view-source, auto-view features and scons build system.
index 84f8ba663385150fb1efda66a7a555e568b38acc..3506b4ff999821aec06d06975cb0ed658413aea5 100644 (file)
@@ -178,6 +178,24 @@ def remove_manifest(document):
     "Remove the manifest section"
     document.manifest = None
 
+##
+#  Discard PDF options for hyperref
+#
+
+def revert_pdf_options(document):
+    "Revert PDF options for hyperref. "
+    i = 0
+    while 1:
+        i = find_tokens(document.header, [ "\\use_hyperref", "\\pdf_title", "\\pdf_author", "\\pdf_subject",
+                                           "\\pdf_keywords", "\\pdf_bookmarks", "\\pdf_bookmarksnumbered",
+                                           "\\pdf_bookmarksopen", "\\pdf_bookmarksopenlevel", "\\pdf_breaklinks",
+                                           "\\pdf_border", "\\pdf_colorlinks", "\\pdf_backref", "\\pdf_pagebackref",
+                                          "\\pdf_fullscreen", "\\pdf_quoted_options", "\\pdf_store_options" ], i)
+        if i == -1:
+            return
+        document.body[i] = ""
+        i = i + 1
+
 
 def remove_inzip_options(document):
     "Remove inzipName and embed options from the Graphics inset"