mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Pavel Sanda's "PDFOptions" patch, part II
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20390 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
3ff14b8300
commit
21f0dd25f1
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -240,7 +240,7 @@
|
||||
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.
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user