23#include <com/sun/star/uno/Any.hxx>
24#include <com/sun/star/uno/Sequence.hxx>
26#include <osl/diagnose.h>
27#include <rtl/ustrbuf.hxx>
44 mpList = std::make_shared<std::vector<OUString>>(*pList);
57 mpList = std::make_shared<std::vector<OUString>>();
69 assert(SfxPoolItem::operator==(rItem));
97 mpList = std::make_shared<std::vector<OUString>>();
101 for (sal_Int32 nStart = 0; nStart >= 0 && nStart <
aStr.getLength();)
102 mpList->push_back(
aStr.getToken(0,
'\r', nStart));
122 return aStr.makeStringAndClear();
128 mpList = std::make_shared<std::vector<OUString>>(
129 comphelper::sequenceToContainer<std::vector<OUString>>(rList));
137 auto pList = rList.getArray();
145 css::uno::Sequence< OUString > aValue;
146 if ( rVal >>= aValue )
152 OSL_FAIL(
"SfxStringListItem::PutValue - Wrong type!" );
Base class for providers of defaults of SfxPoolItems.
virtual SfxStringListItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
void SetString(const OUString &)
std::shared_ptr< std::vector< OUString > > mpList
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
This virtual method allows to get a textual representation of the value for the SfxPoolItem subclasse...
static SfxPoolItem * CreateDefault()
virtual ~SfxStringListItem() override
void SetStringList(const css::uno::Sequence< OUString > &rList)
virtual bool operator==(const SfxPoolItem &) const override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
void GetStringList(css::uno::Sequence< OUString > &rList) const
std::vector< OUString > & GetList()
#define SAL_NEWLINE_STRING
TOOLS_DLLPUBLIC OString convertLineEnd(const OString &rIn, LineEnd eLineEnd)
const std::u16string_view aStringList[]