mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 14:32:04 +00:00
35948be234
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13693 a592a061-630c-0410-9148-cb99ea01b6c8
97 lines
1.9 KiB
C++
97 lines
1.9 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file ControlExternal.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Asger Alstrup
|
|
* \author John Levon
|
|
* \author Angus Leeming
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef CONTROLEXTERNAL_H
|
|
#define CONTROLEXTERNAL_H
|
|
|
|
#include "Dialog.h"
|
|
|
|
#include "support/types.h"
|
|
|
|
#include <boost/scoped_ptr.hpp>
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
|
|
class InsetExternalParams;
|
|
|
|
namespace lyx {
|
|
|
|
namespace external {
|
|
|
|
class Template;
|
|
class RotationDataType;
|
|
|
|
} // namespace external
|
|
|
|
|
|
namespace frontend {
|
|
|
|
class ControlExternal : public Dialog::Controller {
|
|
public:
|
|
///
|
|
ControlExternal(Dialog &);
|
|
///
|
|
virtual bool initialiseParams(std::string const & data);
|
|
/// clean-up on hide.
|
|
virtual void clearParams();
|
|
/// clean-up on hide.
|
|
virtual void dispatchParams();
|
|
///
|
|
virtual bool isBufferDependent() const { return true; }
|
|
|
|
///
|
|
InsetExternalParams const & params() const;
|
|
///
|
|
void setParams(InsetExternalParams const &);
|
|
|
|
///
|
|
void editExternal();
|
|
///
|
|
std::vector<std::string> const getTemplates() const;
|
|
///
|
|
int getTemplateNumber(std::string const &) const;
|
|
///
|
|
external::Template getTemplate(int) const;
|
|
///
|
|
std::string const
|
|
getTemplateFilters(std::string const & template_name) const;
|
|
///
|
|
std::string const browse(std::string const & input_file,
|
|
std::string const & template_name) const;
|
|
|
|
/// Read the Bounding Box from a eps or ps-file
|
|
std::string const readBB(std::string const & file);
|
|
///
|
|
void bbChanged(bool val) { bb_changed_ = val; }
|
|
bool bbChanged() const { return bb_changed_; }
|
|
private:
|
|
///
|
|
boost::scoped_ptr<InsetExternalParams> params_;
|
|
bool bb_changed_;
|
|
};
|
|
|
|
} // namespace frontend
|
|
|
|
|
|
namespace external {
|
|
|
|
std::vector<RotationDataType> const & all_origins();
|
|
std::string const origin_gui_str(size_type i);
|
|
|
|
} // namespace external
|
|
} // namespace lyx
|
|
|
|
#endif // CONTROLEXTERNAL_H
|