24#include <osl/diagnose.h>
33 m_xControl->append_text(charset.getDisplayName());
42 OSL_FAIL(
"CharSetListBox::SelectEntryByIanaName: unknown charset falling back to system language!" );
49 m_xControl->set_active_text((*aFind).getDisplayName());
54 bool bChangedSomething =
false;
55 if (
m_xControl->get_value_changed_from_saved())
58 OSL_ENSURE( aFind !=
m_aCharSets.
end(),
"CharSetListBox::StoreSelectedCharSet: could not translate the selected character set!" );
62 bChangedSomething =
true;
65 return bChangedSomething;
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
std::unique_ptr< weld::ComboBox > m_xControl
OCharsetDisplay m_aCharSets
void SelectEntryByIanaName(std::u16string_view _rIanaName)
CharSetListBox(std::unique_ptr< weld::ComboBox > xControl)
bool StoreSelectedCharSet(SfxItemSet &_rSet, TypedWhichId< SfxStringItem > _nItemId)
const_iterator findIanaName(std::u16string_view _rIanaName) const
const_iterator findEncoding(const rtl_TextEncoding _eEncoding) const
const_iterator findDisplayName(const OUString &_rDisplayName) const
const_iterator end() const
get access to the (last + 1st) element of the charset collection