mirror of
https://github.com/unidoc/unioffice.git
synced 2025-04-27 13:48:54 +08:00

* Issue #376 fix - RemoveColumn * Removing of columns is forbidden when there are formula arrays in the area of removing, except 1-column wide arrays * Modifying named ranges, column ranges when deleting a column * Updating formulas when deleting a column * UpdateAction
32 lines
1.2 KiB
Go
32 lines
1.2 KiB
Go
// Copyright 2017 FoxyUtils ehf. All rights reserved.
|
|
//
|
|
// Use of this source code is governed by the terms of the Affero GNU General
|
|
// Public License version 3.0 as published by the Free Software Foundation and
|
|
// appearing in the file LICENSE included in the packaging of this file. A
|
|
// commercial license can be purchased on https://unidoc.io.
|
|
|
|
// Package update contains definitions needed for updating references after removing rows/columns.
|
|
package update
|
|
|
|
// UpdateAction is the type for update types constants.
|
|
type UpdateAction byte
|
|
const (
|
|
// UpdateActionRemoveColumn means updating references after removing a column.
|
|
UpdateActionRemoveColumn UpdateAction = iota
|
|
)
|
|
|
|
// UpdateQuery contains terms of how to update references after removing row/column.
|
|
type UpdateQuery struct {
|
|
// UpdateType is one of the update types like UpdateActionRemoveColumn.
|
|
UpdateType UpdateAction
|
|
|
|
// ColumnIdx is the index of the column removed.
|
|
ColumnIdx uint32
|
|
|
|
// SheetToUpdate contains the name of the sheet on which removing happened.
|
|
SheetToUpdate string
|
|
|
|
// UpdateCurrentSheet is true if references without sheet prefix should be updated as well.
|
|
UpdateCurrentSheet bool
|
|
}
|