diff options
-rwxr-xr-x | solenv/bin/native-code.py | 1 | ||||
-rw-r--r-- | svtools/source/control/ctrlbox.cxx | 14 |
2 files changed, 0 insertions, 15 deletions
diff --git a/solenv/bin/native-code.py b/solenv/bin/native-code.py index f8133a6d7723..d7796260a283 100755 --- a/solenv/bin/native-code.py +++ b/solenv/bin/native-code.py @@ -500,7 +500,6 @@ custom_widgets = [ 'EmojiView', 'FontNameBox', 'FontSizeBox', - 'FontStyleBox', 'IndexBox', 'IndexBox', 'ManagedMenuButton', diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx index d0801b7e44d4..db06c557178f 100644 --- a/svtools/source/control/ctrlbox.cxx +++ b/svtools/source/control/ctrlbox.cxx @@ -723,20 +723,6 @@ Size FontStyleBox::GetOptimalSize() const return ComboBox::GetOptimalSize(); } -extern "C" SAL_DLLPUBLIC_EXPORT void makeFontStyleBox(VclPtr<vcl::Window> & rRet, const VclPtr<vcl::Window> & pParent, VclBuilder::stringmap & rMap) -{ - static_assert(std::is_same_v<std::remove_pointer_t<VclBuilder::customMakeWidget>, - decltype(makeFontStyleBox)>); - bool bDropdown = BuilderUtils::extractDropdown(rMap); - WinBits nWinBits = WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_TABSTOP; - if (bDropdown) - nWinBits |= WB_DROPDOWN; - VclPtrInstance<FontStyleBox> pListBox(pParent, nWinBits); - if (bDropdown) - pListBox->EnableAutoSize(true); - rRet = pListBox; -} - void FontStyleBox::Modify() { CharClass aChrCls( ::comphelper::getProcessComponentContext(), |