/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "cellmergeoption.hxx" #include "address.hxx" ScCellMergeOption::ScCellMergeOption(const ScRange& rRange) : mnStartCol(rRange.aStart.Col()), mnStartRow(rRange.aStart.Row()), mnEndCol(rRange.aEnd.Col()), mnEndRow(rRange.aEnd.Row()), mbCenter(false) { SCTAB nTab1 = rRange.aStart.Tab(); SCTAB nTab2 = rRange.aEnd.Tab(); for (SCTAB i = nTab1; i <= nTab2; ++i) maTabs.insert(i); } ScCellMergeOption::ScCellMergeOption(SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, bool bCenter) : mnStartCol(nStartCol), mnStartRow(nStartRow), mnEndCol(nEndCol), mnEndRow(nEndRow), mbCenter(bCenter) { } ScCellMergeOption::ScCellMergeOption(const ScCellMergeOption& r) : maTabs(r.maTabs), mnStartCol(r.mnStartCol), mnStartRow(r.mnStartRow), mnEndCol(r.mnEndCol), mnEndRow(r.mnEndRow), mbCenter(r.mbCenter) { } ScRange ScCellMergeOption::getSingleRange(SCTAB nTab) const { return ScRange(mnStartCol, mnStartRow, nTab, mnEndCol, mnEndRow, nTab); } ScRange ScCellMergeOption::getFirstSingleRange() const { SCTAB nTab = 0; if (!maTabs.empty()) nTab = *maTabs.begin(); return getSingleRange(nTab); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ tro/cib/libreoffice-5-3'>distro/cib/libreoffice-5-3 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/include/dbaccess/dbaundomanager.hxx
AgeCommit message (Collapse)Author
2016-06-16tdf#42949: clean up includes in include/dbaccess with iwyuJorenz Paragas
Change-Id: I40de14b82b698b927cb461376470dc177c16d58c Reviewed-on: https://gerrit.libreoffice.org/26345 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-02-09Remove excess newlinesChris Sherlock
A ridiculously fast way of doing this is: for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \ --exclude-dir=workdir --exclude-dir=instdir '^ {3,}' .) do perl -0777 -i -pe 's/^ {3,}/ /gm' $i done Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c Reviewed-on: https://gerrit.libreoffice.org/22224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2015-10-21com::sun::star->css in include/dbaccessNoel Grandin
Change-Id: I90202b5a537cb64f4ddae3141e19270a93c5b6e0 Reviewed-on: https://gerrit.libreoffice.org/19487 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-02-16boost::foo_ptr->std::foo_ptrCaolán McNamara
Change-Id: I9219619b538b6530a89f5932ac51eb3b62eb396a
2014-04-03remove unnecessary scope qualifier from sal_Bool usesNoel Grandin
i.e. convert "::sal_Bool" to "sal_Bool" Change-Id: Ie5943aee4fee617bf2670655558927ed25b7e067
2014-03-27Second batch of adding SAL_OVERRIDE to overriding function declarationsStephan Bergmann
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: Ie656f9d653fc716f72ac175925272696d509038f
2014-03-01Remove visual noise from includeAlexander Wilms
Conflicts: include/framework/preventduplicateinteraction.hxx include/sfx2/sfxbasecontroller.hxx include/sfx2/sfxbasemodel.hxx include/toolkit/awt/vclxtabpagemodel.hxx include/vcl/field.hxx include/vcl/settings.hxx Change-Id: Ibccf9f88c68267a3d7e656012b51eaf644c418c2 Reviewed-on: https://gerrit.libreoffice.org/8272 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2013-11-09fdo#65108 inter-module includes <> include/dbaccessNorbert Thiebaud
Change-Id: I50a6c5c40fec035491921db48e6f7c8db67273cd
2013-10-23fixincludeguards.sh: include - the restThomas Arnhold
Change-Id: If1ee11da444a7f96f2d8668b277540da0bb4dbe9