mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
85e88d3824
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5735 a592a061-630c-0410-9148-cb99ea01b6c8
81 lines
1.8 KiB
C++
81 lines
1.8 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file ControlTabular.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author John Levon
|
|
*
|
|
* Full author contact details are available in file CREDITS
|
|
*
|
|
* This is pretty icky, we should really be able to use
|
|
* ControlInset. We can't because there are no params for
|
|
* tabular inset.
|
|
*/
|
|
|
|
#ifndef CONTROLTABULAR_H
|
|
#define CONTROLTABULAR_H
|
|
|
|
#include "ControlConnections.h"
|
|
#include "LString.h"
|
|
#include "tabular.h"
|
|
|
|
#include <boost/signals/connection.hpp>
|
|
|
|
class InsetTabular;
|
|
|
|
class ControlTabular : public ControlConnectBD {
|
|
public:
|
|
|
|
ControlTabular(LyXView &, Dialogs &);
|
|
|
|
/// get the inset
|
|
InsetTabular * inset() const;
|
|
|
|
/// get the contained tabular
|
|
LyXTabular * tabular() const;
|
|
|
|
/// set a parameter
|
|
void set(LyXTabular::Feature, string const & arg = string());
|
|
|
|
/// slot launching dialog to an existing inset.
|
|
void showInset(InsetTabular *);
|
|
|
|
/// update inset
|
|
void updateInset(InsetTabular *);
|
|
|
|
/// return true if units should default to metric
|
|
bool metric() const;
|
|
|
|
/// return true if actual cell is multicolumn
|
|
bool isMulticolumnCell() const;
|
|
|
|
private:
|
|
|
|
/// we can't do this ...
|
|
virtual void apply() {};
|
|
/// disconnect signals and hide View.
|
|
virtual void hide();
|
|
/// update the dialog.
|
|
virtual void update();
|
|
|
|
/** Instantiation of ControlConnectBD private virtual method.
|
|
Slot connected to update signal. */
|
|
virtual void updateSlot(bool);
|
|
|
|
/// show the dialog.
|
|
void show(InsetTabular *);
|
|
/// connect signals
|
|
void connectInset(InsetTabular *);
|
|
|
|
/// pointer to the inset passed through connectInset
|
|
InsetTabular * inset_;
|
|
/// inset::hide connection.
|
|
boost::signals::connection ih_;
|
|
|
|
/// is the dialog built ?
|
|
bool dialog_built_;
|
|
};
|
|
|
|
#endif // CONTROLTABULAR_H
|