mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 05:01:49 +00:00
GuiDocument.cpp: - replace bookmarkslevel edit field by a spinbox (by Pavel)
- fix the pagemode handling git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20442 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
65a9b1a683
commit
bf57381fb4
@ -614,7 +614,7 @@ GuiDocumentDialog::GuiDocumentDialog(LyXView & lv)
|
|||||||
// PDF support
|
// PDF support
|
||||||
pdfSupportModule = new UiWidget<Ui::PDFSupportUi>;
|
pdfSupportModule = new UiWidget<Ui::PDFSupportUi>;
|
||||||
|
|
||||||
connect(pdfSupportModule->use_hyperrefCB, SIGNAL(toggled(bool)),
|
connect(pdfSupportModule->use_hyperrefGB, SIGNAL(toggled(bool)),
|
||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
connect(pdfSupportModule->titleLE, SIGNAL(textChanged(const QString &)),
|
connect(pdfSupportModule->titleLE, SIGNAL(textChanged(const QString &)),
|
||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
@ -630,7 +630,7 @@ GuiDocumentDialog::GuiDocumentDialog(LyXView & lv)
|
|||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
connect(pdfSupportModule->bookmarksopenGB, SIGNAL(toggled(bool)),
|
connect(pdfSupportModule->bookmarksopenGB, SIGNAL(toggled(bool)),
|
||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
connect(pdfSupportModule->bookmarksopenlevelLE, SIGNAL(textChanged(const QString &)),
|
connect(pdfSupportModule->bookmarksopenlevelSB, SIGNAL(valueChanged(int)),
|
||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
connect(pdfSupportModule->breaklinksCB, SIGNAL(toggled(bool)),
|
connect(pdfSupportModule->breaklinksCB, SIGNAL(toggled(bool)),
|
||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
@ -1229,7 +1229,7 @@ void GuiDocumentDialog::apply(BufferParams & params)
|
|||||||
|
|
||||||
// PDF support
|
// PDF support
|
||||||
PDFOptions & pdf = params.pdfoptions();
|
PDFOptions & pdf = params.pdfoptions();
|
||||||
pdf.use_hyperref = pdfSupportModule->use_hyperrefCB->isChecked();
|
pdf.use_hyperref = pdfSupportModule->use_hyperrefGB->isChecked();
|
||||||
pdf.title = fromqstr(pdfSupportModule->titleLE->text());
|
pdf.title = fromqstr(pdfSupportModule->titleLE->text());
|
||||||
pdf.author = fromqstr(pdfSupportModule->authorLE->text());
|
pdf.author = fromqstr(pdfSupportModule->authorLE->text());
|
||||||
pdf.subject = fromqstr(pdfSupportModule->subjectLE->text());
|
pdf.subject = fromqstr(pdfSupportModule->subjectLE->text());
|
||||||
@ -1238,8 +1238,7 @@ void GuiDocumentDialog::apply(BufferParams & params)
|
|||||||
pdf.bookmarks = pdfSupportModule->bookmarksGB->isChecked();
|
pdf.bookmarks = pdfSupportModule->bookmarksGB->isChecked();
|
||||||
pdf.bookmarksnumbered = pdfSupportModule->bookmarksnumberedCB->isChecked();
|
pdf.bookmarksnumbered = pdfSupportModule->bookmarksnumberedCB->isChecked();
|
||||||
pdf.bookmarksopen = pdfSupportModule->bookmarksopenGB->isChecked();
|
pdf.bookmarksopen = pdfSupportModule->bookmarksopenGB->isChecked();
|
||||||
pdf.bookmarksopenlevel =
|
pdf.bookmarksopenlevel = pdfSupportModule->bookmarksopenlevelSB->value();
|
||||||
fromqstr(pdfSupportModule->bookmarksopenlevelLE->text());
|
|
||||||
|
|
||||||
pdf.breaklinks = pdfSupportModule->breaklinksCB->isChecked();
|
pdf.breaklinks = pdfSupportModule->breaklinksCB->isChecked();
|
||||||
pdf.pdfborder = pdfSupportModule->pdfborderCB->isChecked();
|
pdf.pdfborder = pdfSupportModule->pdfborderCB->isChecked();
|
||||||
@ -1248,6 +1247,8 @@ void GuiDocumentDialog::apply(BufferParams & params)
|
|||||||
pdf.pagebackref = pdfSupportModule->pagebackrefCB->isChecked();
|
pdf.pagebackref = pdfSupportModule->pagebackrefCB->isChecked();
|
||||||
if (pdfSupportModule->fullscreenCB->isChecked())
|
if (pdfSupportModule->fullscreenCB->isChecked())
|
||||||
pdf.pagemode = pdf.pagemode_fullscreen;
|
pdf.pagemode = pdf.pagemode_fullscreen;
|
||||||
|
else
|
||||||
|
pdf.pagemode.clear();
|
||||||
pdf.quoted_options = fromqstr(pdfSupportModule->optionsLE->text());
|
pdf.quoted_options = fromqstr(pdfSupportModule->optionsLE->text());
|
||||||
if (pdf.use_hyperref || !pdf.empty())
|
if (pdf.use_hyperref || !pdf.empty())
|
||||||
pdf.store_options = true;
|
pdf.store_options = true;
|
||||||
@ -1536,7 +1537,7 @@ void GuiDocumentDialog::updateParams(BufferParams const & params)
|
|||||||
|
|
||||||
// PDF support
|
// PDF support
|
||||||
PDFOptions const & pdf = params.pdfoptions();
|
PDFOptions const & pdf = params.pdfoptions();
|
||||||
pdfSupportModule->use_hyperrefCB->setChecked(pdf.use_hyperref);
|
pdfSupportModule->use_hyperrefGB->setChecked(pdf.use_hyperref);
|
||||||
pdfSupportModule->titleLE->setText(toqstr(pdf.title));
|
pdfSupportModule->titleLE->setText(toqstr(pdf.title));
|
||||||
pdfSupportModule->authorLE->setText(toqstr(pdf.author));
|
pdfSupportModule->authorLE->setText(toqstr(pdf.author));
|
||||||
pdfSupportModule->subjectLE->setText(toqstr(pdf.subject));
|
pdfSupportModule->subjectLE->setText(toqstr(pdf.subject));
|
||||||
@ -1546,8 +1547,7 @@ void GuiDocumentDialog::updateParams(BufferParams const & params)
|
|||||||
pdfSupportModule->bookmarksnumberedCB->setChecked(pdf.bookmarksnumbered);
|
pdfSupportModule->bookmarksnumberedCB->setChecked(pdf.bookmarksnumbered);
|
||||||
pdfSupportModule->bookmarksopenGB->setChecked(pdf.bookmarksopen);
|
pdfSupportModule->bookmarksopenGB->setChecked(pdf.bookmarksopen);
|
||||||
|
|
||||||
pdfSupportModule->bookmarksopenlevelLE->setText(
|
pdfSupportModule->bookmarksopenlevelSB->setValue(pdf.bookmarksopenlevel);
|
||||||
toqstr(pdf.bookmarksopenlevel));
|
|
||||||
|
|
||||||
pdfSupportModule->breaklinksCB->setChecked(pdf.breaklinks);
|
pdfSupportModule->breaklinksCB->setChecked(pdf.breaklinks);
|
||||||
pdfSupportModule->pdfborderCB->setChecked(pdf.pdfborder);
|
pdfSupportModule->pdfborderCB->setChecked(pdf.pdfborder);
|
||||||
|
Loading…
Reference in New Issue
Block a user