add a crude GetOptimalSize to ScCsvTableBox
Change-Id: I06357e9e69a0d9f4b8edb4db4ba1b788f96d73a9
This commit is contained in:
parent
0e26ed476a
commit
9428c58408
2 changed files with 7 additions and 0 deletions
|
@ -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()
|
||||
|
|
|
@ -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* );
|
||||
|
|
Loading…
Reference in a new issue