1. 26 Aug, 2012 1 commit
  2. 18 Jul, 2012 1 commit
  3. 17 Jul, 2012 1 commit
  4. 06 Jul, 2012 1 commit
  5. 17 Jun, 2012 1 commit
  6. 15 Jun, 2012 1 commit
  7. 13 Jun, 2012 1 commit
    • Thorsten Zachmann's avatar
      Fix saving of style child elements · f43593b9
      Thorsten Zachmann authored
      When saving style child elements the child elements where always saved into the default property. However this is not correct as the output of Jos tests shows
      
      [01:53:45]: kofficetests-odp (17s)
      [01:53:45]: [kofficetests-odp] odf/odp/114096.odp
      [01:53:45]: [odf/odp/114096.odp]
          INVALIDSTYLESXML: (unknown file):267: error: element "style:tab-stops" not allowed here; expected the element end-tag or element "style:background-image", "style:columns" or "text:list-style"
          INVALIDCONTENTXML: (unknown file):1061: error: element "style:tab-stops" not allowed here; expected the element end-tag or element "style:background-image", "style:columns" or "text:list-style"
                             (unknown file):1081: error: element "style:tab-stops" not allowed here; expected the element end-tag or element "style:background-image", "style:columns" or "text:list-style"
      
      The problem is that the stye:tab-stops are added to the graphic properties but should be added to the paragraph properties.
      
      This patch adds the possibility to define the property the child elements should be added too.
      f43593b9
  8. 10 Mar, 2012 1 commit
  9. 04 Feb, 2012 1 commit
  10. 27 Jan, 2012 1 commit
  11. 25 Jan, 2012 1 commit
    • C. Boemann's avatar
      Implement undo of Style changes · 914bf011
      C. Boemann authored
      Two new methods are introduced: beginEdit() and endEdit() to mark
      when the editing happens. At endEdit() the collected changes
      are applied to any attached documents like before.
      
      The difference is that it now happens through ChangeStylesMacroCommand
      Which in turn uses ChangeStylesCommand
      
      The role of ChangeStylesMacroCommand is to act as a macro plus to
      make sure the styles within the stylemanager itself are updated.
      
      The role of ChangeStylesCommand is to update the qtextdocuments.
      
      REVIEW: 103779
      914bf011
  12. 22 Jan, 2012 1 commit
  13. 20 Jan, 2012 2 commits
  14. 30 Nov, 2011 1 commit
  15. 27 Nov, 2011 1 commit
  16. 09 Nov, 2011 1 commit
    • C. Boemann's avatar
      Fix the inheritance of paragraph styles · 9c370bf7
      C. Boemann authored
       before we loaded every inherited value into the child style too
      
      Make ParagraphStyle a subclass of KoCharacterStyle so we handle the
      char properties as one style and not auxillary style.
      
      We also no longer add the character properties to the stylemanager as
      a character style of it's own. And thus we no longer need the hack
      that prevented them from being seen by the user in StylesModel.
      
      Let characterstyles have inheritance too
      This proves to be a big improvement getting font's right in a lot of files
      9c370bf7
  17. 02 Oct, 2011 1 commit
    • Thorsten Zachmann's avatar
      Add load style properties from multiple properties. · 8c3949e8
      Thorsten Zachmann authored
      For embedded text shapes paragraph style properties can be saved in style:paragraph-properties
      or in graphic:paragraph-properties. It is also possible that some values are in one and others
      are in the other e.g. in parent styles.
      
      This patch add the possibilty to load the properties from more then one property type.
      
      This partly fixes bug 282617. It is not fully fixed as not all properties are used by the text
      shape yet.
      
      fo:padding-top and fo:padding-bottom seem to be not yet supported.
      
      CCBUG: 282617
      REVIEW: 102737
      8c3949e8
  18. 08 Sep, 2011 1 commit
    • Lukáš Tvrdý's avatar
      Improve aligment related to text-indent · f4c5edf1
      Lukáš Tvrdý authored
      If the auto-text-indent was set to false,
      text-indent was ignored, that's wrong, it's
      ignored when it is true according the specs.
      
      Tested with cstester and related regressions
      not found.
      
      CCBUG:274904
      f4c5edf1
  19. 12 Aug, 2011 2 commits
  20. 08 Aug, 2011 2 commits
  21. 02 Aug, 2011 1 commit
  22. 24 Jul, 2011 1 commit
    • Thorsten Zachmann's avatar
      Pass KoShapeSavingContext on saving styles · 2f7e774f
      Thorsten Zachmann authored
      For now the KoShapeSavingContext is only passed to KoParagraphStyle, KoListStyles
      and KoListLevelProperties. Passing the KoShapeSavingContext is needed to be able
      to save used images in the style e.g. image bullets.
      Make readonly methods in KoParagraphStyle const.
      Make saveOdf const.
      2f7e774f
  23. 22 Jul, 2011 1 commit
  24. 21 Jul, 2011 2 commits
  25. 10 Jul, 2011 1 commit
  26. 08 Jul, 2011 3 commits
    • Sebastian Sauer's avatar
      Fix line-height=normal. · 3aeb5ffb
      Sebastian Sauer authored
      Since the NormalLineHeight is an internal property which is not passed on to the
      QTextBlockFormat a defined line-height=normal was ignored and the paragraph took
      over the line-height of it's parent paragraph-style. We need to explicit set
      the percent and fixed line-height to zero to be sure they overwrite whatever
      the parent-paragraphstyle defined.
      3aeb5ffb
    • Sebastian Sauer's avatar
    • Sebastian Sauer's avatar
      Fix line height. · 0d348e9c
      Sebastian Sauer authored
      If we set PercentLineHeight or FixedLineHeight then we explicit need to set the other LineHeight
      to zero to prevent that the QTextBlockFormat inherits the value from it's parent in which case
      we are later during layouting not able to know which one of them to use.
      0d348e9c
  27. 06 Jul, 2011 1 commit
  28. 01 Jul, 2011 1 commit
    • Sebastian Sauer's avatar
      First try to unbreak margins. · d5efda06
      Sebastian Sauer authored
      @Pinaraf
      * this still doesn't fix bug 276384. Are you sure that Scribe is ready
      to deal with QTextLength for e.g. table margins? I start to doubt that.
      * also those propertyLength/QTextFormat::Block*Margin).value(0) looks
      rather fishy cause the value-arg is the maximum value and that means
      we can only have negative margins now but nothing >0, right?
      * was it really a good idea to port to QTextLength taken into account
      how much things got broken by it? :-/
      CC_MAIL:5af52b82819b43849f1e321fcde081eef6ad71d5
      d5efda06
  29. 18 Jun, 2011 1 commit
  30. 04 Jun, 2011 2 commits
  31. 03 Jun, 2011 1 commit
  32. 02 Jun, 2011 2 commits