LibreOffice Module sc (master)
1
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
Functions
a
b
c
d
e
f
g
i
j
l
n
o
p
s
t
v
Variables
a
b
e
f
i
k
o
s
Typedefs
a
b
c
d
e
f
i
k
n
o
p
r
s
t
u
w
x
Enumerations
a
c
d
e
f
g
l
m
n
o
r
s
t
u
v
w
Enumerator
a
c
d
f
g
i
l
m
n
o
s
t
y
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Variables
a
b
c
d
e
f
g
i
m
n
o
p
q
r
s
t
u
v
w
x
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
q
r
s
t
u
v
x
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
Related Functions
c
d
e
l
m
o
p
s
t
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
x
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Enumerations
b
c
d
e
f
h
i
l
n
o
p
q
r
s
t
u
w
x
Enumerator
a
b
c
d
e
f
g
i
k
l
m
n
o
p
q
r
s
t
u
v
x
Macros
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
x
z
sc
source
ui
view
cellmergeoption.cxx
Go to the documentation of this file.
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
/*
3
* This file is part of the LibreOffice project.
4
*
5
* This Source Code Form is subject to the terms of the Mozilla Public
6
* License, v. 2.0. If a copy of the MPL was not distributed with this
7
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
*/
9
10
#include <
cellmergeoption.hxx
>
11
#include <
address.hxx
>
12
13
ScCellMergeOption::ScCellMergeOption
(
const
ScRange
& rRange) :
14
mnStartCol(rRange.aStart.
Col
()),
15
mnStartRow(rRange.aStart.
Row
()),
16
mnEndCol(rRange.aEnd.
Col
()),
17
mnEndRow(rRange.aEnd.
Row
()),
18
mbCenter(false)
19
{
20
SCTAB
nTab1 = rRange.
aStart
.
Tab
();
21
SCTAB
nTab2 = rRange.
aEnd
.
Tab
();
22
for
(
SCTAB
i
= nTab1;
i
<= nTab2; ++
i
)
23
maTabs
.insert(
i
);
24
}
25
26
ScCellMergeOption::ScCellMergeOption
(
SCCOL
nStartCol,
SCROW
nStartRow,
SCCOL
nEndCol,
SCROW
nEndRow,
bool
bCenter) :
27
mnStartCol(nStartCol),
28
mnStartRow(nStartRow),
29
mnEndCol(nEndCol),
30
mnEndRow(nEndRow),
31
mbCenter(bCenter)
32
{
33
}
34
35
ScRange
ScCellMergeOption::getSingleRange
(
SCTAB
nTab)
const
36
{
37
return
ScRange
(
mnStartCol
,
mnStartRow
, nTab,
mnEndCol
,
mnEndRow
, nTab);
38
}
39
40
ScRange
ScCellMergeOption::getFirstSingleRange
()
const
41
{
42
SCTAB
nTab = 0;
43
if
(!
maTabs
.empty())
44
nTab = *
maTabs
.begin();
45
46
return
getSingleRange
(nTab);
47
}
48
49
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
address.hxx
cellmergeoption.hxx
ScAddress::Tab
SCTAB Tab() const
Definition:
address.hxx:283
ScRange
Definition:
address.hxx:495
ScRange::aEnd
ScAddress aEnd
Definition:
address.hxx:498
ScRange::aStart
ScAddress aStart
Definition:
address.hxx:497
i
int i
ScCellMergeOption::getSingleRange
ScRange getSingleRange(SCTAB nTab) const
Definition:
cellmergeoption.cxx:35
ScCellMergeOption::maTabs
::std::set< SCTAB > maTabs
Definition:
cellmergeoption.hxx:18
ScCellMergeOption::mnEndRow
SCROW mnEndRow
Definition:
cellmergeoption.hxx:22
ScCellMergeOption::getFirstSingleRange
ScRange getFirstSingleRange() const
Definition:
cellmergeoption.cxx:40
ScCellMergeOption::ScCellMergeOption
ScCellMergeOption(const ScRange &rRange)
Definition:
cellmergeoption.cxx:13
ScCellMergeOption::mnStartCol
SCCOL mnStartCol
Definition:
cellmergeoption.hxx:19
ScCellMergeOption::mnEndCol
SCCOL mnEndCol
Definition:
cellmergeoption.hxx:21
ScCellMergeOption::mnStartRow
SCROW mnStartRow
Definition:
cellmergeoption.hxx:20
SwTableSearchType::Col
@ Col
SwTableSearchType::Row
@ Row
SCTAB
sal_Int16 SCTAB
Definition:
types.hxx:22
SCCOL
sal_Int16 SCCOL
Definition:
types.hxx:21
SCROW
sal_Int32 SCROW
Definition:
types.hxx:17
Generated on Sun Jul 30 2023 04:29:44 for LibreOffice Module sc (master) by
1.9.3