mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
PDF options: reflect in UI mutually exclusive colorlinks and frames.
Backport 601abfe929
.
This commit is contained in:
parent
2e4cc60eec
commit
f73b86132c
@ -1762,6 +1762,8 @@ GuiDocument::GuiDocument(GuiView & lv)
|
|||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
connect(pdfSupportModule->pdfborderCB, SIGNAL(toggled(bool)),
|
connect(pdfSupportModule->pdfborderCB, SIGNAL(toggled(bool)),
|
||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
|
connect(pdfSupportModule->colorlinksCB, SIGNAL(toggled(bool)),
|
||||||
|
this, SLOT(colorlinksCB_adaptor(bool)));
|
||||||
connect(pdfSupportModule->colorlinksCB, SIGNAL(toggled(bool)),
|
connect(pdfSupportModule->colorlinksCB, SIGNAL(toggled(bool)),
|
||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
connect(pdfSupportModule->backrefCO, SIGNAL(activated(int)),
|
connect(pdfSupportModule->backrefCO, SIGNAL(activated(int)),
|
||||||
@ -3088,6 +3090,12 @@ void GuiDocument::classChanged_adaptor()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void GuiDocument::colorlinksCB_adaptor(bool enabled)
|
||||||
|
{
|
||||||
|
pdfSupportModule->pdfborderCB->setEnabled(!enabled);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void GuiDocument::classChanged()
|
void GuiDocument::classChanged()
|
||||||
{
|
{
|
||||||
int idx = latexModule->classCO->currentIndex();
|
int idx = latexModule->classCO->currentIndex();
|
||||||
@ -4732,6 +4740,10 @@ void GuiDocument::paramsToDialog()
|
|||||||
pdfSupportModule->pdfusetitleCB->setChecked(pdf.pdfusetitle);
|
pdfSupportModule->pdfusetitleCB->setChecked(pdf.pdfusetitle);
|
||||||
pdfSupportModule->colorlinksCB->setChecked(pdf.colorlinks);
|
pdfSupportModule->colorlinksCB->setChecked(pdf.colorlinks);
|
||||||
|
|
||||||
|
//hyperref considers colorlinks to be mutually exlusive to borders
|
||||||
|
//for workaround see manuals
|
||||||
|
pdfSupportModule->pdfborderCB->setEnabled(!pdf.colorlinks);
|
||||||
|
|
||||||
nn = findToken(backref_opts, pdf.backref);
|
nn = findToken(backref_opts, pdf.backref);
|
||||||
if (nn >= 0)
|
if (nn >= 0)
|
||||||
pdfSupportModule->backrefCO->setCurrentIndex(nn);
|
pdfSupportModule->backrefCO->setCurrentIndex(nn);
|
||||||
|
@ -133,6 +133,7 @@ private Q_SLOTS:
|
|||||||
void browseMaster();
|
void browseMaster();
|
||||||
void classChanged();
|
void classChanged();
|
||||||
void classChanged_adaptor();
|
void classChanged_adaptor();
|
||||||
|
void colorlinksCB_adaptor(bool);
|
||||||
void languagePackageChanged(int);
|
void languagePackageChanged(int);
|
||||||
void biblioChanged();
|
void biblioChanged();
|
||||||
void rescanBibFiles();
|
void rescanBibFiles();
|
||||||
|
@ -281,6 +281,9 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="colorlinksCB">
|
<widget class="QCheckBox" name="colorlinksCB">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Mutually exclusive with frames around links, see manual.</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>C&olor links</string>
|
<string>C&olor links</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -31,6 +31,10 @@ What's new
|
|||||||
the outliner, even of they do not have a label yet. In the latter
|
the outliner, even of they do not have a label yet. In the latter
|
||||||
case, a label is autonatically inserted.
|
case, a label is autonatically inserted.
|
||||||
|
|
||||||
|
- Document PDF settings allow color links and frames around them.
|
||||||
|
These two settings are mutually exclusive by default and we signal
|
||||||
|
that within UI now. Workarounds can be found our and hyperref manual.
|
||||||
|
|
||||||
|
|
||||||
* DOCUMENTATION AND LOCALIZATION
|
* DOCUMENTATION AND LOCALIZATION
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user