21#include <com/sun/star/beans/PropertyValue.hpp>
22#include <com/sun/star/embed/XStorage.hpp>
23#include <com/sun/star/uno/Sequence.hxx>
24#include <com/sun/star/uno/Any.hxx>
25#include <com/sun/star/uno/Reference.hxx>
33 beans::PropertyValue > & rMediaDescriptor )
34 : m_aModelProperties(rMediaDescriptor.
getLength())
37 css::uno::Sequence< css::beans::PropertyValue >
38 aRegularProperties(rMediaDescriptor.getLength());
39 auto aRegularPropertiesRange = asNonConstRange(aRegularProperties);
41 sal_Int32 nRegularCount = 0;
42 sal_Int32 nModelCount = 0;
44 auto addRegularProp = [&aRegularPropertiesRange, &nRegularCount](
const beans::PropertyValue& rRegularProp)
46 aRegularPropertiesRange[nRegularCount] = rRegularProp;
49 auto addModelProp = [&aModelPropertiesRange, &nModelCount, &addRegularProp](
const beans::PropertyValue& rModelProp)
51 addRegularProp(rModelProp);
52 aModelPropertiesRange[nModelCount] = rModelProp;
57 for(
const beans::PropertyValue& rProp : rMediaDescriptor)
59 if (rProp.Name ==
"AsTemplate")
63 else if (rProp.Name ==
"Author")
67 else if (rProp.Name ==
"CharacterSet")
71 else if (rProp.Name ==
"Comment")
75 else if (rProp.Name ==
"ComponentData")
79 else if (rProp.Name ==
"FilterData")
83 else if (rProp.Name ==
"FilterName")
88 else if (rProp.Name ==
"FilterOptions")
92 else if (rProp.Name ==
"FrameName")
96 else if (rProp.Name ==
"Hidden")
100 else if (rProp.Name ==
"HierarchicalDocumentName")
105 else if (rProp.Name ==
"OutputStream")
108 addRegularProp(rProp);
110 else if (rProp.Name ==
"InputStream")
113 addRegularProp(rProp);
115 else if (rProp.Name ==
"InteractionHandler")
117 addRegularProp(rProp);
119 else if (rProp.Name ==
"JumpMark")
121 addRegularProp(rProp);
123 else if (rProp.Name ==
"MediaType")
127 else if (rProp.Name ==
"OpenNewView")
129 addRegularProp(rProp);
131 else if (rProp.Name ==
"Overwrite")
135 else if (rProp.Name ==
"Password")
139 else if (rProp.Name ==
"PosSize")
141 addRegularProp(rProp);
143 else if (rProp.Name ==
"PostData")
145 addRegularProp(rProp);
147 else if (rProp.Name ==
"Preview")
151 else if (rProp.Name ==
"ReadOnly")
154 addRegularProp(rProp);
156 else if (rProp.Name ==
"Referer")
160 else if (rProp.Name ==
"SetEmbedded")
162 addRegularProp(rProp);
164 else if (rProp.Name ==
"Silent")
166 addRegularProp(rProp);
168 else if (rProp.Name ==
"StatusIndicator")
170 addRegularProp(rProp);
172 else if (rProp.Name ==
"Storage")
177 else if (rProp.Name ==
"Stream")
182 else if (rProp.Name ==
"Unpacked")
186 else if (rProp.Name ==
"URL")
191 else if (rProp.Name ==
"Version")
195 else if (rProp.Name ==
"ViewData")
199 else if (rProp.Name ==
"ViewId")
205 aRegularProperties.realloc(nRegularCount);
double getLength(const B2DPolygon &rCandidate)