23#include <com/sun/star/uno/Reference.hxx>
51 const css::uno::Reference<css::drawing::framework::XConfiguration>& rxConfiguration1,
52 const css::uno::Reference<css::drawing::framework::XConfiguration>& rxConfiguration2);
63 typedef ::std::vector<css::uno::Reference<css::drawing::framework::XResourceId>>
86#if DEBUG_SD_CONFIGURATION_TRACE
97 static void TraceResourceIdVector(
const char* pMessage,
const ResourceIdVector& rResources);
126 const css::uno::Sequence<css::uno::Reference<css::drawing::framework::XResourceId>>& rS1,
127 const css::uno::Sequence<css::uno::Reference<css::drawing::framework::XResourceId>>& rS2);
140 const css::uno::Sequence<css::uno::Reference<css::drawing::framework::XResourceId>>& rS1,
141 const css::uno::Sequence<css::uno::Reference<css::drawing::framework::XResourceId>>& rS2,
159 const css::uno::Reference<css::drawing::framework::XConfiguration>& rxConfiguration,
A ConfigurationClassifier object compares two configurations of resources and gives access to the dif...
css::uno::Reference< css::drawing::framework::XConfiguration > mxConfiguration1
const ResourceIdVector & GetC2minusC1() const
Return the resources that belong to the configuration given as rxConfiguration2 to the constructor bu...
ConfigurationClassifier(const css::uno::Reference< css::drawing::framework::XConfiguration > &rxConfiguration1, const css::uno::Reference< css::drawing::framework::XConfiguration > &rxConfiguration2)
Create a new ConfigurationClassifier object that will compare the two given configurations.
static void ClassifyResources(const css::uno::Sequence< css::uno::Reference< css::drawing::framework::XResourceId > > &rS1, const css::uno::Sequence< css::uno::Reference< css::drawing::framework::XResourceId > > &rS2, ResourceIdVector &rS1minusS2, ResourceIdVector &rS2minusS1, ResourceIdVector &rS1andS2)
Compare the given sequences of resource ids and put their elements in one of three vectors depending ...
const ResourceIdVector & GetC1minusC2() const
Return the resources that belong to the configuration given as rxConfiguration1 to the constructor bu...
ResourceIdVector maC1minusC2
After the call to Classify() this vector holds all elements from mxConfiguration1 that are not in mxC...
bool Partition()
Calculate three lists of resource ids.
void PartitionResources(const css::uno::Sequence< css::uno::Reference< css::drawing::framework::XResourceId > > &rS1, const css::uno::Sequence< css::uno::Reference< css::drawing::framework::XResourceId > > &rS2)
Put all the elements in the two given sequences of resource ids and copy them into one of the resourc...
::std::vector< css::uno::Reference< css::drawing::framework::XResourceId > > ResourceIdVector
static void CopyResources(const ResourceIdVector &rSource, const css::uno::Reference< css::drawing::framework::XConfiguration > &rxConfiguration, ResourceIdVector &rTarget)
Copy the resources given in rSource to the list of resources specified by rTarget.
ResourceIdVector maC2minusC1
After the call to Classify() this vector holds all elements from mxConfiguration2 that are not in mxC...
css::uno::Reference< css::drawing::framework::XConfiguration > mxConfiguration2