mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-28 12:26:59 +00:00
d5a5fbb8ee
* New TOC "math-macro". This means that math macros can now be accessed in the
outline pane in their order of appearance or in alphabetical order, and can be
searched using the filter.
* Lists of floats now show subfloats deeper in the navigation menu
* The arbitrary 30 element cut-off after which nothing is shown except "Open
Navigator..." is removed. Menus now have no limit in size, so Qt may display
them scrollable. In exchange, we always show "Open outliner..." at the
beginning. I tested for performance issues with a rather complex document and
it is fine; but this does not exclude corner cases with lots of TOC entries of
a certain kind. If necessary, populating the navigation sub-menu should be
delayed like the main menu.
* Elements that do not contribute to the output (e.g. in a note, a disabled
branch) are now preceded with a symbol indicating this status. (The machinery
was already there; I wonder why it was not implemented already.) I have chosen
U+274E NEGATIVE SQUARED CROSS MARK.
* Fix the contextual menus in the outliner (bug introduced at 94e992c5
).
* Toc item now move to the caption when present, but first center on the float,
to prevent the situation where the caption is at the top of the screen and the
contents of the float is off-screen above the caption.
(Internally, the action of the toc items can now be customised)
* Fix the LyXHTML output. Disabled captions no longer appear in the list of
figures.
56 lines
1.4 KiB
C++
56 lines
1.4 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file InsetCaptionable.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Alejandro Aguilar Sierra
|
|
* \author Jürgen Vigna
|
|
* \author Lars Gullik Bjønnes
|
|
* \author Guillaume Munch
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef INSET_CAPTIONABLE_H
|
|
#define INSET_CAPTIONABLE_H
|
|
|
|
#include "InsetCollapsable.h"
|
|
|
|
|
|
namespace lyx {
|
|
|
|
class InsetCaptionable : public InsetCollapsable
|
|
{
|
|
public:
|
|
InsetCaptionable(Buffer * buffer)
|
|
: InsetCollapsable(buffer), caption_type_("senseless") {}
|
|
InsetCaptionable(Buffer * buffer, std::string const & type)
|
|
: InsetCollapsable(buffer), caption_type_(type) {}
|
|
///
|
|
std::string const & captionType() const { return caption_type_; }
|
|
///
|
|
docstring floatName(std::string const & type) const;
|
|
///
|
|
protected:
|
|
///
|
|
virtual void setCaptionType(std::string const & type);
|
|
/// are our captions subcaptions?
|
|
virtual bool hasSubCaptions(ParIterator const &) const { return false; }
|
|
///
|
|
void addToToc(DocIterator const & di, bool output_active,
|
|
UpdateType utype) const;
|
|
/// Update the counters of this inset and of its contents
|
|
void updateBuffer(ParIterator const &, UpdateType);
|
|
///
|
|
bool insetAllowed(InsetCode) const;
|
|
private:
|
|
///
|
|
std::string caption_type_;
|
|
};
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
#endif // INSET_CAPTIONABLE_H
|