mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-15 07:16:48 +00:00
8b67659646
Known problems: - No space is output after a \hfill. I probably broke this with the InsetCommand patch. I'll have a look later. - Although the encoding is now UTF8 the arguments of the inputenc package are still the old ones, so LaTeX will not run. - Labels and references with non-ASCII characters are broken. This needs to be fixed in lyx::support::escape(), but this is a file format change. - Something seems to be wrong with index entries, but this is probably also due to the InsetCommand changes. Have fun! git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15378 a592a061-630c-0410-9148-cb99ea01b6c8
52 lines
1.1 KiB
C++
52 lines
1.1 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file ControlViewSource.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author John Levon
|
|
* \author Angus Leeming
|
|
* \Bo Peng
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef CONTROLVIEWSOURCE_H
|
|
#define CONTROLVIEWSOURCE_H
|
|
|
|
#include "Dialog.h"
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
/**
|
|
* A controller for a read-only text browser.
|
|
*/
|
|
class ControlViewSource : public Dialog::Controller {
|
|
public:
|
|
///
|
|
ControlViewSource(Dialog &);
|
|
/** \param source source code to be displayed
|
|
*/
|
|
virtual bool initialiseParams(std::string const & source);
|
|
///
|
|
virtual void clearParams();
|
|
///
|
|
virtual void dispatchParams() {}
|
|
///
|
|
virtual bool isBufferDependent() const { return true; }
|
|
|
|
/// The title displayed by the dialog reflects source type.
|
|
lyx::docstring const title() const;
|
|
|
|
/** get the source code of selected paragraphs, or the whole document
|
|
\param fullSource get full source code
|
|
*/
|
|
lyx::docstring const updateContent(bool fullSource);
|
|
};
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#endif // CONTROLVIEWSOURCE_H
|