aboutsummaryrefslogtreecommitdiff
path: root/src/sc_interp.c
AgeCommit message (Collapse)Author
2018-03-25Add \lalign and \center (and show them off)Thomas White
2018-03-23Add \ralignThomas White
2018-03-18Disallow insertion and deletion unless scblock==rscblockThomas White
2018-03-18Remove \callbackThomas White
Make the callback mechanism into one of general interception of any Storycode command. This way, the narrative rendering (the only thing using this functionality) doesn't have to do its horrible stylesheet thing. That's necessary so that the rendering function gets the actual SCBlock, not the definition of the macro.
2018-03-18Set scblock/rscblock even for text paragraphsThomas White
It's needed as a hook if there are no runs
2018-03-12Get rid of Paragraph->openThomas White
2018-03-12Add rscblocks for image and callback paragraphsThomas 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-03Fix a memory bug in exec_macroThomas White
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-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-16Record whether or not macro is editableThomas White
2018-01-18Mass update of copyright datesThomas White
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
2018-01-04Get slide size from stylesheetThomas White
2017-11-27Use ImageStore to get image sizeThomas White
2017-11-21Calculate image sizes to fill frames horizontallyThomas White
2017-11-19Don't add empty text blocksThomas White
They can creep in sometimes, e.g. just after an image frame is created
2017-11-19Set right fontdesc for \newpara runs (in case we type into them later)Thomas White
2017-11-12Debug stuff (revert me later)Thomas White
2017-10-26Handle NULL PangoContext some moreThomas White
2017-10-23Handle NULL PangoContextThomas White
Used when getting the templates
2017-10-19Track the newlines at ends of paragraphs directlyThomas White
No more messing around searching for \n characters
2017-10-17Track newlines at end of paragraphsThomas White
2017-09-24update_font(): Show font name if it can't be loadedThomas White
2017-09-24Zero-length blocks are OKThomas White
2017-09-03Comment out unused variablesThomas White
The list of compiler warnings was starting to be a problem
2017-02-04Change stylesheetThomas White
2017-01-08Allow bits of macros to be editableThomas White
2016-11-18Use slide template for new slidesThomas White
2016-11-17Initial template stuffThomas White
2016-11-13Refuse to edit inside macro blocksThomas White
2016-05-02Remove debugThomas White
2016-05-02Paragraph spacingThomas White
2016-04-26Copy slideThomas White
2016-04-23Set default style of frame to whatever comes lastThomas White
2016-04-22Add SCBlock to image and callback paragraphsThomas White
2016-03-29Allow empty paragraphsThomas White
Needed so the user can add extra line breaks for formatting.
2016-03-28Restore text coloursThomas White
2016-03-28Fix paragraph splittingThomas White
2016-03-28Basic renderer using PangoLayoutsThomas White
2016-03-19Add oblique and italicThomas White
2016-03-16Final fixes for text in empty frameThomas White
2016-03-14Fix frame creationThomas White
2015-12-26Open slide window on right slideThomas White
2015-11-08WIP on breaksThomas White
2015-10-25CommentsThomas White
2015-10-11SPOT for box text (inside the SCBlock)Thomas White