<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
    <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="http://git.reviewboard.kde.org/r/107445/">http://git.reviewboard.kde.org/r/107445/</a>
     </td>
    </tr>
   </table>
   <br />








<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
 <p style="margin-top: 0;">On November 25th, 2012, 9:19 p.m., <b>C. Boemann</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
  



<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/107445/diff/1/?file=96066#file96066line1965" style="color: black; font-weight: bold; text-decoration: underline;">libs/kotext/styles/KoCharacterStyle.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 1)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">void KoCharacterStyle::removeDuplicates(const KoCharacterStyle &other)</pre></td>

  </tr>
 </tbody>




 
 



 <tbody>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2"></font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
    <th bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">1965</font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "><span class="kt">void</span> <span class="n">KoCharacterStyle</span><span class="o">::</span><span class="n">remove</span><span class="p">(</span><span class="kt">int</span> <span class="n">key</span><span class="p">)</span></pre></td>
  </tr>

 </tbody>

</table>

  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">is this used anywhere and for what?</pre>
 </blockquote>





</blockquote>
<pre style="margin-left: 1em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Ah, this is a left-over from my StylesManager branch. Well, this is present in the KoParagraphStyle and will be used (actually it should already be used in the StylesManager). I'd advocate for leaving it in, but don't mind removing it from this patch (it would be re-introduced later).</pre>
<br />

<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
 <p style="margin-top: 0;">On November 25th, 2012, 9:19 p.m., <b>C. Boemann</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
  



<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/107445/diff/1/?file=96086#file96086line531" style="color: black; font-weight: bold; text-decoration: underline;">plugins/textshape/dialogs/StylesModel.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 1)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">void StylesModel::addDraftParagraphStyle(KoParagraphStyle *style)</pre></td>

  </tr>
 </tbody>



 
 




 <tbody>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">515</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">    <span class="k"><span class="hl">if</span></span><span class="hl"> </span><span class="p">(</span><span class="n">m_draftCharStyleList</span><span class="p">.</span><span class="n">count</span><span class="p">()</span><span class="hl"> </span><span class="o"><span class="hl">==</span></span><span class="hl"> </span><span class="mi"><span class="hl">0</span></span><span class="p"><span class="hl">)</span></span> <span class="c1">// we have a <span class="hl">character style "m_defaultC</span>haracterStyle<span class="hl">"</span> with style id -1<span class="hl"> in style model.</span></span></pre></td>
    <th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">515</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">    <span class="n"><span class="hl">style</span></span><span class="o"><span class="hl">-></span></span><span class="n"><span class="hl">setStyleId</span></span><span class="p"><span class="hl">(</span></span><span class="o"><span class="hl">-</span></span><span class="p">(</span><span class="n">m_draftCharStyleList</span><span class="p">.</span><span class="n">count</span><span class="p">()</span><span class="o"><span class="hl">+</span></span><span class="mi"><span class="hl">2</span></span><span class="p"><span class="hl">));</span></span> <span class="c1">//we have a <span class="hl">virtual c</span>haracterStyle with style id -1<span class="hl">, so we need to skip it</span></span></pre></td>
  </tr>

 </tbody>

</table>

  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">is this a correct change?</pre>
 </blockquote>





</blockquote>
<pre style="margin-left: 1em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">This is also a left over from my other branch. And this one I really can't remember what it was for. It has I think nothing to do with the present functionality, so I'll remove this.</pre>
<br />




<p>- Pierre</p>


<br />
<p>On November 24th, 2012, 2:36 p.m., Pierre Stirnweiss wrote:</p>






<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('http://git.reviewboard.kde.org/media/rb/images/review_request_box_top_bg.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
 <tr>
  <td>

<div>Review request for Calligra, Inge Wallin and C. Boemann.</div>
<div>By Pierre Stirnweiss.</div>


<p style="color: grey;"><i>Updated Nov. 24, 2012, 2:36 p.m.</i></p>






<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
 <table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">This introduces sorting of the styles in the combos according to usage.
This is a first step into revamping the styles handling.</pre>
  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Playing around with it did not show regressions with current state of the affair. There are a couple of glitches in handling styles, but these are also present in the current build.</pre>
  </td>
 </tr>
</table>




<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>libs/kotext/KoTextEditor.h <span style="color: grey">(64f47bb)</span></li>

 <li>libs/kotext/KoTextEditor_format.cpp <span style="color: grey">(8985fcc)</span></li>

 <li>libs/kotext/styles/KoCharacterStyle.h <span style="color: grey">(765f49e)</span></li>

 <li>libs/kotext/styles/KoCharacterStyle.cpp <span style="color: grey">(fcb20fd)</span></li>

 <li>libs/kotext/styles/KoParagraphStyle.h <span style="color: grey">(7ee1787)</span></li>

 <li>libs/kotext/styles/KoParagraphStyle.cpp <span style="color: grey">(f8bffb6)</span></li>

 <li>libs/kotext/styles/KoStyleManager.h <span style="color: grey">(ae2e720)</span></li>

 <li>libs/kotext/styles/KoStyleManager.cpp <span style="color: grey">(2aa74fe)</span></li>

 <li>plugins/textshape/CMakeLists.txt <span style="color: grey">(6253323)</span></li>

 <li>plugins/textshape/TextTool.cpp <span style="color: grey">(207dfd9)</span></li>

 <li>plugins/textshape/dialogs/AbstractStylesModel.h <span style="color: grey">(PRE-CREATION)</span></li>

 <li>plugins/textshape/dialogs/AbstractStylesModel.cpp <span style="color: grey">(PRE-CREATION)</span></li>

 <li>plugins/textshape/dialogs/DockerStylesComboModel.h <span style="color: grey">(PRE-CREATION)</span></li>

 <li>plugins/textshape/dialogs/DockerStylesComboModel.cpp <span style="color: grey">(PRE-CREATION)</span></li>

 <li>plugins/textshape/dialogs/SimpleCharacterWidget.h <span style="color: grey">(d14007c)</span></li>

 <li>plugins/textshape/dialogs/SimpleCharacterWidget.cpp <span style="color: grey">(a7feb89)</span></li>

 <li>plugins/textshape/dialogs/SimpleParagraphWidget.h <span style="color: grey">(a7d7f52)</span></li>

 <li>plugins/textshape/dialogs/SimpleParagraphWidget.cpp <span style="color: grey">(6fd2f67)</span></li>

 <li>plugins/textshape/dialogs/StylesCombo.h <span style="color: grey">(484b8fc)</span></li>

 <li>plugins/textshape/dialogs/StylesCombo.cpp <span style="color: grey">(a5e7172)</span></li>

 <li>plugins/textshape/dialogs/StylesFilteredModelBase.h <span style="color: grey">(PRE-CREATION)</span></li>

 <li>plugins/textshape/dialogs/StylesFilteredModelBase.cpp <span style="color: grey">(PRE-CREATION)</span></li>

 <li>plugins/textshape/dialogs/StylesModel.h <span style="color: grey">(7096d53)</span></li>

 <li>plugins/textshape/dialogs/StylesModel.cpp <span style="color: grey">(64767f8)</span></li>

 <li>plugins/textshape/dialogs/ValidParentStylesProxyModel.h <span style="color: grey">(PRE-CREATION)</span></li>

 <li>plugins/textshape/dialogs/ValidParentStylesProxyModel.cpp <span style="color: grey">(PRE-CREATION)</span></li>

</ul>

<p><a href="http://git.reviewboard.kde.org/r/107445/diff/" style="margin-left: 3em;">View Diff</a></p>




  </td>
 </tr>
</table>








  </div>
 </body>
</html>