diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-12-30 16:50:02 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-12-30 19:40:09 -0500 |
commit | fed8a0b291eca0565071da27d6fb7c7c5f331dcd (patch) | |
tree | ecf67bb480be5c1672076eb0c0da547c3307383f /sc/source/ui | |
parent | 226f4f037c8492eca1050b0590169e85e61fb413 (diff) |
Display 3D address & honor current reference address convension.
Change-Id: I0c0f03807ddfadb5b9c17c81eeb86d51c877d4b4
Diffstat (limited to 'sc/source/ui')
-rw-r--r-- | sc/source/ui/miscdlgs/datastreamdlg.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/miscdlgs/datastreamdlg.cxx b/sc/source/ui/miscdlgs/datastreamdlg.cxx index 8f8aee9ade33..2b6f023ff9c7 100644 --- a/sc/source/ui/miscdlgs/datastreamdlg.cxx +++ b/sc/source/ui/miscdlgs/datastreamdlg.cxx @@ -100,7 +100,7 @@ ScRange DataStreamDlg::GetStartRange() OUString aStr = m_pEdRange->GetText(); ScDocument* pDoc = mpDocShell->GetDocument(); ScRange aRange; - sal_uInt16 nRes = aRange.Parse(aStr, pDoc); + sal_uInt16 nRes = aRange.Parse(aStr, pDoc, pDoc->GetAddressConvention()); if ((nRes & SCA_VALID) != SCA_VALID || !aRange.IsValid()) { // Invalid range. @@ -118,11 +118,12 @@ ScRange DataStreamDlg::GetStartRange() void DataStreamDlg::Init( const DataStream& rStrm ) { m_pCbUrl->SetText(rStrm.GetURL()); + ScDocument* pDoc = mpDocShell->GetDocument(); ScRange aRange = rStrm.GetRange(); ScRange aTopRange = aRange; aTopRange.aEnd.SetRow(aTopRange.aStart.Row()); - OUString aStr = aTopRange.Format(SCA_VALID); + OUString aStr = aTopRange.Format(SCR_ABS_3D, pDoc, pDoc->GetAddressConvention()); m_pEdRange->SetText(aStr); SCROW nRows = aRange.aEnd.Row() - aRange.aStart.Row() + 1; |