summaryrefslogtreecommitdiffstats
path: root/sc/inc/columnspanset.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-05-16 18:37:12 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-05-20 20:13:08 -0400
commit8eed8f8c3d6a58d28f8af5e5688d8fe8756d7dc8 (patch)
treec48bde79961d86efab1e97355e2d000225342b96 /sc/inc/columnspanset.hxx
parentCleaned up a bit to remove the need to initialize the block positions. (diff)
downloadcore-8eed8f8c3d6a58d28f8af5e5688d8fe8756d7dc8.tar.gz
core-8eed8f8c3d6a58d28f8af5e5688d8fe8756d7dc8.zip
Optimize ScViewFunc::GetSelectionScriptType().
This change reduces the duration of this method from somewhere in the ballpark of 10 seconds down to a tiny fraction of a second. Change-Id: I0278dc06a4f134b43cd08bd94693b6dec4893f1f
Diffstat (limited to 'sc/inc/columnspanset.hxx')
-rw-r--r--sc/inc/columnspanset.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sc/inc/columnspanset.hxx b/sc/inc/columnspanset.hxx
index afd17977add9..35d94bf8e789 100644
--- a/sc/inc/columnspanset.hxx
+++ b/sc/inc/columnspanset.hxx
@@ -30,17 +30,21 @@ class ColumnSpanSet : boost::noncopyable
DocType maDoc;
+ ColumnSpansType& getColumnSpans(SCTAB nTab, SCCOL nCol);
+
public:
class Action
{
public:
virtual ~Action() = 0;
+ virtual void startColumn(SCTAB nTab, SCCOL nCol);
virtual void execute(const ScAddress& rPos, SCROW nLength, bool bVal) = 0;
};
~ColumnSpanSet();
- void set(SCCOL nCol, SCROW nRow, SCTAB nTab, bool bVal);
+ void set(SCTAB nTab, SCCOL nCol, SCROW nRow, bool bVal);
+ void set(SCTAB nTab, SCCOL nCol, SCROW nRow1, SCROW nRow2, bool bVal);
void executeFromTop(Action& ac) const;
void executeFromBottom(Action& ac) const;