maListOfChildLists.resize( maStyles.size() ); // create list with lists of style sheet children
std::size_t i = 0; for (constauto& a : maStyles)
{
maListOfChildLists[i++] = SdStyleSheetPool::CreateChildList(a.m_xStyleSheet.get());
}
}
if (mbMySheets)
{ // the styles have to be inserted in the pool
// first insert all styles to the pool for (auto& a : maStyles)
{ if (!a.m_bCreatedByCopy) // tdf#119259, existed before this action, so leave it alone continue;
pPool->Insert(a.m_xStyleSheet.get());
}
// now assign the children again
std::vector< SdStyleSheetVector >::iterator childlistiter( maListOfChildLists.begin() ); for (constauto& a : maStyles)
{
OUString aParent(a.m_xStyleSheet->GetName()); for( auto& rxChild : *childlistiter )
{
rxChild->SetParent(aParent);
}
++childlistiter;
}
} else
{ // remove the styles again from the pool for (auto& a : maStyles)
{ if (!a.m_bCreatedByCopy) // tdf#119259, existed before this action, so leave it alone continue;
pPool->Remove(a.m_xStyleSheet.get());
}
}
mbMySheets = !mbMySheets;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.