summaryrefslogtreecommitdiff
path: root/sc/source/ui/view
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-04-15 13:41:26 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-04-15 13:53:48 +0100
commit46e663c4b7e30316fdbe23a5631ea4842b18ca57 (patch)
tree648d9cad25d05390150d88484f655c8786e06fcc /sc/source/ui/view
parente9c050115bb1654c3c91138820b2e9ea0cf7a991 (diff)
adapt code to data form .ui conversion
this dialog has some bizarre behaviour which is unchanged with the .ui conversion a) the scrollbar does not scroll the window beside it up and down through the rows (which map to the spreadsheet columns), but instead scrolls through the records (which map to the spreadsheet rows) b) the dialog grows to include a row for each spreadsheet column, i.e. large number of spreadsheet columns -> unusable dialog with too many rows to fit on the screen. what's indicated here is to clip the dialog to some max size and make the scrollbar then scroll through the rows of the widget, and add another scrollbar if necessary to scroll through the records. Change-Id: I9b56992fc57468eb058d2a2914c08074f958a692
Diffstat (limited to 'sc/source/ui/view')
-rw-r--r--sc/source/ui/view/cellsh2.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/view/cellsh2.cxx b/sc/source/ui/view/cellsh2.cxx
index 39892616fe8b..5f16fb1f81bf 100644
--- a/sc/source/ui/view/cellsh2.cxx
+++ b/sc/source/ui/view/cellsh2.cxx
@@ -315,7 +315,8 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq )
ScAbstractDialogFactory* pFact = ScAbstractDialogFactory::Create();
OSL_ENSURE(pFact, "ScAbstractFactory create fail!");
- AbstractScDataFormDlg* pDlg = pFact->CreateScDataFormDlg( pTabViewShell->GetDialogParent(),RID_SCDLG_DATAFORM, pTabViewShell);
+ AbstractScDataFormDlg* pDlg = pFact->CreateScDataFormDlg(
+ pTabViewShell->GetDialogParent(), pTabViewShell);
OSL_ENSURE(pDlg, "Dialog create fail!");
pDlg->Execute();