26#include <sfx2/sfxsids.hrc>
28#include <sfxslots.hxx>
33#include <osl/diagnose.h>
42#include <com/sun/star/document/BrokenPackageRequest.hpp>
43#include <com/sun/star/document/FilterOptionsRequest.hpp>
44#include <com/sun/star/frame/XFrame.hpp>
45#include <com/sun/star/frame/XModel.hpp>
46#include <com/sun/star/io/XInputStream.hpp>
47#include <com/sun/star/io/XOutputStream.hpp>
48#include <com/sun/star/task/XInteractionHandler.hpp>
49#include <com/sun/star/task/XStatusIndicator.hpp>
50#include <com/sun/star/ucb/XContent.hpp>
63 {
reinterpret_cast<SfxType*
>(&aSfxStringItem_Impl),
"SuggestedSaveAsName", SID_DEFAULTFILENAME },
64 {
reinterpret_cast<SfxType*
>(&aSfxStringItem_Impl),
"SuggestedSaveAsDir", SID_DEFAULTFILEPATH },
65 {
reinterpret_cast<SfxType*
>(&aSfxStringItem_Impl),
"VersionAuthor", SID_DOCINFO_AUTHOR },
66 {
reinterpret_cast<SfxType*
>(&aSfxStringItem_Impl),
"VersionComment", SID_DOCINFO_COMMENTS },
67 {
reinterpret_cast<SfxType*
>(&aSfxBoolItem_Impl),
"DontTerminateEdit", FN_PARAM_1 },
68 {
reinterpret_cast<SfxType*
>(&aSfxBoolItem_Impl),
"VersionMajor", SID_DOCINFO_MAJOR },
69 {
reinterpret_cast<SfxType*
>(&aSfxStringItem_Impl),
"FilterOptions", SID_FILE_FILTEROPTIONS },
70 {
reinterpret_cast<SfxType*
>(&aSfxStringItem_Impl),
"FilterName", SID_FILTER_NAME },
71 {
reinterpret_cast<SfxType*
>(&aSfxStringItem_Impl),
"Margin1", SID_RULER_MARGIN1 },
72 {
reinterpret_cast<SfxType*
>(&aSfxStringItem_Impl),
"Margin2", SID_RULER_MARGIN2 },
74 {
reinterpret_cast<SfxType*
>(&aSfxStringItem_Impl),
"URL", SID_FILE_NAME },
75 {
reinterpret_cast<SfxType*
>(&aSfxStringItem_Impl),
"OpenFlags", SID_OPTIONS },
76 {
reinterpret_cast<SfxType*
>(&aSfxBoolItem_Impl),
"Overwrite", SID_OVERWRITE },
77 {
reinterpret_cast<SfxType*
>(&aSfxStringItem_Impl),
"Password", SID_PASSWORD },
78 {
reinterpret_cast<SfxType*
>(&aSfxBoolItem_Impl),
"PasswordInteraction", SID_PASSWORDINTERACTION },
79 {
reinterpret_cast<SfxType*
>(&aSfxStringItem_Impl),
"Referer", SID_REFERER },
80 {
reinterpret_cast<SfxType*
>(&aSfxBoolItem_Impl),
"SaveTo", SID_SAVETO },
81 {
reinterpret_cast<SfxType*
>(&aSfxStringItem_Impl),
"TemplateName", SID_TEMPLATE_NAME },
82 {
reinterpret_cast<SfxType*
>(&aSfxStringItem_Impl),
"TemplateRegion", SID_TEMPLATE_REGIONNAME },
85 {
reinterpret_cast<SfxType*
>(&aSfxBoolItem_Impl),
"Unpacked", SID_UNPACK },
86 {
reinterpret_cast<SfxType*
>(&aSfxInt16Item_Impl),
"Version", SID_VERSION },
87 {
reinterpret_cast<SfxType*
>(&aSfxBoolItem_Impl),
"SaveACopy", SID_SAVEACOPYITEM },
88 {
reinterpret_cast<SfxType*
>(&aSfxBoolItem_Impl),
"NoFileSync", SID_NO_FILE_SYNC },
89 {
reinterpret_cast<SfxType*
>(&aSfxBoolItem_Impl),
"NoThumbnail", SID_NO_THUMBNAIL },
90 {
reinterpret_cast<SfxType*
>(&aSfxBoolItem_Impl),
"NoEmbDataSet", SID_NO_EMBEDDED_DS },
91 {
reinterpret_cast<SfxType*
>(&aSfxBoolItem_Impl),
"IsRedactMode", SID_IS_REDACT_MODE },
92 {
reinterpret_cast<SfxType*
>(&aSfxStringItem_Impl),
"RedactionStyle", SID_REDACTION_STYLE },
93 {
reinterpret_cast<SfxType*
>(&aSfxStringItem_Impl),
"AdditionsTag", FN_PARAM_ADDITIONS_TAG },
161 return ( nSlotId == SID_OPENDOC || nSlotId == SID_EXPORTDOC ||
162 nSlotId == SID_SAVEASDOC || nSlotId == SID_SAVEDOC ||
163 nSlotId == SID_SAVETO || nSlotId == SID_SAVEACOPY ||
164 nSlotId == SID_EXPORTDOCASPDF || nSlotId == SID_DIRECTEXPORTDOCASPDF ||
165 nSlotId == SID_EXPORTDOCASEPUB || nSlotId == SID_DIRECTEXPORTDOCASEPUB ||
166 nSlotId == SID_REDACTDOC || nSlotId == SID_AUTOREDACTDOC ||
167 nSlotId == SID_SAVEACOPYITEM);
178 if ( nSlotId == SID_OPENURL )
179 nSlotId = SID_OPENDOC;
181 const sal_Int32
nCount = rArgs.getLength();
185 const beans::PropertyValue* pPropsVal = rArgs.getConstArray();
190 std::unique_ptr<SfxPoolItem> pItem(pType->
CreateItem());
194 SAL_WARN(
"sfx",
"No creator method for item: " << nSlotId );
200 pItem->SetWhich( nWhich );
201 sal_uInt16 nSubCount = pType->
nAttribs;
203 const beans::PropertyValue& rProp = pPropsVal[0];
204 const OUString& rName = rProp.Name;
209 if( pItem->PutValue( rProp.Value, bConvertTwips ?
CONVERT_TWIPS : 0 ) )
218 else if ( nSubCount == 0 )
221 SAL_WARN(
"sfx.appl",
"Property name does not match: " << rName);
232 if (
nCount != nSubCount )
234 SAL_INFO(
"sfx.appl",
"MacroPlayer: wrong number of parameters for slot: " << nSlotId );
239 for (
const beans::PropertyValue& rPropValue : rArgs )
242 for ( nSub=0; nSub<nSubCount; nSub++ )
246 if ( rPropValue.Name ==
aStr )
251 if ( pItem->PutValue( rPropValue.Value, nSubId ) )
262 SAL_WARN_IF( nSub >= nSubCount,
"sfx.appl",
"Property name does not match: " << rPropValue.Name );
275 sal_Int32 nFoundArgs = 0;
280 for ( sal_uInt16 nArgs=0; nArgs<nMaxArgs; nArgs++ )
283 std::unique_ptr<SfxPoolItem> pItem(rArg.
CreateItem());
286 SAL_WARN(
"sfx",
"No creator method for argument: " << rArg.
pName );
292 pItem->SetWhich( nWhich );
294 sal_uInt16 nSubCount = pType->
nAttribs;
295 if ( nSubCount == 0 )
298 auto pProp = std::find_if(rArgs.begin(), rArgs.end(),
299 [&rArg](
const beans::PropertyValue& rProp) { return rProp.Name.equalsAscii(rArg.pName); });
300 if (pProp != rArgs.end())
305 if( pItem->PutValue( pProp->Value, 0 ) )
310 SAL_WARN(
"sfx",
"Property not convertible: " << rArg.
pName );
317 bool bAsWholeItem =
false;
318 for (
const beans::PropertyValue& rProp : rArgs )
320 const OUString& rName = rProp.Name;
321 if ( rName == OUString(rArg.
pName, strlen(rArg.
pName), RTL_TEXTENCODING_UTF8) )
327 if( pItem->PutValue( rProp.Value, 0 ) )
332 SAL_WARN(
"sfx",
"Property not convertible: " << rArg.
pName );
343 for (
const beans::PropertyValue& rProp : rArgs )
345 for ( sal_uInt16 nSub=0; nSub<nSubCount; nSub++ )
349 if ( rProp.Name.equalsAsciiL(
aStr.getStr(),
aStr.getLength()) )
359 if (!pItem->PutValue( rProp.Value, nSubId ) )
363 SAL_WARN(
"sfx",
"Property not convertible: " << rArg.
pName );
384 if ( nSlotId == SID_NEWWINDOW )
386 for (
const beans::PropertyValue& rProp : rArgs )
388 const OUString& rName = rProp.Name;
391 Reference< XFrame >
xFrame;
392 OSL_VERIFY( rProp.Value >>=
xFrame );
399 if (rProp.Value >>= bVal)
404 else if ( bIsMediaDescriptor )
406 for (
const beans::PropertyValue& rProp : rArgs )
411 const OUString&
aName = rProp.Name;
424 Reference<task::XStatusIndicator> xVal;
425 bool bOK = (rProp.Value >>= xVal);
426 DBG_ASSERT( bOK,
"invalid type for StatusIndicator" );
427 if (bOK && xVal.is())
432 Reference<task::XInteractionHandler> xVal;
433 bool bOK = (rProp.Value >>= xVal);
434 DBG_ASSERT( bOK,
"invalid type for InteractionHandler" );
435 if (bOK && xVal.is())
444 Reference< XInputStream > xVal;
445 bool bOK = ((rProp.Value >>= xVal) && xVal.is());
446 DBG_ASSERT( bOK,
"invalid type for InputStream" );
452 Reference< XInputStream > xVal;
453 bool bOK = ((rProp.Value >>= xVal) && xVal.is());
460 Reference< XContent > xVal;
461 bool bOK = ((rProp.Value >>= xVal) && xVal.is());
462 DBG_ASSERT( bOK,
"invalid type for UCBContent" );
468 Reference< XOutputStream > xVal;
469 bool bOK = ((rProp.Value >>= xVal) && xVal.is());
470 DBG_ASSERT( bOK,
"invalid type for OutputStream" );
476 Reference< XInputStream > xVal;
477 bool bOK = (rProp.Value >>= xVal);
478 DBG_ASSERT( bOK,
"invalid type for PostData" );
484 Reference< XFrame >
xFrame;
485 bool bOK = (rProp.Value >>=
xFrame);
493 bool bOK = (rProp.Value >>= bVal);
494 DBG_ASSERT( bOK,
"invalid type for AsTemplate" );
501 bool bOK = (rProp.Value >>= bVal);
502 DBG_ASSERT( bOK,
"invalid type for OpenNewView" );
509 bool bOK = (rProp.Value >>= bVal);
510 DBG_ASSERT( bOK,
"invalid type for FailOnWarning" );
517 bool bOK = ((rProp.Value >>= nVal) && (nVal != -1));
525 bool bOK = ((rProp.Value >>= nVal) && (nVal != -1));
526 DBG_ASSERT( bOK,
"invalid type for PluginMode" );
533 bool bOK = (rProp.Value >>= bVal);
534 DBG_ASSERT( bOK,
"invalid type for ReadOnly" );
541 bool bOK = (rProp.Value >>= bVal);
542 DBG_ASSERT( bOK,
"invalid type for DDEReconnect" );
549 bool bOK = (rProp.Value >>= bVal);
550 DBG_ASSERT( bOK,
"invalid type for StartPresentation" );
557 bool bOK = (rProp.Value >>= bVal);
558 DBG_ASSERT( bOK,
"invalid type for SelectionOnly" );
565 bool bOK = (rProp.Value >>= bVal);
573 bool bOK = (rProp.Value >>= bVal);
574 DBG_ASSERT( bOK,
"invalid type for Minimized" );
581 bool bOK = (rProp.Value >>= bVal);
589 bool bOK = (rProp.Value >>= bVal);
590 DBG_ASSERT( bOK,
"invalid type for Preview" );
597 bool bOK = (rProp.Value >>= bVal);
598 DBG_ASSERT( bOK,
"invalid type for ViewOnly" );
605 bool bOK = (rProp.Value >>= bVal);
606 DBG_ASSERT( bOK,
"invalid type for ViewOnly" );
613 bool bOK = (rProp.Value >>= bVal);
614 DBG_ASSERT( bOK,
"invalid type for ViewOnly" );
621 bool bOK = ((rProp.Value >>= sVal) && !sVal.isEmpty());
622 DBG_ASSERT( bOK,
"invalid type or value for StandardDir" );
628 uno::Sequence<OUString> xVal;
629 bool bOK = (rProp.Value >>= xVal);
630 DBG_ASSERT( bOK,
"invalid type or value for DenyList" );
638 else if (
aName ==
"FileName" )
641 bool bOK = ((rProp.Value >>= sVal) && !sVal.isEmpty());
642 DBG_ASSERT( bOK,
"invalid type or value for FileName" );
649 bool bOK = (rProp.Value >>= sVal);
650 DBG_ASSERT( bOK,
"invalid type or value for SalvagedFile" );
657 bool bOK = (rProp.Value >>= sVal);
658 DBG_ASSERT( bOK,
"invalid type or value for FolderName" );
665 bool bOK = (rProp.Value >>= sVal);
666 DBG_ASSERT( bOK,
"invalid type for FrameName" );
667 if (bOK && !sVal.isEmpty())
673 bool bOK = ((rProp.Value >>= sVal) && !sVal.isEmpty());
674 DBG_ASSERT( bOK,
"invalid type or value for MediaType" );
681 bool bOK = ((rProp.Value >>= sVal) && !sVal.isEmpty());
682 DBG_ASSERT( bOK,
"invalid type or value for TemplateName" );
689 bool bOK = ((rProp.Value >>= sVal) && !sVal.isEmpty());
690 DBG_ASSERT( bOK,
"invalid type or value for TemplateRegionName" );
697 bool bOK = ((rProp.Value >>= sVal) && !sVal.isEmpty());
698 DBG_ASSERT( bOK,
"invalid type or value for JumpMark" );
705 bool bOK = ((rProp.Value >>= sVal) && !sVal.isEmpty());
706 DBG_ASSERT( bOK,
"invalid type or value for CharacterSet" );
710 else if (
aName ==
"FilterFlags" )
713 bool bOK = ((rProp.Value >>= sVal) && !sVal.isEmpty());
714 DBG_ASSERT( bOK,
"invalid type or value for FilterFlags" );
721 bool bOK = ((rProp.Value >>= sVal) && !sVal.isEmpty());
722 DBG_ASSERT( bOK,
"invalid type or value for FilterFlags" );
729 bool bOK = ((rProp.Value >>= nVal) && (nVal != -1));
730 DBG_ASSERT( bOK,
"invalid type for MacroExecMode" );
737 bool bOK = ((rProp.Value >>= nVal) && (nVal != -1));
738 DBG_ASSERT( bOK,
"invalid type for UpdateDocMode" );
745 bool bOK = (rProp.Value >>= bVal);
746 DBG_ASSERT( bOK,
"invalid type for RepairPackage" );
753 bool bOK = ((rProp.Value >>= sVal) && !sVal.isEmpty());
754 DBG_ASSERT( bOK,
"invalid type or value for DocumentTitle" );
762 bool bOK = (rProp.Value >>= sVal);
763 DBG_ASSERT( bOK,
"invalid type or value for DocumentBaseURL" );
770 bool bOK = ((rProp.Value >>= sVal) && !sVal.isEmpty());
771 DBG_ASSERT( bOK,
"invalid type or value for HierarchicalDocumentName" );
778 bool bOK = (rProp.Value >>= bVal);
779 DBG_ASSERT( bOK,
"invalid type for CopyStreamIfPossible" );
786 bool bOK = (rProp.Value >>= bVal);
787 DBG_ASSERT( bOK,
"invalid type for NoAutoSave" );
802 bool bOK = ((rProp.Value >>= sVal) && !sVal.isEmpty());
803 DBG_ASSERT( bOK,
"invalid type or value for SuggestedSaveAsDir" );
810 bool bOK = ((rProp.Value >>= sVal) && !sVal.isEmpty());
811 DBG_ASSERT( bOK,
"invalid type or value for SuggestedSaveAsName" );
818 bool bOK = ((rProp.Value >>= aVal) && !aVal.isEmpty());
825 bool bOK = ((rProp.Value >>= aVal) && !aVal.isEmpty());
832 bool bOK = (rProp.Value >>= bVal);
833 DBG_ASSERT( bOK,
"invalid type for LockContentExtraction" );
840 bool bOK = (rProp.Value >>= bVal);
841 DBG_ASSERT( bOK,
"invalid type for LockExport" );
848 bool bOK = (rProp.Value >>= bVal);
849 DBG_ASSERT( bOK,
"invalid type for LockPrint" );
856 bool bOK = (rProp.Value >>= bVal);
857 DBG_ASSERT( bOK,
"invalid type for LockSave" );
864 bool bOK = (rProp.Value >>= bVal);
865 DBG_ASSERT( bOK,
"invalid type for LockEditDoc" );
872 bool bOK = (rProp.Value >>= bVal);
873 DBG_ASSERT(bOK,
"invalid type for Replaceable");
887 if (
"OptionsTreeDialog" == pSlot->
pUnoName )
889 auto pProp = std::find_if(rArgs.begin(), rArgs.end(),
890 [](
const PropertyValue& rProp) { return rProp.Name ==
"OptionsPageURL"; });
891 if (pProp != rArgs.end())
894 if ( pProp->Value >>= sURL )
900 if ( nFoundArgs ==
nCount )
903 SAL_INFO(
"sfx.appl",
"MacroPlayer: Some properties didn't match to any formal argument for slot: "<< pSlot->
pUnoName );
916 if ( nSlotId == SID_OPENURL )
917 nSlotId = SID_OPENDOC;
918 if ( nSlotId == SID_SAVEASREMOTE )
919 nSlotId = SID_SAVEASDOC;
936 sal_uInt16 nSubCount = pType->
nAttribs;
948 SAL_WARN(
"sfx",
"Processing property slot without argument: " << nSlotId );
960 for ( sal_uInt16 nArg=0; nArg<nFormalArgs; ++nArg )
983 if ( bIsMediaDescriptor )
985 sal_Int32 nAdditional=0;
986 if (
rSet.
GetItemState( SID_PROGRESS_STATUSBAR_CONTROL ) == SfxItemState::SET )
1076 if (
rSet.
GetItemState( SID_COPY_STREAM_IF_POSSIBLE ) == SfxItemState::SET )
1094 if (
rSet.
GetItemState( SID_LOCK_CONTENT_EXTRACTION ) == SfxItemState::SET )
1108 nProps += nAdditional;
1110 nItems += nAdditional;
1123 sal_uInt16 nStartWhich = rPair.first;
1124 sal_uInt16 nEndWhich = rPair.second;
1125 for(sal_uInt16
nId = nStartWhich;
nId <= nEndWhich; ++
nId)
1137 for ( nArg=0; nArg<nFormalArgs; ++nArg )
1141 if (
nId == nWhich )
1145 if ( nArg<nFormalArgs )
1148 if ( bIsMediaDescriptor )
1150 if (
nId == SID_DOCFRAME )
1152 if (
nId == SID_PROGRESS_STATUSBAR_CONTROL )
1154 if (
nId == SID_INTERACTIONHANDLER )
1156 if (
nId == SID_VIEW_DATA )
1158 if (
nId == SID_FILTER_DATA )
1160 if (
nId == SID_DOCUMENT )
1162 if (
nId == SID_CONTENT )
1164 if (
nId == SID_INPUTSTREAM )
1166 if (
nId == SID_STREAM )
1168 if (
nId == SID_OUTPUTSTREAM )
1170 if (
nId == SID_POSTDATA )
1172 if (
nId == SID_FILLFRAME )
1174 if (
nId == SID_TEMPLATE )
1176 if (
nId == SID_OPEN_NEW_VIEW )
1178 if (
nId == SID_VIEW_ID )
1180 if (
nId == SID_PLUGIN_MODE )
1182 if (
nId == SID_DOC_READONLY )
1184 if (
nId == SID_DOC_STARTPRESENTATION )
1186 if (
nId == SID_SELECTION )
1188 if (
nId == SID_HIDDEN )
1190 if (
nId == SID_MINIMIZED )
1192 if (
nId == SID_SILENT )
1194 if (
nId == SID_PREVIEW )
1196 if (
nId == SID_VIEWONLY )
1198 if (
nId == SID_EDITDOC )
1200 if (
nId == SID_TARGETNAME )
1202 if (
nId == SID_DOC_SALVAGE )
1204 if (
nId == SID_PATH )
1206 if (
nId == SID_FILE_DIALOG )
1208 if (
nId == SID_STANDARD_DIR )
1210 if (
nId == SID_DENY_LIST )
1212 if (
nId == SID_CONTENTTYPE )
1214 if (
nId == SID_TEMPLATE_NAME )
1216 if (
nId == SID_TEMPLATE_REGIONNAME )
1218 if (
nId == SID_JUMPMARK )
1220 if (
nId == SID_CHARSET )
1222 if (
nId == SID_MACROEXECMODE )
1224 if (
nId == SID_UPDATEDOCMODE )
1226 if (
nId == SID_REPAIRPACKAGE )
1228 if (
nId == SID_DOCINFO_TITLE )
1230 if (
nId == SID_COMPONENTDATA )
1232 if (
nId == SID_COMPONENTCONTEXT )
1234 if (
nId == SID_DOC_BASEURL )
1236 if (
nId == SID_DOC_HIERARCHICALNAME )
1238 if (
nId == SID_COPY_STREAM_IF_POSSIBLE )
1240 if (
nId == SID_NOAUTOSAVE )
1242 if (
nId == SID_ENCRYPTIONDATA )
1244 if (
nId == SID_DOC_SERVICE )
1246 if (
nId == SID_FILTER_PROVIDER)
1248 if (
nId == SID_CONVERT_IMAGES )
1252 if (
nId == SID_SAVETO )
1254 if (
nId == SID_SAVEACOPYITEM )
1256 if (
nId == SID_MODIFYPASSWORDINFO )
1258 if (
nId == SID_SUGGESTEDSAVEASDIR )
1260 if (
nId == SID_SUGGESTEDSAVEASNAME )
1262 if (
nId == SID_LOCK_CONTENT_EXTRACTION )
1264 if (
nId == SID_LOCK_EXPORT )
1266 if (
nId == SID_LOCK_PRINT )
1268 if (
nId == SID_LOCK_SAVE )
1270 if (
nId == SID_LOCK_EDITDOC )
1272 if (
nId == SID_REPLACEABLE)
1276 OString aDbg =
"Unknown item detected: " + OString::number(
static_cast<sal_Int32
>(
nId));
1287 uno::Sequence<beans::PropertyValue> aSequ(nProps);
1288 beans::PropertyValue *pValue = aSequ.getArray();
1290 sal_Int32 nActProp=0;
1299 sal_uInt16 nSubCount = pType->
nAttribs;
1302 pValue[nActProp].Name = pSlot->
pUnoName;
1303 if ( !pItem->
QueryValue( pValue[nActProp].Value ) )
1305 SAL_WARN(
"sfx",
"Item not convertible: " << nSlotId );
1311 for ( sal_uInt16
n=1;
n<=nSubCount; ++
n )
1314 if ( bConvertTwips )
1318 pValue[nActProp].Name = pSlot->
pUnoName +
1321 if ( !pItem->
QueryValue( pValue[nActProp++].Value, nSubId ) )
1324 <<
" not convertible in slot: " << nSlotId );
1336 for ( sal_uInt16 nArg=0; nArg<nFormalArgs; ++nArg )
1347 pValue[nActProp].Name = OUString::createFromAscii( rArg.
pName ) ;
1348 if ( !pItem->
QueryValue( pValue[nActProp++].Value ) )
1356 for ( sal_uInt16
n = 1;
n <= nSubCount; ++
n )
1359 if ( bConvertTwips )
1363 pValue[nActProp].Name = OUString::createFromAscii( rArg.
pName ) +
1366 if ( !pItem->
QueryValue( pValue[nActProp++].Value, nSubId ) )
1370 <<
" not convertible in slot: "
1378 if ( nSlotId == SID_OPENDOC || nSlotId == SID_EXPORTDOC || nSlotId == SID_SAVEASDOC || nSlotId == SID_SAVEDOC ||
1379 nSlotId == SID_SAVETO || nSlotId == SID_EXPORTDOCASPDF || nSlotId == SID_DIRECTEXPORTDOCASPDF ||
1380 nSlotId == SID_EXPORTDOCASEPUB || nSlotId == SID_DIRECTEXPORTDOCASEPUB ||
1381 nSlotId == SID_REDACTDOC || nSlotId == SID_AUTOREDACTDOC || nSlotId == SID_SAVEACOPY )
1386 pValue[nActProp++].Value = pItem->GetValue();
1391 pValue[nActProp++].Value = pItem->GetValue();
1396 pValue[nActProp++].Value = pItem->GetValue();
1401 pValue[nActProp++].Value = pItem->GetValue();
1406 pValue[nActProp++].Value = pItem->GetValue();
1411 pValue[nActProp++].Value = pItem->GetValue();
1415 pValue[nActProp].Name =
sModel;
1416 pValue[nActProp++].Value = pItem->GetValue();
1421 pValue[nActProp++].Value = pItem->GetValue();
1426 pValue[nActProp++].Value = pItem->GetValue();
1430 pValue[nActProp].Name =
sStream;
1431 pValue[nActProp++].Value = pItem->GetValue();
1436 pValue[nActProp++].Value = pItem->GetValue();
1441 pValue[nActProp++].Value = pItem->GetValue();
1445 pValue[nActProp].Name =
sFrame;
1446 if (
auto pUsrAnyItem =
dynamic_cast< const SfxUnoAnyItem *
>( pItem ) )
1448 OSL_FAIL(
"TransformItems: transporting an XFrame via an SfxUnoAnyItem is not deprecated!" );
1449 pValue[nActProp++].Value = pUsrAnyItem->GetValue();
1451 else if (
auto pUnoFrameItem =
dynamic_cast< const SfxUnoFrameItem *
>( pItem ) )
1452 pValue[nActProp++].Value <<= pUnoFrameItem->GetFrame();
1454 OSL_FAIL(
"TransformItems: invalid item type for SID_FILLFRAME!" );
1459 pValue[nActProp++].Value <<= pItem->GetValue();
1464 pValue[nActProp++].Value <<= pItem->GetValue();
1469 pValue[nActProp++].Value <<= pItem->GetValue();
1473 pValue[nActProp].Name =
sViewId;
1474 pValue[nActProp++].Value <<=
static_cast<sal_Int16
>(pItem->GetValue());
1479 pValue[nActProp++].Value <<=
static_cast<sal_Int16
>(pItem->GetValue());
1484 pValue[nActProp++].Value <<= pItem->GetValue();
1489 pValue[nActProp++].Value <<= pItem->GetValue();
1494 pValue[nActProp++].Value <<= pItem->GetValue();
1499 pValue[nActProp++].Value <<= pItem->GetValue();
1503 pValue[nActProp].Name =
sHidden;
1504 pValue[nActProp++].Value <<= pItem->GetValue();
1509 pValue[nActProp++].Value <<= pItem->GetValue();
1513 pValue[nActProp].Name =
sSilent;
1514 pValue[nActProp++].Value <<= pItem->GetValue();
1519 pValue[nActProp++].Value <<= pItem->GetValue();
1524 pValue[nActProp++].Value <<= pItem->GetValue();
1529 pValue[nActProp++].Value <<= !pItem->GetValue();
1534 pValue[nActProp++].Value <<= pItem->GetValue();
1539 pValue[nActProp++].Value <<= pItem->GetValue();
1545 css::uno::Sequence< OUString > aList;
1546 pItem->GetStringList( aList );
1547 pValue[nActProp++].Value <<= aList ;
1552 pValue[nActProp++].Value <<= pItem->GetValue();
1557 pValue[nActProp++].Value <<= pItem->GetValue();
1562 pValue[nActProp++].Value <<= pItem->GetValue();
1567 pValue[nActProp++].Value <<= pItem->GetValue();
1572 pValue[nActProp++].Value <<= pItem->GetValue();
1577 pValue[nActProp++].Value <<= pItem->GetValue();
1582 pValue[nActProp++].Value <<= pItem->GetValue();
1588 pValue[nActProp++].Value <<= pItem->GetValue();
1593 pValue[nActProp++].Value <<=
static_cast<sal_Int16
>(pItem->GetValue());
1598 pValue[nActProp++].Value <<=
static_cast<sal_Int16
>(pItem->GetValue());
1603 pValue[nActProp++].Value <<= pItem->GetValue() ;
1608 pValue[nActProp++].Value <<= pItem->GetValue();
1613 pValue[nActProp++].Value <<= pItem->GetValue();
1618 pValue[nActProp++].Value <<= pItem->GetValue();
1623 pValue[nActProp++].Value <<= pItem->GetValue();
1628 pValue[nActProp++].Value <<= pItem->GetValue() ;
1633 pValue[nActProp++].Value = pItem->GetValue();
1638 pValue[nActProp++].Value = pItem->GetValue();
1643 pValue[nActProp++].Value <<= pItem->GetValue();
1648 pValue[nActProp++].Value <<= pItem->GetValue();
1653 pValue[nActProp++].Value <<= pItem->GetValue();
1658 pValue[nActProp++].Value <<= pItem->GetValue();
1663 pValue[nActProp++].Value <<= pItem->GetValue();
1668 pValue[nActProp++].Value <<= pItem->GetValue() ;
1673 pValue[nActProp++].Value <<= pItem->GetValue() ;
1678 pValue[nActProp++].Value <<= pItem->GetValue() ;
1683 pValue[nActProp++].Value <<= pItem->GetValue() ;
1688 pValue[nActProp++].Value <<= pItem->GetValue();
1693 pValue[nActProp++].Value <<= pItem->GetValue();
1701 const uno::Sequence<beans::PropertyValue>& rProps )
1706uno::Sequence< beans::PropertyValue > SAL_CALL
1714 const uno::Sequence< beans::PropertyValue >& rProperties )
1716 uno::Reference< uno::XInterface > temp2;
1717 document::FilterOptionsRequest aOptionsRequest( OUString(),
1733uno::Sequence< uno::Reference< task::XInteractionContinuation > >
1750 virtual uno::Sequence< uno::Reference< task::XInteractionContinuation > > SAL_CALL
getContinuations()
override;
1755 uno::Reference< uno::XInterface > temp2;
1756 document::BrokenPackageRequest aBrokenPackageRequest( OUString(), temp2,
aName );
1772uno::Sequence< uno::Reference< task::XInteractionContinuation > >
1789 return mxImpl->isApproved();
1806 virtual uno::Sequence< uno::Reference< task::XInteractionContinuation > > SAL_CALL
getContinuations()
override;
1811 uno::Reference< uno::XInterface > temp2;
1812 document::BrokenPackageRequest aBrokenPackageRequest( OUString(), temp2,
aName );
1822uno::Sequence< uno::Reference< task::XInteractionContinuation > >
constexpr OUStringLiteral sDenyList
constexpr OUStringLiteral sPluginMode
constexpr OUStringLiteral sLockContentExtraction
constexpr OUStringLiteral sUCBContent
constexpr OUStringLiteral sModifyPasswordInfo
constexpr OUStringLiteral sInputStream
constexpr OUStringLiteral sViewOnly
constexpr OUStringLiteral sOpenNewView
constexpr OUStringLiteral sViewData
constexpr OUStringLiteral sEncryptionData
constexpr OUStringLiteral sViewId
constexpr OUStringLiteral sImageFilter
constexpr OUStringLiteral sStartPresentation
constexpr OUStringLiteral sRepairPackage
static bool isMediaDescriptor(sal_uInt16 nSlotId)
constexpr OUStringLiteral sTemplateRegionName
constexpr OUStringLiteral sDocumentTitle
constexpr OUStringLiteral sPostData
constexpr OUStringLiteral sTemplateName
constexpr OUStringLiteral sUpdateDocMode
constexpr OUStringLiteral sLockPrint
void TransformItems(sal_uInt16 nSlotId, const SfxItemSet &rSet, uno::Sequence< beans::PropertyValue > &rArgs, const SfxSlot *pSlot)
constexpr OUStringLiteral sModel
constexpr OUStringLiteral sSalvagedFile
constexpr OUStringLiteral sStatusInd
constexpr OUStringLiteral sStream
constexpr OUStringLiteral sAsTemplate
constexpr OUStringLiteral sMinimized
constexpr OUStringLiteral sDdeReconnect
constexpr OUStringLiteral sPreview
constexpr OUStringLiteral sMediaType
constexpr OUStringLiteral sSilent
constexpr OUStringLiteral sLockSave
constexpr OUStringLiteral sFilterProvider
constexpr OUStringLiteral sDocumentBaseURL
constexpr OUStringLiteral sFrame
constexpr OUStringLiteral sUseSystemDialog
constexpr OUStringLiteral sFolderName
constexpr OUStringLiteral sFilterData
constexpr OUStringLiteral sCopyStreamIfPossible
void TransformParameters(sal_uInt16 nSlotId, const uno::Sequence< beans::PropertyValue > &rArgs, SfxAllItemSet &rSet, const SfxSlot *pSlot)
constexpr OUStringLiteral sLockEditDoc
constexpr OUStringLiteral sComponentData
constexpr OUStringLiteral sSelectionOnly
constexpr OUStringLiteral sReplaceable
SfxFormalArgument const aFormalArgs[]
constexpr OUStringLiteral sLockExport
constexpr OUStringLiteral sSuggestedSaveAsName
constexpr OUStringLiteral sInteractionHdl
constexpr OUStringLiteral sCharacterSet
constexpr OUStringLiteral sDocumentService
constexpr OUStringLiteral sFailOnWarning
constexpr OUStringLiteral sComponentContext
constexpr OUStringLiteral sSuggestedSaveAsDir
constexpr OUStringLiteral sDontEdit
constexpr OUStringLiteral sOutputStream
constexpr OUStringLiteral sReadOnly
constexpr OUStringLiteral sStandardDir
constexpr OUStringLiteral sFrameName
constexpr OUStringLiteral sJumpMark
constexpr OUStringLiteral sHidden
sal_uInt16 const nMediaArgsCount
constexpr OUStringLiteral sMacroExecMode
constexpr OUStringLiteral sHierarchicalDocumentName
constexpr OUStringLiteral sNoAutoSave
virtual void SAL_CALL setFilterOptions(const css::uno::Sequence< css::beans::PropertyValue > &rProp) override
css::uno::Sequence< css::beans::PropertyValue > rProperties
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getFilterOptions() override
virtual uno::Sequence< uno::Reference< task::XInteractionContinuation > > SAL_CALL getContinuations() override
NotifyBrokenPackage_Impl(const OUString &rName)
rtl::Reference< comphelper::OInteractionAbort > m_xAbort
virtual uno::Any SAL_CALL getRequest() override
NotifyBrokenPackage(const OUString &aName)
css::uno::Reference< css::task::XInteractionRequest > GetRequest() const
rtl::Reference< NotifyBrokenPackage_Impl > mxImpl
rtl::Reference< comphelper::OInteractionAbort > m_xAbort
RequestFilterOptions(css::uno::Reference< css::frame::XModel > const &rModel, const css::uno::Sequence< css::beans::PropertyValue > &rProperties)
virtual css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > SAL_CALL getContinuations() override
rtl::Reference< FilterOptionsContinuation > m_xOptions
virtual css::uno::Any SAL_CALL getRequest() override
virtual uno::Any SAL_CALL getRequest() override
virtual uno::Sequence< uno::Reference< task::XInteractionContinuation > > SAL_CALL getContinuations() override
RequestPackageReparation_Impl(const OUString &aName)
rtl::Reference< comphelper::OInteractionDisapprove > m_xDisapprove
rtl::Reference< comphelper::OInteractionApprove > m_xApprove
rtl::Reference< RequestPackageReparation_Impl > mxImpl
RequestPackageReparation(const OUString &aName)
css::uno::Reference< css::task::XInteractionRequest > GetRequest() const
~RequestPackageReparation()
sal_uInt16 GetWhich(sal_uInt16 nSlot, bool bDeep=true) const
virtual MapUnit GetMetric(sal_uInt16 nWhich) const
const WhichRangesContainer & GetRanges() const
SfxItemPool * GetPool() const
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
bool HasItem(sal_uInt16 nWhich, const SfxPoolItem **ppItem=nullptr) const
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
const SfxPoolItem * GetItem(sal_uInt16 nWhich, bool bSearchInParent=true) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const
sal_uInt16 GetSlotId() const
const SfxType * GetType() const
const SfxFormalArgument & GetFormalArgument(sal_uInt16 nNo) const
sal_uInt16 GetFormalArgumentCount() const
bool IsMode(SfxSlotMode nMode) const
void SetStringList(const css::uno::Sequence< OUString > &rList)
#define DBG_ASSERT(sCon, aError)
#define SAL_WARN_IF(condition, area, stream)
#define SAL_WARN(area, stream)
#define SAL_INFO(area, stream)
#define SAL_N_ELEMENTS(arr)
OInteraction< css::task::XInteractionDisapprove > OInteractionDisapprove
OInteraction< css::task::XInteractionApprove > OInteractionApprove
OInteraction< css::task::XInteractionAbort > OInteractionAbort
std::unique_ptr< SfxPoolItem > CreateItem() const
Reference< XFrame > xFrame