summaryrefslogtreecommitdiff
path: root/sc/source/ui/dbgui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-07-13 20:09:41 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-07-13 20:10:46 +0100
commit595c049afe0aff08ec350100bda5a2528f660a8e (patch)
treef698068192502689920b29a0174f5aebeb845f6c /sc/source/ui/dbgui
parent87c7d2902f419041b76bb7b5af8e38d5acbac733 (diff)
Resolves: tdf#98240 limit width of widgets of standard filter
and make the dialog non-resizeable because the ancient core impl can only have 4 rows visible at a time Change-Id: I3da6f7d8737c689f43904c40048748c00adcc3df
Diffstat (limited to 'sc/source/ui/dbgui')
-rw-r--r--sc/source/ui/dbgui/filtdlg.cxx18
1 files changed, 12 insertions, 6 deletions
diff --git a/sc/source/ui/dbgui/filtdlg.cxx b/sc/source/ui/dbgui/filtdlg.cxx
index 81de508a3a82..5a2c6baa3fc4 100644
--- a/sc/source/ui/dbgui/filtdlg.cxx
+++ b/sc/source/ui/dbgui/filtdlg.cxx
@@ -182,6 +182,11 @@ void ScFilterDlg::Init( const SfxItemSet& rArgSet )
pLbConnect3->SetSelectHdl( LINK( this, ScFilterDlg, LbSelectHdl ) );
pLbConnect4->SetSelectHdl( LINK( this, ScFilterDlg, LbSelectHdl ) );
+ pLbField1->setMaxWidthChars(10);
+ pLbField2->setMaxWidthChars(10);
+ pLbField3->setMaxWidthChars(10);
+ pLbField4->setMaxWidthChars(10);
+
pLbCond1->SetSelectHdl( LINK( this, ScFilterDlg, LbSelectHdl ) );
pLbCond2->SetSelectHdl( LINK( this, ScFilterDlg, LbSelectHdl ) );
pLbCond3->SetSelectHdl( LINK( this, ScFilterDlg, LbSelectHdl ) );
@@ -373,12 +378,13 @@ void ScFilterDlg::Init( const SfxItemSet& rArgSet )
pEdVal4->Disable();
}
- if(pDoc!=nullptr &&
- pDoc->GetChangeTrack()!=nullptr) pBtnCopyResult->Disable();
- // Switch on modal mode
-// SetDispatcherLock( true );
- //@BugID 54702 Enable/disable only in Basic class
-// SFX_APPWINDOW->Disable(false); //! general method in ScAnyRefDlg
+ pEdVal1->setMaxWidthChars(10);
+ pEdVal2->setMaxWidthChars(10);
+ pEdVal3->setMaxWidthChars(10);
+ pEdVal4->setMaxWidthChars(10);
+
+ if (pDoc != nullptr && pDoc->GetChangeTrack() != nullptr)
+ pBtnCopyResult->Disable();
}
bool ScFilterDlg::Close()