]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.h
A GUI for nomencl settings. Adds the possibility to enter a custom length.
[lyx.git] / src / Paragraph.h
index e6e8971dabaa4f5ca1dd06f370c02f7be66f1b06..21a5016f2566d24e22b77ae2339a4c179f60d44d 100644 (file)
@@ -124,6 +124,10 @@ public:
        docstring asString(pos_type beg, pos_type end,
                int options = AS_STR_NONE) const;
 
+       /// Extract only the explicitly visible text (without any formatting),
+       /// descending into insets
+       docstring stringify(pos_type beg, pos_type end, int options, OutputParams & runparams) const;
+
        ///
        void write(std::ostream &, BufferParams const &,
                   depth_type & depth) const;
@@ -133,7 +137,7 @@ public:
        ///
        bool latex(BufferParams const &, Font const & outerfont, odocstream &,
                   TexRow & texrow, OutputParams const &,
-                  int start_pos = -1, int end_pos = -1) const;
+                  int start_pos = 0, int end_pos = -1) const;
 
        /// Can we drop the standard paragraph wrapper?
        bool emptyTag() const;
@@ -199,6 +203,8 @@ public:
        bool isInserted(pos_type pos) const;
        /// is there a deletion at the given pos ?
        bool isDeleted(pos_type pos) const;
+       /// is the whole paragraph deleted ?
+       bool isFullyDeleted(pos_type start, pos_type end) const;
 
        /// will the paragraph be physically merged with the next
        /// one if the imaginary end-of-par character is logically deleted?
@@ -397,14 +403,19 @@ public:
                pos_type pos, ///< start from here.
                bool del = true) const;
        
+       void locateWord(pos_type & from, pos_type & to,
+               word_location const loc) const;
        ///
-       void updateWords(CursorSlice const & sl);
+       void updateWords();
+       /// Spellcheck word at position \p pos.
+       /// \return true if pointed word is misspelled.
+       bool isMisspelled(pos_type pos) const;
 
 private:
        ///
        void deregisterWords();
        ///
-       void collectWords(CursorSlice const & sl);
+       void collectWords();
        ///
        void registerWords();