]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetIndex.h
InsetIndex: revamp IndexEntry to handle both legacy and modern index insets; simplify...
[lyx.git] / src / insets / InsetIndex.h
index 97a82babf575fe8547ea1b657b8fd38860db32be..6a74b796016404b68f9b7a29ac7643c66c8d8374 100644 (file)
@@ -19,6 +19,8 @@
 
 namespace lyx {
 
+class IndexEntry;
+
 class InsetIndexParams {
 public:
        enum PageRange {
@@ -94,10 +96,22 @@ private:
        ///
        void getSortkey(otexstream &, OutputParams const &) const;
        ///
+       docstring getSortkeyAsText(OutputParams const &) const;
+       ///
        void getSubentries(otexstream &, OutputParams const &) const;
        ///
+       std::vector<docstring> getSubentriesAsText(OutputParams const &) const;
+       ///
+       docstring getMainSubentryAsText(OutputParams const & runparams) const;
+       ///
        void getSeeRefs(otexstream &, OutputParams const &) const;
        ///
+       docstring getSeeAsText(OutputParams const & runparams) const;
+       ///
+       std::vector<docstring> getSeeAlsoesAsText(OutputParams const & runparams) const;
+       ///
+       bool hasSubentries() const;
+       ///
        bool hasSeeRef() const;
        ///
        bool hasSortKey() const;
@@ -117,6 +131,8 @@ private:
        ///
        friend class InsetIndexParams;
        ///
+       friend class IndexEntry;
+       ///
        InsetIndexParams params_;
 };