aboutsummaryrefslogtreecommitdiff
path: root/src/frame.c
AgeCommit message (Collapse)Author
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
2017-11-23Get rid of image size stuffThomas White
A completely unnecessary mechanism.
2017-11-21Calculate image sizes to fill frames horizontallyThomas White
2017-11-19Initialise image para space to zeroThomas White
2017-11-19Fix paragraph highlight for spacingThomas White
2017-11-19pos_trail_to_offset(): Special case for \newparaThomas White
2017-11-12Debug stuff (revert me later)Thomas White
2017-10-26Avoid some NULL dereferencesThomas White
2017-10-26Delete newpara runs when deleting a paragraphThomas White
2017-10-22Don't eliminate empty runsThomas White
They might be important