wxMaxima
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
test_EditorCellFormat.cpp File Reference

What the toolbar's bold/italic/... buttons do to a text cell (GH #492): formatting a selection, switching a format on for what is typed next, undoing it, and that the formatted text is laid out in the formatted font. More...

#include <wx/wx.h>
#include <wx/bitmap.h>
#include <wx/dcmemory.h>
#include "CellPointers.h"
#include "Configuration.h"
#include "cells/EditorCell.h"
#include "cells/GroupCell.h"
#include <catch2/catch.hpp>
Include dependency graph for test_EditorCellFormat.cpp:

Data Structures

class  TestApp
 

Functions

 SCENARIO ("Formatting a selection")
 
 SCENARIO ("Superscript and subscript")
 
 SCENARIO ("Each format gets a font made from the cell's own")
 
 SCENARIO ("Overlapping formats keep every character its own width")
 
 SCENARIO ("A line grows to make room for what is raised or lowered")
 
 SCENARIO ("Switching a format on with nothing selected")
 
 SCENARIO ("Code cells aren't formatted")
 
 SCENARIO ("Formats move to the cell that replaces a cell")
 
 SCENARIO ("Part of a formatted text cell is copied into another one")
 
 SCENARIO ("Formatted text is offered to other programs as RTF and HTML")
 
 wxDECLARE_APP (TestApp)
 
int main (int argc, char **argv)
 
 SCENARIO ("Formatted HTML from other programs is pasted into a text cell (GH #2475)")
 

Detailed Description

What the toolbar's bold/italic/... buttons do to a text cell (GH #492): formatting a selection, switching a format on for what is typed next, undoing it, and that the formatted text is laid out in the formatted font.

test_TextFormat covers how formats follow edits and how they are saved; this covers the EditorCell that holds them.

Windowless: a real GroupCell/EditorCell against a memory-DC Configuration, in the manner of test_EditorCellBidi.