summaryrefslogtreecommitdiff
path: root/sc/source/ui/dbgui/dbnamdlg.cxx
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-03-02 10:28:07 +0100
committerNoel Grandin <noelgrandin@gmail.com>2016-03-03 07:07:54 +0000
commitbe326abdd5371e9f8715a064289bcff64af47bdb (patch)
tree082a4e811efa1044526208daa8ade2957a2d780e /sc/source/ui/dbgui/dbnamdlg.cxx
parent74c93c91ebce735e0defacc30054ca809c2db02d (diff)
remove double defines
search ABS_* defines and replace with equal SC*_* defines from address.hxx then removed double defines Change-Id: I1a5385daf6e1fb6f959f142c04f2515e7b85a80e Signed-off-by: Jochen Nitschke <j.nitschke+logerrit@ok.de> Reviewed-on: https://gerrit.libreoffice.org/22826 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc/source/ui/dbgui/dbnamdlg.cxx')
-rw-r--r--sc/source/ui/dbgui/dbnamdlg.cxx12
1 files changed, 3 insertions, 9 deletions
diff --git a/sc/source/ui/dbgui/dbnamdlg.cxx b/sc/source/ui/dbgui/dbnamdlg.cxx
index 422e7abbbad8..5b1ba88b519c 100644
--- a/sc/source/ui/dbgui/dbnamdlg.cxx
+++ b/sc/source/ui/dbgui/dbnamdlg.cxx
@@ -33,12 +33,6 @@
#include "dbnamdlg.hxx"
#include <dbdocfun.hxx>
-#define ABS_SREF SCA_VALID \
- | SCA_COL_ABSOLUTE | SCA_ROW_ABSOLUTE | SCA_TAB_ABSOLUTE
-#define ABS_DREF ABS_SREF \
- | SCA_COL2_ABSOLUTE | SCA_ROW2_ABSOLUTE | SCA_TAB2_ABSOLUTE
-#define ABS_DREF3D ABS_DREF | SCA_TAB_3D
-
class DBSaveData;
static DBSaveData* pSaveObj = nullptr;
@@ -225,7 +219,7 @@ void ScDbNameDlg::Init()
theCurArea = ScRange( ScAddress( nStartCol, nStartRow, nStartTab ),
ScAddress( nEndCol, nEndRow, nEndTab ) );
- theAreaStr = theCurArea.Format(ABS_DREF3D, pDoc, aAddrDetails);
+ theAreaStr = theCurArea.Format(SCR_ABS_3D, pDoc, aAddrDetails);
if ( pDBColl )
{
@@ -301,7 +295,7 @@ void ScDbNameDlg::SetReference( const ScRange& rRef, ScDocument* pDocP )
theCurArea = rRef;
- OUString aRefStr(theCurArea.Format(ABS_DREF3D, pDocP, aAddrDetails));
+ OUString aRefStr(theCurArea.Format(SCR_ABS_3D, pDocP, aAddrDetails));
m_pEdAssign->SetRefString( aRefStr );
m_pOptions->Enable();
m_pBtnAdd->Enable();
@@ -370,7 +364,7 @@ void ScDbNameDlg::UpdateDBData( const OUString& rStrName )
pData->GetArea( nTab, nColStart, nRowStart, nColEnd, nRowEnd );
theCurArea = ScRange( ScAddress( nColStart, nRowStart, nTab ),
ScAddress( nColEnd, nRowEnd, nTab ) );
- OUString theArea(theCurArea.Format(ABS_DREF3D, pDoc, aAddrDetails));
+ OUString theArea(theCurArea.Format(SCR_ABS_3D, pDoc, aAddrDetails));
m_pEdAssign->SetText( theArea );
m_pBtnAdd->SetText( aStrModify );
m_pBtnHeader->Check( pData->HasHeader() );