diff --git a/lib/ui/stdmenus.ui b/lib/ui/stdmenus.ui index 0cd352acfa..80425eb848 100644 --- a/lib/ui/stdmenus.ui +++ b/lib/ui/stdmenus.ui @@ -380,6 +380,7 @@ Menuset Item "LaTeX Preamble...|P" "dialog-show preamble" Item "Start Appendix Here|A" "appendix" Separator + Item "Compressed|o" "toggle-compression" Item "Settings...|S" "dialog-show document" End diff --git a/src/BufferView_pimpl.C b/src/BufferView_pimpl.C index 7578634399..476860eea2 100644 --- a/src/BufferView_pimpl.C +++ b/src/BufferView_pimpl.C @@ -1087,6 +1087,12 @@ FuncStatus BufferView::Pimpl::getStatus(FuncRequest const & cmd) case LFUN_REJECT_ALL_CHANGES: flag.enabled(buffer_ && buffer_->params().tracking_changes); break; + + case LFUN_TOGGLE_COMPRESSION: { + flag.setOnOff(buffer_->params().compressed); + break; + } + default: flag.enabled(false); } @@ -1335,6 +1341,12 @@ bool BufferView::Pimpl::dispatch(FuncRequest const & cmd) Alert::information(_("Count words"), message); } break; + + case LFUN_TOGGLE_COMPRESSION: + // turn compression on/off + buffer_->params().compressed = !buffer_->params().compressed; + break; + default: return false; } diff --git a/src/LyXAction.C b/src/LyXAction.C index 911bef3d4c..af4ee4930c 100644 --- a/src/LyXAction.C +++ b/src/LyXAction.C @@ -110,6 +110,7 @@ void LyXAction::init() { LFUN_BEGINNINGBUFSEL, "buffer-begin-select", ReadOnly }, { LFUN_CHILDOPEN, "buffer-child-open", ReadOnly }, { LFUN_RUNCHKTEX, "buffer-chktex", ReadOnly }, + { LFUN_TOGGLE_COMPRESSION, "buffer-toggle-compression", Noop}, { LFUN_CLOSEBUFFER, "buffer-close", ReadOnly }, { LFUN_ENDBUF, "buffer-end", ReadOnly }, { LFUN_ENDBUFSEL, "buffer-end-select", ReadOnly }, diff --git a/src/lfuns.h b/src/lfuns.h index 0c7633df5c..294408be91 100644 --- a/src/lfuns.h +++ b/src/lfuns.h @@ -357,6 +357,7 @@ enum kb_action { LFUN_BIBDB_ADD, LFUN_BIBDB_DEL, LFUN_INSERT_CITATION, + LFUN_TOGGLE_COMPRESSION, // bpeng 20060427 LFUN_LASTACTION // end of the table }; diff --git a/status.14x b/status.14x index 7e0c0d8b84..75776c516b 100644 --- a/status.14x +++ b/status.14x @@ -24,13 +24,16 @@ What's new - Update translations for German (User Guide, Extended Features) and Hungarian (Introduction, splash document, new tutorial examples). -- add support for Austrian (new spelling) as document language. +- Add support for Austrian (new spelling) as document language. -- add "LaTeX (pdflatex)" output format. This new output format produces +- Add "LaTeX (pdflatex)" output format. This new output format produces .tex files that are suitable for pdflatex, including figure conversion to png, pdf or jpeg instead of eps. -- add biographynophoto style to IEEEtran.layout +- Add biographynophoto style to IEEEtran.layout. + +- Add new function buffer-toggle-compression (and entry in Document + menu) to change whether the file will be compressed on disk or not. ** Bug fixes