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::const_mem_fun<SwFormat, sal_uInt16, &SwFormat::Which>,
36 boost::multi_index::identity<SwFrameFormat*>
41typedef boost::multi_index_container<
43 boost::multi_index::indexed_by<boost::multi_index::random_access<>,
44 boost::multi_index::ordered_unique<type_name_key>>>
54 typedef SwFrameFormatsBase::nth_index<0>::type
ByPos;
72 bool empty()
const {
return m_Array.empty(); }
73 size_t size()
const {
return m_Array.size(); }
76 std::pair<const_iterator, bool> push_back(
const value_type& x);
79 bool erase(
const value_type& x);
80 void erase(size_type index);
81 void erase(const_iterator
const& position);
86 const_iterator
find(
const value_type& x)
const;
88 ByTypeAndName::const_iterator findByTypeAndName(sal_uInt16 type,
const OUString& name)
const;
90 std::pair<ByTypeAndName::const_iterator, ByTypeAndName::const_iterator>
91 findRangeByName(
const OUString& name)
const;
93 ByTypeAndName::const_iterator
typeAndNameEnd()
const {
return m_TypeAndNameIndex.end(); }
112 void DeleteAndDestroyAll(
bool keepDefault =
false);
114 bool newDefault(
const value_type& x);
115 void newDefault(const_iterator
const& position);
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)