summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/dbgui/csvtablebox.cxx6
-rw-r--r--sc/source/ui/inc/csvtablebox.hxx1
2 files changed, 7 insertions, 0 deletions
diff --git a/sc/source/ui/dbgui/csvtablebox.cxx b/sc/source/ui/dbgui/csvtablebox.cxx
index d404118d4b23..9b3738b3480c 100644
--- a/sc/source/ui/dbgui/csvtablebox.cxx
+++ b/sc/source/ui/dbgui/csvtablebox.cxx
@@ -57,6 +57,12 @@ ScCsvTableBox::ScCsvTableBox( Window* pParent, const ResId& rResId ) :
}
+Size ScCsvTableBox::GetOptimalSize() const
+{
+ Size aDefault(LogicToPixel(Size(243, 82), MapMode(MAP_APPFONT)));
+ return aDefault;
+}
+
// common table box handling --------------------------------------------------
void ScCsvTableBox::SetSeparatorsMode()
diff --git a/sc/source/ui/inc/csvtablebox.hxx b/sc/source/ui/inc/csvtablebox.hxx
index 976d9d01ecad..fe4c0808aee3 100644
--- a/sc/source/ui/inc/csvtablebox.hxx
+++ b/sc/source/ui/inc/csvtablebox.hxx
@@ -126,6 +126,7 @@ public:
protected:
virtual void Resize();
virtual void DataChanged( const DataChangedEvent& rDCEvt );
+ virtual Size GetOptimalSize() const;
private:
SC_DLLPRIVATE DECL_LINK( CsvCmdHdl, ScCsvControl* );