diff options
author | Eike Rathke <erack@redhat.com> | 2014-12-08 20:11:06 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-12-09 03:53:21 +0100 |
commit | 03956d83774cc2d5b0f02ec36105342b3c457931 (patch) | |
tree | 52878cd777797fd46d93403176f13df166d7c7da /sc/inc | |
parent | 6163291b25d2dac74ac353c3879fdc520bee747e (diff) |
introduce ScColumn::BroadcastMode instead of bBroadcast, bIncludeEmptyCells
Not only are multiple boolean parameters ugly, but prepare also for the
new broadcasters-only mode yet to be implemented.
Change-Id: Ie6383826e76a771b88e7b4b29e5de9a58c598ad5
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/column.hxx | 12 | ||||
-rw-r--r-- | sc/inc/table.hxx | 2 |
2 files changed, 12 insertions, 2 deletions
diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx index f07cf8abe908..f7223bb634e6 100644 --- a/sc/inc/column.hxx +++ b/sc/inc/column.hxx @@ -165,6 +165,16 @@ friend class sc::TableValues; ScSetStringParam* pParam ); public: + + /** Broadcast mode for SetDirty(SCROW,SCROW,BroadcastMode). */ + enum BroadcastMode + { + BROADCAST_NONE, ///< no broadcasting + BROADCAST_DATA_POSITIONS, ///< broadcast existing cells with position => does AreaBroadcast + BROADCAST_ALL_POSITIONS, ///< broadcast all cells, including empty, with position => does AreaBroadcast + BROADCAST_BROADCASTERS ///< broadcast only existing cell broadcasters => no AreaBroadcast of range! + }; + ScColumn(); ~ScColumn(); @@ -362,7 +372,7 @@ public: void SetAllFormulasDirty( const sc::SetFormulaDirtyContext& rCxt ); void SetDirtyFromClip( SCROW nRow1, SCROW nRow2, sc::ColumnSpanSet& rBroadcastSpans ); - void SetDirty( SCROW nRow1, SCROW nRow2, bool bBroadcast, bool bIncludeEmptyCells ); + void SetDirty( SCROW nRow1, SCROW nRow2, BroadcastMode ); void SetDirtyVar(); void SetDirtyAfterLoad(); void SetTableOpDirty( const ScRange& ); diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index 1053ea70f296..7661fdace7a7 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -532,7 +532,7 @@ public: void ResetChanged( const ScRange& rRange ); void SetAllFormulasDirty( const sc::SetFormulaDirtyContext& rCxt ); - void SetDirty( const ScRange&, bool bIncludeEmptyCells ); + void SetDirty( const ScRange&, ScColumn::BroadcastMode ); void SetDirtyAfterLoad(); void SetDirtyVar(); void SetTableOpDirty( const ScRange& ); |