diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2012-07-04 09:46:29 -0430 |
---|---|---|
committer | Rafael Dominguez <venccsralph@gmail.com> | 2012-07-04 09:46:29 -0430 |
commit | 822532024d078685ab6baa59673d46645dde74de (patch) | |
tree | 002e22309ae12f5e2e595685764b4b00cbccdbc5 /sfx2 | |
parent | c11eff1e28f462ee2371fa9283cd9baa5cb8e5e9 (diff) |
Set search view size an position.
Change-Id: Ifed9e633ef73c4248fa67adc8b0e90dd2c484dbd
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/templatedlg.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx index 927dff6cbc63..13db34c3f4bb 100644 --- a/sfx2/source/doc/templatedlg.cxx +++ b/sfx2/source/doc/templatedlg.cxx @@ -170,6 +170,13 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg (Window *parent) maView->setTemplateStateHdl(LINK(this,SfxTemplateManagerDlg,TVTemplateStateHdl)); maView->setOverlayDblClickHdl(LINK(this,SfxTemplateManagerDlg,OpenTemplateHdl)); + mpSearchView->SetSizePixel(aThumbSize); + mpSearchView->setItemMaxTextLength(ITEM_MAX_TEXT_LENGTH); + + mpSearchView->setItemDimensions(ITEM_MAX_WIDTH,THUMBNAIL_MAX_HEIGHT, + ITEM_MAX_HEIGHT-THUMBNAIL_MAX_HEIGHT, + ITEM_PADDING); + // Set OK button position Point aBtnPos; Size aBtnSize = maButtonClose.GetSizePixel(); @@ -626,6 +633,7 @@ void SfxTemplateManagerDlg::OnTemplateSearch () SetSizePixel(aWinSize); maView->SetPosPixel(aPos); + mpSearchView->SetPosPixel(aPos); maButtonClose.SetPosPixel(aClosePos); // Hide search view |