From 4cc5ccef4bccc779f6286ac369b00dfd42ca9cdb Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 24 Oct 2012 14:10:20 +0100 Subject: convert index dialog to .ui Change-Id: I4b16cb517dca25f862b9dd612785dae4d0f21793 --- svtools/source/control/ctrlbox.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'svtools/source/control') diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx index 61964004c3a2..b4709df3d7dc 100644 --- a/svtools/source/control/ctrlbox.cxx +++ b/svtools/source/control/ctrlbox.cxx @@ -147,7 +147,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeColorListBox(Window *pParen nWinBits |= WB_DROPDOWN; ColorListBox *pListBox = new ColorListBox(pParent, nWinBits); if (bDropdown) - pListBox->SetBestDropDownLineCount(); + pListBox->EnableAutoSize(true); return pListBox; } @@ -1049,7 +1049,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeFontNameBox(Window *pParent nWinBits |= WB_DROPDOWN; FontNameBox *pListBox = new FontNameBox(pParent, nWinBits); if (bDropdown) - pListBox->SetBestDropDownLineCount(); + pListBox->EnableAutoSize(true); return pListBox; } @@ -1438,7 +1438,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeFontStyleBox(Window *pParen nWinBits |= WB_DROPDOWN; FontStyleBox *pListBox = new FontStyleBox(pParent, nWinBits); if (bDropdown) - pListBox->SetBestDropDownLineCount(); + pListBox->EnableAutoSize(true); return pListBox; } @@ -1658,7 +1658,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeFontSizeBox(Window *pParent nWinBits |= WB_DROPDOWN; FontSizeBox* pListBox = new FontSizeBox(pParent, nWinBits); if (bDropdown) - pListBox->SetBestDropDownLineCount(); + pListBox->EnableAutoSize(true); return pListBox; } -- cgit