aboutsummaryrefslogtreecommitdiff
path: root/src/frame.c
AgeCommit message (Collapse)Author
2018-04-23Avoid crashiness if deletion SCBlock ends up as NULLThomas White
2018-04-15Internationalise all strings in source codeThomas White
2018-04-15Set spacing on callback paragraphsThomas White
2018-04-15Rationalise interpretation of paragraph spacingThomas White
paragraph->height: Just the height of the contents, no spacing paragraph_height(para): The total height including all spacing
2018-04-11If a paragraph is completely empty, allow it to be re-usedThomas White
This avoids spurious empty paragraphs before slides, for example.
2018-03-28Rearrange editability checks when inserting textThomas White
Makes "insert into non-text paragraph" work again
2018-03-27Set newline when splitting text paragraphThomas White
2018-03-26Ensure no empty paragraphs before deletingThomas White
2018-03-25Remove merge_paragraphThomas White
Not needed any more
2018-03-23Add \ralignThomas White
2018-03-22Fix newpara logicThomas White
2018-03-19Revert "Increase line spacing"Thomas White
This reverts commit 24fed6a8e3725da78580b3ede64a84d286bc10fb.
2018-03-19Set paragraph scblock/rscblock when splittingThomas White
2018-03-18Create a run when placing cursor in an empty paragraphThomas White
2018-03-18Disallow insertion and deletion unless scblock==rscblockThomas White
2018-03-18Set scblock/rscblock even for text paragraphsThomas White
It's needed as a hook if there are no runs
2018-03-12Use edit_pos instead of cursor_{para,pos,trail}Thomas White
2018-03-12Get rid of Paragraph->openThomas White
2018-03-12Delete whole paragraphs if they are non-textThomas White
2018-03-12Add rscblocks for image and callback paragraphsThomas White
2018-03-11Avoid creating extra ImageStoresThomas White
2018-03-10Show rscblocks in debuggerThomas White
2018-03-10Fixes for paragraph splittingThomas White
2018-03-10show_para(): Show rscblocks as wellThomas White
2018-03-07Remove len_bytes from add_runThomas White
2018-03-07Don't create runs for \newparaThomas White
Removes a load more special cases
2018-03-07FormattingThomas White
2018-03-07Add a warningThomas White
2018-03-04Paragraph splitting fixesThomas White
2018-03-04Text insertion fixThomas White
2018-03-03Better handling of paragraph ends in which_runThomas White
Here is the better solution.
2018-03-03Make which_run strictly exclusive when deciding which runThomas White
I have a feeling there's a better way to do this, though.
2018-03-03scan_runs_for_scblock: Check scblock as well as rscblockThomas White
Allows macros to be found and deleted properly
2018-03-03delete_run: Stop moving too many runsThomas White
2018-03-03Remove text_run offsets and lengthsThomas White
Keeping these up to date was becoming a gigantic headache. So instead of storing the values, routines which are interested in these lengths and offsets can calculate them themselves.
2018-03-03Remove macro_real_block and friends, and delete text based on SCBlocks ↵Thomas White
instead of runs macro_real_block was a pain because it meant we needed to look somewhere else every time we needed the SCBlock for something. The new way is to have two SCBlocks for each run, one which is the block from the flow of the actual document (i.e. for blocks within macros, this is the macro_real_block, otherwise it's the same as before). The second block ("rscblock") is whichever run actually contains the text for the run. It might be from the document, within the macro definition or within the macro's "\contents".
2018-03-03Add some warningsThomas White
2018-02-23Increase line spacingThomas White
2018-02-19Remove text run SCBlock offsetThomas White
The \newpara change (commit 7f2d0abd) removed the only situation when the start of a run might not coincide with the start of an SCBlock, or vice-versa (although not all SCBlocks correspond to text runs, obviously). Therefore, the offset is always zero and can be removed, simplifying the code.
2018-02-16Update commentThomas White
2018-02-16Record whether or not macro is editableThomas White
2018-01-18Mass update of copyright datesThomas White
2018-01-18Try deleting based on macro contents if paragraphs can't be merged straight awayThomas White
Also, avoid a segfault if it still doesn't work after that.
2018-01-18Store macro contents block in text runThomas White
We need it in order to find where to delete from, e.g. when paragraphs get united inside a slide title
2017-12-03Type "into" slide thumbnail without full rerenderThomas White
2017-11-30Debugging stuffThomas White
2017-11-27Use ImageStore to get image sizeThomas White
2017-11-26Don't crash if image is not foundThomas White
2017-11-26Render callbacks with higher resolution when writing to PDFThomas White
2017-11-23Render images at the correct sizeThomas White
This needs converting to pixels to check the actual size