mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-22 16:04:07 +00:00
50 lines
1.2 KiB
C
50 lines
1.2 KiB
C
|
/* This file is part of
|
||
|
* ======================================================
|
||
|
*
|
||
|
* LyX, The Document Processor
|
||
|
*
|
||
|
* Copyright 2001 The LyX Team.
|
||
|
*
|
||
|
* ======================================================
|
||
|
*
|
||
|
* \file ControlGraphics.h
|
||
|
* \author Angus Leeming <a.leeming@ic.ac.uk>
|
||
|
*/
|
||
|
|
||
|
#ifndef CONTROLGRAPHICS_H
|
||
|
#define CONTROLGRAPHICS_H
|
||
|
|
||
|
#ifdef __GNUG__
|
||
|
#pragma interface
|
||
|
#endif
|
||
|
|
||
|
#include "ControlInset.h"
|
||
|
#include "insets/insetgraphicsParams.h" // need operator!=()
|
||
|
|
||
|
class InsetGraphics;
|
||
|
class LyXView;
|
||
|
|
||
|
/** A controller for Graphics dialogs.
|
||
|
*/
|
||
|
class ControlGraphics
|
||
|
: public ControlInset<InsetGraphics, InsetGraphicsParams> {
|
||
|
public:
|
||
|
///
|
||
|
ControlGraphics(LyXView &, Dialogs &);
|
||
|
|
||
|
/// The file dialog popup requires a LyXView * ???
|
||
|
LyXView * lv() const;
|
||
|
|
||
|
private:
|
||
|
/// Dispatch the changed parameters to the kernel.
|
||
|
virtual void applyParamsToInset();
|
||
|
///
|
||
|
virtual void applyParamsNoInset();
|
||
|
/// get the parameters from the string passed to createInset.
|
||
|
virtual InsetGraphicsParams const getParams(string const &);
|
||
|
/// get the parameters from the inset passed to showInset.
|
||
|
virtual InsetGraphicsParams const getParams(InsetGraphics const &);
|
||
|
};
|
||
|
|
||
|
#endif // CONTROLGRAPHICS_H
|