~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to kspread/Util.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-10-27 17:52:57 UTC
  • mfrom: (0.12.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101027175257-s04zqqk5bs8ckm9o
Tags: 1:2.2.83-0ubuntu1
* Merge with Debian git remaining changes:
 - Add build-deps on librcps-dev, opengtl-dev, libqtgtl-dev, freetds-dev,
   create-resources, libspnav-dev
 - Remove needless build-dep on libwv2-dev
 - koffice-libs recommends create-resources
 - krita recommends pstoedit
 - Keep our patches
* New upstream release 2.3 beta 3
  - Remove debian/patches fixed by upstream
  - Update install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include <kdebug.h>
28
28
 
29
29
#include "Formula.h"
 
30
#include "kspread_limits.h"
30
31
#include "Localization.h"
31
32
#include "Map.h"
32
33
#include "NamedAreaManager.h"
44
45
int KSpread::Util::decodeColumnLabelText(const QString &labelText)
45
46
{
46
47
    int col = 0;
47
 
    const int offset = 'a' -'A';
 
48
    const int offset = 'a' - 'A';
48
49
    int counterColumn = 0;
49
50
    const uint totalLength = labelText.length();
50
51
    uint labelTextLength;
296
297
        break;
297
298
    default: break;
298
299
    }
299
 
    kDebug() << " encodePen :" << s;
 
300
    //kDebug() << " encodePen :" << s;
300
301
    if (pen.color().isValid()) {
301
302
        s += ' ';
302
303
        s += Style::colorName(pen.color());
508
509
            } else if (namespacePrefix == "oooc:" && expression.mid(i).startsWith("TABLE") && !isIdentifier(expression[i+5])) {
509
510
                result.append("MULTIPLE.OPERATIONS");
510
511
                i += 5;
 
512
            } else if (expression.mid(i).startsWith("NEG") && i+3 < expression.length() && !isIdentifier(expression[i+3])) {
 
513
                result.append("-");
 
514
                i += 3;
511
515
            }
512
516
 
513
517