1999-09-27 18:44:28 +00:00
|
|
|
|
// -*- C++ -*-
|
2003-08-23 00:17:00 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file bufferparams.h
|
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-03-21 17:27:08 +00:00
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>nnes
|
|
|
|
|
* \author Jean-Marc Lasgouttes
|
|
|
|
|
* \author John Levon
|
|
|
|
|
* \author Andr<EFBFBD> P<EFBFBD>nitz
|
2002-03-21 17:27:08 +00:00
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
|
*/
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
1999-11-04 01:40:20 +00:00
|
|
|
|
#ifndef BUFFERPARAMS_H
|
|
|
|
|
#define BUFFERPARAMS_H
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
2001-12-28 13:26:54 +00:00
|
|
|
|
#include "lyxtextclass.h"
|
2003-07-26 23:04:39 +00:00
|
|
|
|
#include "paper.h"
|
2001-12-28 13:26:54 +00:00
|
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
|
#include "insets/insetquotes.h"
|
2001-12-28 13:26:54 +00:00
|
|
|
|
|
2003-09-15 20:23:57 +00:00
|
|
|
|
#include "support/copied_ptr.h"
|
2003-09-07 01:45:40 +00:00
|
|
|
|
#include "support/types.h"
|
|
|
|
|
|
2003-03-12 23:25:59 +00:00
|
|
|
|
#include <vector>
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
2003-09-09 17:00:19 +00:00
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
namespace lyx {
|
|
|
|
|
|
2003-09-09 17:00:19 +00:00
|
|
|
|
class AuthorList;
|
|
|
|
|
class BranchList;
|
|
|
|
|
class Bullet;
|
2006-12-10 16:08:52 +00:00
|
|
|
|
class Encoding;
|
2002-07-21 21:21:06 +00:00
|
|
|
|
class LyXLex;
|
2003-02-16 00:54:43 +00:00
|
|
|
|
class LatexFeatures;
|
2003-09-09 17:00:19 +00:00
|
|
|
|
class Spacing;
|
2003-02-16 00:54:43 +00:00
|
|
|
|
class TexRow;
|
2003-09-09 17:00:19 +00:00
|
|
|
|
class VSpace;
|
2005-01-19 15:03:31 +00:00
|
|
|
|
class Language;
|
2000-03-17 10:14:46 +00:00
|
|
|
|
|
2004-05-14 13:13:20 +00:00
|
|
|
|
namespace biblio {
|
2007-03-25 01:12:38 +00:00
|
|
|
|
enum CiteEngine;
|
2004-05-14 13:13:20 +00:00
|
|
|
|
} // namespace biblio
|
|
|
|
|
|
|
|
|
|
|
2000-08-07 20:58:24 +00:00
|
|
|
|
/** Buffer parameters.
|
2003-09-15 20:23:57 +00:00
|
|
|
|
* This class contains all the parameters for this a buffer uses. Some
|
|
|
|
|
* work needs to be done on this class to make it nice. Now everything
|
|
|
|
|
* is in public.
|
|
|
|
|
*/
|
1999-09-27 18:44:28 +00:00
|
|
|
|
class BufferParams {
|
|
|
|
|
public:
|
1999-11-15 12:01:38 +00:00
|
|
|
|
///
|
|
|
|
|
enum PARSEP {
|
|
|
|
|
///
|
|
|
|
|
PARSEP_INDENT,
|
|
|
|
|
///
|
|
|
|
|
PARSEP_SKIP
|
|
|
|
|
};
|
|
|
|
|
///
|
1999-09-27 18:44:28 +00:00
|
|
|
|
BufferParams();
|
2003-09-09 17:00:19 +00:00
|
|
|
|
~BufferParams();
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
2003-03-12 02:39:12 +00:00
|
|
|
|
/// read a header token, if unrecognised, return it or an unknown class name
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string const readToken(LyXLex & lex, std::string const & token);
|
2003-03-12 02:39:12 +00:00
|
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
2000-04-04 00:19:15 +00:00
|
|
|
|
void writeFile(std::ostream &) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
2003-05-22 22:44:30 +00:00
|
|
|
|
/** \returns true if the babel package is used (interogates
|
2003-09-15 20:23:57 +00:00
|
|
|
|
* the BufferParams and a LyXRC variable).
|
|
|
|
|
* This returned value can then be passed to the insets...
|
2003-05-22 22:44:30 +00:00
|
|
|
|
*/
|
2006-10-21 00:16:43 +00:00
|
|
|
|
bool writeLaTeX(odocstream &, LaTeXFeatures &, TexRow &) const;
|
2003-02-16 00:54:43 +00:00
|
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
|
|
|
|
void useClassDefaults();
|
|
|
|
|
|
2001-09-17 15:39:58 +00:00
|
|
|
|
///
|
|
|
|
|
bool hasClassDefaults() const;
|
|
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
2003-09-09 17:00:19 +00:00
|
|
|
|
VSpace const & getDefSkip() const;
|
2000-02-04 09:38:32 +00:00
|
|
|
|
|
|
|
|
|
///
|
2003-09-09 17:00:19 +00:00
|
|
|
|
void setDefSkip(VSpace const & vs);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
|
|
/** Wether paragraphs are separated by using a indent like in
|
2003-09-15 20:23:57 +00:00
|
|
|
|
* articles or by using a little skip like in letters.
|
|
|
|
|
*/
|
2002-03-21 17:27:08 +00:00
|
|
|
|
PARSEP paragraph_separation;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
2001-11-29 17:12:21 +00:00
|
|
|
|
InsetQuotes::quote_language quotes_language;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
2001-11-29 17:12:21 +00:00
|
|
|
|
InsetQuotes::quote_times quotes_times;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string fontsize;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
2006-10-21 00:16:43 +00:00
|
|
|
|
textclass_type textclass;
|
2002-07-21 21:21:06 +00:00
|
|
|
|
///
|
|
|
|
|
LyXTextClass const & getLyXTextClass() const;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
2006-02-05 13:20:16 +00:00
|
|
|
|
/// returns the main font for the buffer (document)
|
|
|
|
|
LyXFont const getFont() const;
|
|
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
|
/* this are for the PaperLayout */
|
2005-07-16 16:57:55 +00:00
|
|
|
|
/// the papersize
|
2003-06-10 14:39:45 +00:00
|
|
|
|
PAPER_SIZE papersize;
|
2001-11-29 17:12:21 +00:00
|
|
|
|
///
|
2003-06-10 14:39:45 +00:00
|
|
|
|
PAPER_ORIENTATION orientation;
|
2005-07-16 16:57:55 +00:00
|
|
|
|
/// use custom margins
|
2001-11-29 17:12:21 +00:00
|
|
|
|
bool use_geometry;
|
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string paperwidth;
|
2001-11-29 17:12:21 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string paperheight;
|
2001-11-29 17:12:21 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string leftmargin;
|
2001-11-29 17:12:21 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string topmargin;
|
2001-11-29 17:12:21 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string rightmargin;
|
2001-11-29 17:12:21 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string bottommargin;
|
2001-11-29 17:12:21 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string headheight;
|
2001-11-29 17:12:21 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string headsep;
|
2001-11-29 17:12:21 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string footskip;
|
2001-11-29 17:12:21 +00:00
|
|
|
|
|
|
|
|
|
/* some LaTeX options */
|
1999-09-27 18:44:28 +00:00
|
|
|
|
/// The graphics driver
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string graphicsDriver;
|
The Grand Font Selection Redesign:
* lib/lyx2lyx/LyX.py (format_relation): add file format 247 (from Georg BAUM).
* lib/lyx2lyx/lyx_1_5.py: add convert_font_settings, revert_font_settings (from Georg BAUM).
* lib/chkconfig.ltx: Test for newly supported font packages
* lib/doc/LaTeXConfig.lyx.in: document newly supported font packages
* lib/doc/UserGuide.lyx: document new UI.
* lib/doc/Extended.lyx: update PostScript font documentation
* development/FORMAT: document file format change 246->247.
* src/tex-strings.[Ch]: new strings tex_fonts_roman, tex_fonts_sans,
tex_fonts_monospaced (with GUI equivalents).
* src/buffer.C: Format up to 247.
* src/bufferparams.C:
new params fontsRoman, fontsSans, fontsTypewriter, fontsDefaultFamily,
fontsSC, fontsOSF, fontsSansScale and fontsTypewriterScale
(LyXFont const BufferParams::getFont): consider switch of default family.
(string const BufferParams::loadFonts): new method to get all the LaTeX
font stuff done.
* src/paragraph.C
(LyXFont const Paragraph::getFont):
(LyXFont const Paragraph::getLabelFont):
(LyXFont const Paragraph::getLayoutFont): user buffer's not textclass's
default font
* src/text.C
(int LyXText::leftMargin):
(int LyXText::rightMargin): user buffer's not textclass's default font
* src/text2.C
(LyXFont LyXText::getFont):
(LyXFont LyXText::getLayoutFont):
(LyXFont LyXText::getLabelFont): check if the family of the default document
font has been customized.
* src/frontends/gtk/GDocument.[Ch]: implement new font ui (from Georg BAUM).
* src/frontends/gtk/glade/document.glade: implement new font ui (from Georg BAUM).
* src/frontends/qt3/Makefile.dialogs: add new FontModuleBase
* src/frontends/qt3/ui/FontModuleBase.ui: new File
* src/frontends/qt3/ui/TextLayoutModuleBase.ui: remove font widgets
* src/frontends/qt3/QDocument.C
* src/frontends/qt3/QDocumentDialog.[Ch]: implement new font ui
* src/frontends/qt4/Makefile.dialogs: add new FontUi
* src/frontends/qt4/QDocumentDialog.[Ch]: implement new font ui
* src/frontends/qt4/ui/FontUi.ui: new File
* src/frontends/qt4/ui/TextLayoutUi.ui: remove font widgets
* src/frontends/qt4/ui/compile_uic.sh: add new FontUi
* src/frontends/xforms/FormDocument.[Ch]: implement new font ui
* src/frontends/xforms/forms/form_document.fd: add new font tab.
* src/frontends/controllers/ControlDocument.[Ch]
(char ControlDocument::fontfamilies):
(char ControlDocument::fontfamilies_gui):
(bool ControlDocument::isFontAvailable):
(bool ControlDocument::providesSC):
(bool ControlDocument::providesOSF):
(bool ControlDocument::providesScale): new methods, providing font info.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14143 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-19 08:10:17 +00:00
|
|
|
|
/// the rm font
|
|
|
|
|
std::string fontsRoman;
|
|
|
|
|
/// the sf font
|
|
|
|
|
std::string fontsSans;
|
|
|
|
|
/// the tt font
|
|
|
|
|
std::string fontsTypewriter;
|
|
|
|
|
/// the default family (rm, sf, tt)
|
|
|
|
|
std::string fontsDefaultFamily;
|
|
|
|
|
/// use expert Small Caps
|
|
|
|
|
bool fontsSC;
|
|
|
|
|
/// use Old Style Figures
|
|
|
|
|
bool fontsOSF;
|
|
|
|
|
/// the scale factor of the sf font
|
|
|
|
|
int fontsSansScale;
|
|
|
|
|
/// the scale factor of the tt font
|
|
|
|
|
int fontsTypewriterScale;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
2003-09-09 17:00:19 +00:00
|
|
|
|
Spacing & spacing();
|
|
|
|
|
Spacing const & spacing() const;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
1999-11-04 01:40:20 +00:00
|
|
|
|
int secnumdepth;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
1999-11-04 01:40:20 +00:00
|
|
|
|
int tocdepth;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
2000-10-10 12:36:36 +00:00
|
|
|
|
Language const * language;
|
2003-08-17 11:28:23 +00:00
|
|
|
|
/// BranchList:
|
2003-09-09 17:00:19 +00:00
|
|
|
|
BranchList & branchlist();
|
|
|
|
|
BranchList const & branchlist() const;
|
2006-08-15 07:08:58 +00:00
|
|
|
|
/**
|
|
|
|
|
* The input encoding for LaTeX. This can be one of
|
2007-01-13 14:36:54 +00:00
|
|
|
|
* - \c auto: find out the input encoding from the used languages
|
|
|
|
|
* - \c default: ditto
|
2006-08-15 07:08:58 +00:00
|
|
|
|
* - any encoding supported by the inputenc package
|
|
|
|
|
* The encoding of the LyX file is always utf8 and has nothing to
|
|
|
|
|
* do with this setting.
|
2007-01-13 14:36:54 +00:00
|
|
|
|
* The difference between \c auto and \c default is that \c auto also
|
|
|
|
|
* causes loading of the inputenc package, while \c default does not.
|
|
|
|
|
* \c default will not work unless the user takes additional measures
|
|
|
|
|
* (such as using special environments like the CJK environment from
|
|
|
|
|
* CJK.sty).
|
|
|
|
|
* \c default can be seen as an unspecified 8bit encoding, since LyX
|
|
|
|
|
* does not interpret it in any way apart from display on screen.
|
2006-08-15 07:08:58 +00:00
|
|
|
|
*/
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string inputenc;
|
2006-12-10 16:08:52 +00:00
|
|
|
|
/// The main encoding used by this buffer for LaTeX output.
|
|
|
|
|
/// Individual pieces of text can use different encodings.
|
|
|
|
|
Encoding const & encoding() const;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string preamble;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string options;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string float_placement;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
1999-11-04 01:40:20 +00:00
|
|
|
|
unsigned int columns;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
1999-11-04 01:40:20 +00:00
|
|
|
|
LyXTextClass::PageSides sides;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string pagestyle;
|
2003-09-09 17:00:19 +00:00
|
|
|
|
/// \param index should lie in the range 0 <= \c index <= 3.
|
2006-10-21 00:16:43 +00:00
|
|
|
|
Bullet & temp_bullet(size_type index);
|
|
|
|
|
Bullet const & temp_bullet(size_type index) const;
|
2003-09-09 17:00:19 +00:00
|
|
|
|
/// \param index should lie in the range 0 <= \c index <= 3.
|
2006-10-21 00:16:43 +00:00
|
|
|
|
Bullet & user_defined_bullet(size_type index);
|
|
|
|
|
Bullet const & user_defined_bullet(size_type index) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
1999-11-15 12:01:38 +00:00
|
|
|
|
void readPreamble(LyXLex &);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
1999-11-15 12:01:38 +00:00
|
|
|
|
void readLanguage(LyXLex &);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
1999-11-15 12:01:38 +00:00
|
|
|
|
void readGraphicsDriver(LyXLex &);
|
2004-10-05 13:18:28 +00:00
|
|
|
|
///
|
|
|
|
|
void readBullets(LyXLex &);
|
|
|
|
|
///
|
|
|
|
|
void readBulletsLaTeX(LyXLex &);
|
2003-03-06 11:07:55 +00:00
|
|
|
|
|
2006-11-13 17:35:18 +00:00
|
|
|
|
/// Whether to load a package such as amsmath or esint.
|
|
|
|
|
/// The enum values must not be changed (file format!)
|
|
|
|
|
enum Package {
|
|
|
|
|
/// Don't load the package. For experts only.
|
|
|
|
|
package_off = 0,
|
|
|
|
|
/// Load the package if needed (recommended)
|
|
|
|
|
package_auto = 1,
|
|
|
|
|
/// Always load the package (e.g. if the document contains
|
|
|
|
|
/// some ERT that needs the package)
|
|
|
|
|
package_on = 2
|
2003-03-06 11:07:55 +00:00
|
|
|
|
};
|
2006-11-13 17:35:18 +00:00
|
|
|
|
/// Whether and how to load amsmath
|
|
|
|
|
Package use_amsmath;
|
|
|
|
|
/// Whether and how to load esint
|
|
|
|
|
Package use_esint;
|
2001-07-19 14:12:37 +00:00
|
|
|
|
///
|
2004-03-29 13:17:25 +00:00
|
|
|
|
bool use_bibtopic;
|
2003-02-08 19:18:01 +00:00
|
|
|
|
/// revision tracking for this buffer ?
|
2006-10-06 18:53:35 +00:00
|
|
|
|
bool trackChanges;
|
2006-05-05 23:11:19 +00:00
|
|
|
|
/** This param decides whether change tracking marks should be output
|
2005-04-26 11:12:20 +00:00
|
|
|
|
* (using the dvipost package) or if the current "state" of the
|
|
|
|
|
* document should be output instead. Since dvipost needs dvi
|
2005-01-24 17:12:19 +00:00
|
|
|
|
* specials, it only works with dvi/ps output (the param will be
|
2006-10-06 18:53:35 +00:00
|
|
|
|
* ignored with other output flavors and disabled when dvipost is
|
2005-01-24 17:12:19 +00:00
|
|
|
|
* not installed).
|
|
|
|
|
*/
|
2006-10-06 18:53:35 +00:00
|
|
|
|
bool outputChanges;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
/// Time ago we agreed that this was a buffer property [ale990407]
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string parentname;
|
2003-07-28 14:40:29 +00:00
|
|
|
|
///
|
|
|
|
|
bool compressed;
|
2003-03-12 02:39:12 +00:00
|
|
|
|
|
2003-09-09 17:00:19 +00:00
|
|
|
|
/// the author list for the document
|
|
|
|
|
AuthorList & authors();
|
|
|
|
|
AuthorList const & authors() const;
|
|
|
|
|
|
2003-03-12 23:25:59 +00:00
|
|
|
|
/// map of the file's author IDs to buffer author IDs
|
2006-06-07 17:05:25 +00:00
|
|
|
|
std::vector<unsigned int> author_map;
|
2003-07-17 08:23:33 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string const dvips_options() const;
|
2003-07-17 08:23:33 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string const paperSizeName() const;
|
2004-03-07 14:33:17 +00:00
|
|
|
|
///
|
|
|
|
|
std::string const babelCall(std::string const & lang_opts) const;
|
The Grand Font Selection Redesign:
* lib/lyx2lyx/LyX.py (format_relation): add file format 247 (from Georg BAUM).
* lib/lyx2lyx/lyx_1_5.py: add convert_font_settings, revert_font_settings (from Georg BAUM).
* lib/chkconfig.ltx: Test for newly supported font packages
* lib/doc/LaTeXConfig.lyx.in: document newly supported font packages
* lib/doc/UserGuide.lyx: document new UI.
* lib/doc/Extended.lyx: update PostScript font documentation
* development/FORMAT: document file format change 246->247.
* src/tex-strings.[Ch]: new strings tex_fonts_roman, tex_fonts_sans,
tex_fonts_monospaced (with GUI equivalents).
* src/buffer.C: Format up to 247.
* src/bufferparams.C:
new params fontsRoman, fontsSans, fontsTypewriter, fontsDefaultFamily,
fontsSC, fontsOSF, fontsSansScale and fontsTypewriterScale
(LyXFont const BufferParams::getFont): consider switch of default family.
(string const BufferParams::loadFonts): new method to get all the LaTeX
font stuff done.
* src/paragraph.C
(LyXFont const Paragraph::getFont):
(LyXFont const Paragraph::getLabelFont):
(LyXFont const Paragraph::getLayoutFont): user buffer's not textclass's
default font
* src/text.C
(int LyXText::leftMargin):
(int LyXText::rightMargin): user buffer's not textclass's default font
* src/text2.C
(LyXFont LyXText::getFont):
(LyXFont LyXText::getLayoutFont):
(LyXFont LyXText::getLabelFont): check if the family of the default document
font has been customized.
* src/frontends/gtk/GDocument.[Ch]: implement new font ui (from Georg BAUM).
* src/frontends/gtk/glade/document.glade: implement new font ui (from Georg BAUM).
* src/frontends/qt3/Makefile.dialogs: add new FontModuleBase
* src/frontends/qt3/ui/FontModuleBase.ui: new File
* src/frontends/qt3/ui/TextLayoutModuleBase.ui: remove font widgets
* src/frontends/qt3/QDocument.C
* src/frontends/qt3/QDocumentDialog.[Ch]: implement new font ui
* src/frontends/qt4/Makefile.dialogs: add new FontUi
* src/frontends/qt4/QDocumentDialog.[Ch]: implement new font ui
* src/frontends/qt4/ui/FontUi.ui: new File
* src/frontends/qt4/ui/TextLayoutUi.ui: remove font widgets
* src/frontends/qt4/ui/compile_uic.sh: add new FontUi
* src/frontends/xforms/FormDocument.[Ch]: implement new font ui
* src/frontends/xforms/forms/form_document.fd: add new font tab.
* src/frontends/controllers/ControlDocument.[Ch]
(char ControlDocument::fontfamilies):
(char ControlDocument::fontfamilies_gui):
(bool ControlDocument::isFontAvailable):
(bool ControlDocument::providesSC):
(bool ControlDocument::providesOSF):
(bool ControlDocument::providesScale): new methods, providing font info.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14143 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-19 08:10:17 +00:00
|
|
|
|
/// set up the document fonts
|
2007-02-08 15:18:36 +00:00
|
|
|
|
std::string const loadFonts(std::string const & rm,
|
The Grand Font Selection Redesign:
* lib/lyx2lyx/LyX.py (format_relation): add file format 247 (from Georg BAUM).
* lib/lyx2lyx/lyx_1_5.py: add convert_font_settings, revert_font_settings (from Georg BAUM).
* lib/chkconfig.ltx: Test for newly supported font packages
* lib/doc/LaTeXConfig.lyx.in: document newly supported font packages
* lib/doc/UserGuide.lyx: document new UI.
* lib/doc/Extended.lyx: update PostScript font documentation
* development/FORMAT: document file format change 246->247.
* src/tex-strings.[Ch]: new strings tex_fonts_roman, tex_fonts_sans,
tex_fonts_monospaced (with GUI equivalents).
* src/buffer.C: Format up to 247.
* src/bufferparams.C:
new params fontsRoman, fontsSans, fontsTypewriter, fontsDefaultFamily,
fontsSC, fontsOSF, fontsSansScale and fontsTypewriterScale
(LyXFont const BufferParams::getFont): consider switch of default family.
(string const BufferParams::loadFonts): new method to get all the LaTeX
font stuff done.
* src/paragraph.C
(LyXFont const Paragraph::getFont):
(LyXFont const Paragraph::getLabelFont):
(LyXFont const Paragraph::getLayoutFont): user buffer's not textclass's
default font
* src/text.C
(int LyXText::leftMargin):
(int LyXText::rightMargin): user buffer's not textclass's default font
* src/text2.C
(LyXFont LyXText::getFont):
(LyXFont LyXText::getLayoutFont):
(LyXFont LyXText::getLabelFont): check if the family of the default document
font has been customized.
* src/frontends/gtk/GDocument.[Ch]: implement new font ui (from Georg BAUM).
* src/frontends/gtk/glade/document.glade: implement new font ui (from Georg BAUM).
* src/frontends/qt3/Makefile.dialogs: add new FontModuleBase
* src/frontends/qt3/ui/FontModuleBase.ui: new File
* src/frontends/qt3/ui/TextLayoutModuleBase.ui: remove font widgets
* src/frontends/qt3/QDocument.C
* src/frontends/qt3/QDocumentDialog.[Ch]: implement new font ui
* src/frontends/qt4/Makefile.dialogs: add new FontUi
* src/frontends/qt4/QDocumentDialog.[Ch]: implement new font ui
* src/frontends/qt4/ui/FontUi.ui: new File
* src/frontends/qt4/ui/TextLayoutUi.ui: remove font widgets
* src/frontends/qt4/ui/compile_uic.sh: add new FontUi
* src/frontends/xforms/FormDocument.[Ch]: implement new font ui
* src/frontends/xforms/forms/form_document.fd: add new font tab.
* src/frontends/controllers/ControlDocument.[Ch]
(char ControlDocument::fontfamilies):
(char ControlDocument::fontfamilies_gui):
(bool ControlDocument::isFontAvailable):
(bool ControlDocument::providesSC):
(bool ControlDocument::providesOSF):
(bool ControlDocument::providesScale): new methods, providing font info.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14143 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-19 08:10:17 +00:00
|
|
|
|
std::string const & sf, std::string const & tt,
|
|
|
|
|
bool const & sc, bool const & osf,
|
|
|
|
|
int const & sfscale, int const & ttscale) const;
|
2006-04-09 04:35:24 +00:00
|
|
|
|
/// path of the current buffer
|
|
|
|
|
std::string filepath;
|
2007-03-22 07:22:16 +00:00
|
|
|
|
/// get the appropriate cite engine (natbib handling)
|
2007-03-25 01:12:38 +00:00
|
|
|
|
biblio::CiteEngine getEngine() const;
|
|
|
|
|
|
|
|
|
|
///
|
|
|
|
|
void setCiteEngine(biblio::CiteEngine const);
|
2003-03-12 23:25:59 +00:00
|
|
|
|
|
2003-03-12 11:52:23 +00:00
|
|
|
|
private:
|
2003-09-09 17:00:19 +00:00
|
|
|
|
/** Use the Pimpl idiom to hide those member variables that would otherwise
|
2003-09-15 20:23:57 +00:00
|
|
|
|
* drag in other header files.
|
2003-09-09 17:00:19 +00:00
|
|
|
|
*/
|
|
|
|
|
class Impl;
|
2005-01-19 15:03:31 +00:00
|
|
|
|
class MemoryTraits {
|
|
|
|
|
public:
|
2003-09-15 20:23:57 +00:00
|
|
|
|
static Impl * clone(Impl const *);
|
|
|
|
|
static void destroy(Impl *);
|
|
|
|
|
};
|
2006-10-21 00:16:43 +00:00
|
|
|
|
support::copied_ptr<Impl, MemoryTraits> pimpl_;
|
2007-03-25 01:12:38 +00:00
|
|
|
|
|
|
|
|
|
///
|
|
|
|
|
biblio::CiteEngine cite_engine_;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
};
|
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
|
#endif
|