void ClearModelData( CharacterIndex startIndex, CharacterIndex endIndex, OperationsMask operations );
/**
- * @brief Updates the logical and visual models.
+ * @brief Updates the logical and visual models. Updates the style runs in the visual model when the text's styles changes.
*
* When text or style changes the model is set with some operations pending.
* When i.e. the text's size or a relayout is required this method is called
* matched with the operations pending to perform the minimum number of operations.
*
* @param[in] operationsRequired The operations required.
- */
- void UpdateModel( OperationsMask operationsRequired );
-
- /**
- * @brief Updates the style runs in the visual model when the text's styles changes.
- *
- * @param[in] operationsRequired The operations required.
*
* @return @e true if the model has been modified.
*/
- bool UpdateModelStyle( OperationsMask operationsRequired );
+ bool UpdateModel( OperationsMask operationsRequired );
/**
* @brief Retreieves the default style.
*/
void ScrollTextToMatchCursor( const CursorInfo& cursorInfo );
+private:
+ // Declared private and left undefined to avoid copies.
+ Impl( const Impl& );
+ // Declared private and left undefined to avoid copies.
+ Impl& operator=( const Impl& );
+
+public:
+
ControlInterface& mControlInterface; ///< Reference to the text controller.
LogicalModelPtr mLogicalModel; ///< Pointer to the logical model.
VisualModelPtr mVisualModel; ///< Pointer to the visual model.