22#include <boost/multi_index_container.hpp>
23#include <boost/multi_index/composite_key.hpp>
24#include <boost/multi_index/identity.hpp>
25#include <boost/multi_index/mem_fun.hpp>
26#include <boost/multi_index/ordered_index.hpp>
27#include <boost/multi_index/random_access_index.hpp>
32 : boost::multi_index::composite_key<
34 boost::multi_index::const_mem_fun<SwFormat, const OUString&, &SwFormat::GetName>,
35 boost::multi_index::identity<SwCharFormat*>
40typedef boost::multi_index_container<
42 boost::multi_index::indexed_by<boost::multi_index::random_access<>,
43 boost::multi_index::ordered_unique<char_formats_name_key>>>
52 typedef SwCharFormatsBase::nth_index<0>::type
ByPos;
53 typedef SwCharFormatsBase::nth_index<1>::type
ByName;
70 bool empty()
const {
return m_Array.empty(); }
71 size_t size()
const {
return m_Array.size(); }
77 void erase(const_iterator
const& position);
86 ByName::const_iterator findByName(
const OUString& name)
const;
101 void DeleteAndDestroyAll(
bool keepDefault =
false);
107 void SetFormatNameAndReindex(
SwCharFormat* v,
const OUString& sNewName);
struct _xmlTextWriter * xmlTextWriterPtr
OSQLColumns::const_iterator find(const OSQLColumns::const_iterator &first, const OSQLColumns::const_iterator &last, std::u16string_view _rVal, const ::comphelper::UStringMixEqual &_rCase)