Kaydet (Commit) 08f4ecd5 authored tarafından Noel Grandin's avatar Noel Grandin

unused SID command in sfx2

Change-Id: Ib11b2fb8d922cf522cc28d86082036b75002ba87
Reviewed-on: https://gerrit.libreoffice.org/46908Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 46db544b
......@@ -103,9 +103,7 @@
#define SID_SAVEACOPY (SID_SFX_START + 999)
#define SID_SAVEACOPYITEM (SID_SFX_START + 998)
#define SID_CONVERT_IMAGES (SID_SFX_START + 997)
#define SID_CLOSING (SID_SFX_START +1539)
#define SID_CLOSEDOC (SID_SFX_START + 503)
#define SID_CLOSEDOCS (SID_SFX_START + 595)
#define SID_CLOSEDOC_SAVE (SID_SFX_START + 1)
#define SID_CLOSEDOC_FILENAME (SID_SFX_START + 2)
#define SID_PRINTDOC (SID_SFX_START + 504)
......@@ -144,7 +142,6 @@
// browse-ids
#define SID_BROWSE_FORWARD (SID_SFX_START + 1300)
#define SID_BROWSE_BACKWARD (SID_SFX_START + 1301)
#define SID_CREATELINK (SID_SFX_START + 1309)
#define SID_EDITDOC (SID_SFX_START + 1312)
#define SID_BROWSER_MODE (SID_SFX_START + 1313)
#define SID_READONLYDOC (SID_SFX_START + 1314)
......@@ -175,7 +172,6 @@
#define SID_DOCUMENT_COMPARE (SID_SFX_START + 1586)
#define SID_DOCUMENT_MERGE (SID_SFX_START + 1587)
#define SID_OFFICE_CHECK_PLZ (SID_SFX_START + 1610)
#define SID_CURRENT_URL (SID_SFX_START + 1613)
#define SID_CHARSET (SID_SFX_START + 1633)
......@@ -183,7 +179,6 @@
// FREE (was: SID_CRASH)
#define SID_FAIL_ON_WARNING (SID_SFX_START + 1646)
#define SID_INPUTSTREAM (SID_SFX_START + 1648)
#define SID_LOGOUT (SID_SFX_START + 1652)
#define SID_JUMPMARK (SID_SFX_START + 1654)
#define SID_BROWSE (SID_SFX_START + 1658)
// FREE (was: SID_BACKTOWEBTOP)
......@@ -221,7 +216,6 @@
#define SID_MACRO_SIGNATURE (SID_SFX_START + 1704)
#define SID_ATTR_WARNALIENFORMAT (SID_SFX_START + 1705)
#define SID_COPY_STREAM_IF_POSSIBLE (SID_SFX_START + 1706)
#define SID_MAIL_SENDDOCASFORMAT (SID_SFX_START + 1707)
#define SID_MAIL_SENDDOCASMS (SID_SFX_START + 1708)
#define SID_MAIL_SENDDOCASOOO (SID_SFX_START + 1709)
#define SID_NO_ACCEPT_DIALOG (SID_SFX_START + 1710)
......@@ -259,9 +253,6 @@
#define SID_FOCUSURLBOX (SID_SFX_START + 1406)
#define SID_ACTIVATE (SID_SFX_START + 525)
#define SID_PRINTOUT (SID_SFX_START + 526)
#define SID_FILTER_NAME (SID_SFX_START + 530)
#define SID_DOC_SALVAGE (SID_SFX_START + 531)
#define SID_INSERTDOC (SID_SFX_START + 532)
......@@ -270,10 +261,7 @@
#define SID_DOC_READONLY (SID_SFX_START + 590)
#define SID_DOC_MODIFIED (SID_SFX_START + 584)
#define SID_DOC_LOADING (SID_SFX_START + 585)
#define SID_IMG_LOADING (SID_SFX_START + 586)
#define SID_DOC_SAVED (SID_SFX_START + 599)
#define SID_DOCINFO (SID_SFX_START + 535)
#define SID_DOCINFO_KEYWORDS (SID_SFX_START + 591)
#define SID_DOCINFO_COMMENTS (SID_SFX_START + 592)
#define SID_DOCINFO_AUTHOR (SID_SFX_START + 593)
#define SID_DOCINFO_MAJOR (SID_SFX_START + 594)
......@@ -284,7 +272,6 @@
#define SID_DONELINK (SID_SFX_START + 646)
#define SID_REFERER (SID_SFX_START + 654)
#define SID_MODIFIER (SID_SFX_START + 669)
#define SID_SETOPTIONS (SID_SFX_START + 670)
#define SID_SOURCEVIEW (SID_SFX_START + 675)
#define SID_DOC_STARTPRESENTATION (SID_SFX_START + 695)
#define SID_DDE_RECONNECT_ONLOAD (SID_SFX_START + 696)
......@@ -346,7 +333,6 @@
// Doc-Properties
#define SID_DOCFULLNAME (SID_SFX_START + 581)
#define SID_DOCPATH (SID_SFX_START + 582)
#define SID_DOCTITLE (SID_SFX_START + 583)
#define SID_DOCUMENT (SID_SFX_START + 588)
......@@ -362,8 +348,6 @@
#define SID_VIEWSHELL0 (SID_SFX_START + 630)
#define SID_VIEWSHELL1 (SID_SFX_START + 631)
#define SID_VIEWSHELL2 (SID_SFX_START + 632)
#define SID_VIEWSHELL3 (SID_SFX_START + 633)
#define SID_VIEWSHELL4 (SID_SFX_START + 634)
// id for thesaurus entry in context menu
#define SID_THES (SID_SFX_START + 698)
......@@ -409,16 +393,11 @@
// default-ids for configuration
#define SID_CONFIG (SID_SFX_START + 904)
#define SID_TOOLBOXOPTIONS (SID_SFX_START + 907)
#define SID_TOGGLEFUNCTIONBAR (SID_SFX_START + 910)
#define SID_MACROINFO (SID_SFX_START + 919)
#define SID_TOGGLESTATUSBAR (SID_SFX_START + 920)
#define SID_CONFIGSTATUSBAR (SID_SFX_START + 921)
#define SID_CONFIGMENU (SID_SFX_START + 924)
#define SID_CONFIGACCEL (SID_SFX_START + 925)
#define SID_CONFIGEVENT (SID_SFX_START + 926)
#define SID_CFGFILE (SID_SFX_START + 927)
#define SID_SHOWPOPUPS (SID_SFX_START + 929)
// Item-Id for the assigned event Tabpage
#define SID_ATTR_MACROITEM (SID_SFX_START + 934)
......
......@@ -25,18 +25,11 @@ interface Application
[
ExecMethod = MiscExec_Impl ;
]
SID_SETOPTIONS
[
ExecMethod = MiscExec_Impl ;
]
SID_QUITAPP // ole(req) api(final/play)
[
ExecMethod = MiscExec_Impl ;
StateMethod = MiscState_Impl ;
]
SID_LOGOUT // ole(req) api(final/play)
[
]
SID_HELPINDEX // ole(no) api(final/todo)
[
ExecMethod = MiscExec_Impl ;
......@@ -61,26 +54,6 @@ interface Application
ExecMethod = MiscExec_Impl ;
StateMethod = MiscState_Impl ;
]
SID_TOOLBOXOPTIONS // ole(no) api(final/play)
[
ExecMethod = MiscExec_Impl ;
StateMethod = MiscState_Impl ;
]
SID_CONFIGSTATUSBAR // ole(no) api(final/play)
[
ExecMethod = MiscExec_Impl ;
StateMethod = MiscState_Impl ;
]
SID_CONFIGMENU // ole(no) api(final/play)
[
ExecMethod = MiscExec_Impl ;
StateMethod = MiscState_Impl ;
]
SID_CONFIGACCEL // ole(no) api(final/play)
[
ExecMethod = MiscExec_Impl ;
StateMethod = MiscState_Impl ;
]
SID_CONFIGEVENT // ole(no) api(final/play)
[
ExecMethod = MiscExec_Impl ;
......@@ -216,11 +189,6 @@ shell SfxApplication
[
ExecMethod = NewDocDirectExec_Impl ;
]
SID_CLOSEDOCS
[
ExecMethod = MiscExec_Impl ;
StateMethod = MiscState_Impl ;
]
SID_BASICIDE_APPEAR // status(final|play)
[
ExecMethod = OfaExec_Impl;
......@@ -248,10 +216,6 @@ shell SfxApplication
SID_OFFICE_CHECK_PLZ
[
ExecMethod = OfaExec_Impl;
]
SID_NEWSD // status(final|play)
[
ExecMethod = OfaExec_Impl;
......
......@@ -46,11 +46,6 @@ interface Documents
[
ExecMethod = OpenDocExec_Impl ;
]
SID_CLOSEDOCS // ole(req) api(final/play/rec)
[
ExecMethod = MiscExec_Impl ;
StateMethod = MiscState_Impl ;
]
SID_SAVEDOCS // ole(no) api(final/play/rec)
[
ExecMethod = MiscExec_Impl ;
......@@ -66,11 +61,6 @@ interface Document
ExecMethod = ExecProps_Impl ;
StateMethod = StateProps_Impl ;
]
SID_DOCPATH // ole(req) api(final/play/norec)
[
ExecMethod = ExecProps_Impl ;
StateMethod = StateProps_Impl ;
]
SID_DOCFULLNAME // ole(req) api(final/play/norec)
[
ExecMethod = ExecProps_Impl ;
......@@ -81,15 +71,6 @@ interface Document
ExecMethod = ExecFile_Impl ;
StateMethod = GetState_Impl ;
]
SID_CLOSING // ole(no) api(final/play/norec)
[
StateMethod = StateProps_Impl ;
]
SID_ACTIVATE // ole(no) api(final/play/norec)
[
ExecMethod = ExecView_Impl ;
StateMethod = StateView_Impl ;
]
}
interface OfficeDocument : Document
......@@ -104,21 +85,11 @@ interface OfficeDocument : Document
ExecMethod = ExecProps_Impl ;
StateMethod = StateProps_Impl ;
]
SID_DOCINFO_KEYWORDS // ole(opt) api(todo)
[
ExecMethod = ExecProps_Impl ;
StateMethod = StateProps_Impl ;
]
SID_DOC_READONLY // ole(opt) api(final/play/norec)
[
ExecMethod = ExecProps_Impl ;
StateMethod = StateProps_Impl ;
]
SID_DOC_SAVED // ole(req) api(final/play/norec)
[
ExecMethod = ExecProps_Impl ;
StateMethod = StateProps_Impl ;
]
SID_DOC_MODIFIED // ole(no) api(final/noplay/norec)
[
StateMethod = GetState_Impl ;
......@@ -159,19 +130,10 @@ interface OfficeDocument : Document
ExecMethod = PrintExec_Impl ;
StateMethod = NoState ;
]
SID_PRINTOUT // ole(opt) api(final/play/norec)
[
ExecMethod = PrintExec_Impl ;
StateMethod = PrintState_Impl ;
]
SID_DOC_LOADING // ole(no) api(final/play/norec)
[
StateMethod = StateProps_Impl ;
]
SID_IMG_LOADING // ole(no) api(final/play/norec)
[
StateMethod = StateProps_Impl ;
]
SID_VERSION
[
ExecMethod = ExecFile_Impl;
......
......@@ -194,10 +194,6 @@ interface Window
interface BrowseWindow : Window
{
SID_ACTIVATE // ole(no) api(final/play/rec)
[
// Implementations in Subclasses
]
SID_NEWWINDOW // ole(no) api(play/rec)
[
ExecMethod = ExecView_Impl ;
......@@ -238,16 +234,6 @@ interface BrowseWindow : Window
ExecMethod = ExecView_Impl ;
StateMethod = StateView_Impl ;
]
SID_VIEWSHELL3 // ole(no) api(no)
[
ExecMethod = ExecView_Impl ;
StateMethod = StateView_Impl ;
]
SID_VIEWSHELL4 // ole(no) api(no)
[
ExecMethod = ExecView_Impl ;
StateMethod = StateView_Impl ;
]
}
interface TopWindow : BrowseWindow
......@@ -277,11 +263,6 @@ interface TopWindow : BrowseWindow
ExecMethod = INetExecute_Impl ;
StateMethod = INetState_Impl ;
]
SID_CREATELINK // ole(no) api()
[
ExecMethod = INetExecute_Impl ;
StateMethod = INetState_Impl ;
]
SID_FOCUSURLBOX // ole(no) api(final/play/rec)
[
ExecMethod = INetExecute_Impl ;
......@@ -294,17 +275,5 @@ interface TopWindow : BrowseWindow
shell SfxViewFrame
{
import TopWindow;
SID_ACTIVATE // ole(no) api(final/play/rec)
[
ExecMethod = Exec_Impl ;
StateMethod = GetState_Impl ;
]
SID_SHOWPOPUPS
[
ExecMethod = Exec_Impl ;
StateMethod = GetState_Impl ;
]
}
......@@ -77,46 +77,6 @@ SfxBoolItem _SwitchViewShell2 SID_VIEWSHELL2
]
SfxBoolItem _SwitchViewShell3 SID_VIEWSHELL3
[
AutoUpdate = FALSE,
FastCall = FALSE,
ReadOnlyDoc = TRUE,
Toggle = FALSE,
Container = FALSE,
RecordAbsolute = FALSE,
RecordPerSet;
Asynchron;
AccelConfig = FALSE,
MenuConfig = FALSE,
ToolBoxConfig = FALSE,
GroupId = SfxGroupId::View;
]
SfxBoolItem _SwitchViewShell4 SID_VIEWSHELL4
[
AutoUpdate = FALSE,
FastCall = FALSE,
ReadOnlyDoc = TRUE,
Toggle = FALSE,
Container = FALSE,
RecordAbsolute = FALSE,
RecordPerSet;
Asynchron;
AccelConfig = FALSE,
MenuConfig = FALSE,
ToolBoxConfig = FALSE,
GroupId = SfxGroupId::View;
]
SfxVoidItem About SID_ABOUT
()
[
......@@ -135,24 +95,6 @@ SfxVoidItem About SID_ABOUT
]
SfxVoidItem Activate SID_ACTIVATE
()
[
AutoUpdate = FALSE,
FastCall = FALSE,
ReadOnlyDoc = TRUE,
Toggle = FALSE,
Container = TRUE,
RecordAbsolute = TRUE,
RecordPerSet;
AccelConfig = FALSE,
MenuConfig = FALSE,
ToolBoxConfig = FALSE,
GroupId = SfxGroupId::View;
]
SfxBoolItem ActiveHelp SID_HELPBALLOONS
[
......@@ -209,25 +151,6 @@ SfxStringItem NewDoc SID_NEWDOC
GroupId = SfxGroupId::Application;
]
SfxVoidItem AddBookmark SID_CREATELINK
()
[
AutoUpdate = FALSE,
FastCall = TRUE,
ReadOnlyDoc = TRUE,
Toggle = FALSE,
Container = TRUE,
RecordAbsolute = FALSE,
RecordPerSet;
AccelConfig = FALSE,
MenuConfig = FALSE,
ToolBoxConfig = FALSE,
GroupId = SfxGroupId::Explorer;
]
SfxStringItem AddDirect SID_NEWDOCDIRECT
()
[
......@@ -620,25 +543,6 @@ SfxVoidItem ClearHistory SID_CLEARHISTORY
GroupId = SfxGroupId::Options;
]
SfxVoidItem CloseDocs SID_CLOSEDOCS
()
[
AutoUpdate = FALSE,
FastCall = FALSE,
ReadOnlyDoc = TRUE,
Toggle = FALSE,
Container = TRUE,
RecordAbsolute = FALSE,
RecordPerSet;
Asynchron;
AccelConfig = FALSE,
MenuConfig = FALSE,
ToolBoxConfig = FALSE,
GroupId = SfxGroupId::Application;
]
SfxStringItem CloseDoc SID_CLOSEDOC
(SfxBoolItem saveChanges SID_CLOSEDOC_SAVE,SfxStringItem fileName SID_CLOSEDOC_FILENAME)
[
......@@ -677,25 +581,6 @@ SfxVoidItem CloseWin SID_CLOSEWIN
]
SfxBoolItem Closing SID_CLOSING
[
AutoUpdate = TRUE,
FastCall = FALSE,
ReadOnlyDoc = TRUE,
Toggle = FALSE,
Container = FALSE,
RecordAbsolute = FALSE,
RecordPerSet;
AccelConfig = FALSE,
MenuConfig = FALSE,
ToolBoxConfig = FALSE,
GroupId = SfxGroupId::Intern;
]
SfxStringItem Comments SID_DOCINFO_COMMENTS
[
......@@ -1991,43 +1876,6 @@ SfxBoolItem IsLoading SID_DOC_LOADING
]
SfxBoolItem IsLoadingImages SID_IMG_LOADING
[
AutoUpdate = FALSE,
FastCall = FALSE,
ReadOnlyDoc = TRUE,
Toggle = FALSE,
Container = TRUE,
RecordAbsolute = FALSE,
RecordPerSet;
AccelConfig = FALSE,
MenuConfig = FALSE,
ToolBoxConfig = FALSE,
GroupId = SfxGroupId::View;
]
SfxBoolItem PrintOut SID_PRINTOUT
(SfxInt16Item copies SID_PRINT_COPIES,SfxBoolItem silent SID_SILENT)
[
AutoUpdate = FALSE,
FastCall = FALSE,
ReadOnlyDoc = TRUE,
Toggle = FALSE,
Container = TRUE,
RecordAbsolute = FALSE,
RecordPerSet;
AccelConfig = FALSE,
MenuConfig = FALSE,
ToolBoxConfig = FALSE,
GroupId = SfxGroupId::Document;
]
SfxVoidItem JumpToMark SID_JUMPTOMARK
(SfxStringItem Bookmark SID_JUMPTOMARK)
[
......@@ -2046,25 +1894,6 @@ SfxVoidItem JumpToMark SID_JUMPTOMARK
]
SfxStringItem Keywords SID_DOCINFO_KEYWORDS
[
AutoUpdate = FALSE,
FastCall = FALSE,
ReadOnlyDoc = TRUE,
Toggle = FALSE,
Container = FALSE,
RecordAbsolute = FALSE,
RecordPerSet;
AccelConfig = FALSE,
MenuConfig = FALSE,
ToolBoxConfig = FALSE,
GroupId = ;
]
SfxStringItem LibLoaded SID_BASICIDE_LIBLOADED
(SfxUsrAnyItem Document SID_BASICIDE_ARG_DOCUMENT_MODEL,SfxStringItem LibName SID_BASICIDE_ARG_LIBNAME)
[
......@@ -2138,25 +1967,6 @@ SfxStringItem LibSelector SID_BASICIDE_LIBSELECTOR
]
SfxVoidItem LoadAccel SID_CONFIGACCEL
(SfxStringItem FileName SID_CFGFILE)
[
AutoUpdate = FALSE,
FastCall = FALSE,
ReadOnlyDoc = TRUE,
Toggle = FALSE,
Container = TRUE,
RecordAbsolute = FALSE,
RecordPerSet;
Asynchron;
AccelConfig = FALSE,
MenuConfig = FALSE,
ToolBoxConfig = FALSE,
GroupId = SfxGroupId::Options;
]
SfxVoidItem LoadBasic SID_BASICLOAD
()
[
......@@ -2195,82 +2005,6 @@ SfxVoidItem LoadEvents SID_CONFIGEVENT
]
SfxVoidItem LoadMenu SID_CONFIGMENU
(SfxStringItem FileName SID_CFGFILE)
[
AutoUpdate = FALSE,
FastCall = FALSE,
ReadOnlyDoc = TRUE,
Toggle = FALSE,
Container = TRUE,
RecordAbsolute = FALSE,
RecordPerSet;
Asynchron;
AccelConfig = FALSE,
MenuConfig = FALSE,
ToolBoxConfig = FALSE,
GroupId = SfxGroupId::Options;
]
SfxVoidItem LoadStatusBar SID_CONFIGSTATUSBAR
(SfxStringItem FileName SID_CFGFILE)
[
AutoUpdate = FALSE,
FastCall = FALSE,
ReadOnlyDoc = TRUE,
Toggle = FALSE,
Container = TRUE,
RecordAbsolute = FALSE,
RecordPerSet;
Asynchron;
AccelConfig = FALSE,
MenuConfig = FALSE,
ToolBoxConfig = FALSE,
GroupId = SfxGroupId::Options;
]
SfxVoidItem LoadToolBox SID_TOOLBOXOPTIONS
()
[
AutoUpdate = FALSE,
FastCall = FALSE,
ReadOnlyDoc = TRUE,
Toggle = FALSE,
Container = TRUE,
RecordAbsolute = FALSE,
RecordPerSet;
Asynchron;
AccelConfig = FALSE,
MenuConfig = FALSE,
ToolBoxConfig = FALSE,
GroupId = SfxGroupId::Options;
]
SfxStringItem Logout SID_LOGOUT
()
[
AutoUpdate = FALSE,
FastCall = FALSE,
ReadOnlyDoc = TRUE,
Toggle = FALSE,
Container = TRUE,
RecordAbsolute = FALSE,
RecordPerSet;
Asynchron;
AccelConfig = FALSE,
MenuConfig = FALSE,
ToolBoxConfig = FALSE,
GroupId = SfxGroupId::Application;
]
SfxScriptOrganizerItem ScriptOrganizer SID_SCRIPTORGANIZER
(SfxScriptOrganizerItem ScriptOrganizer SID_SCRIPTORGANIZER)
[
......@@ -3109,25 +2843,6 @@ SfxVoidItem PasteOnlyValue SID_PASTE_ONLY_VALUE
]
SfxStringItem DocPath SID_DOCPATH
[
AutoUpdate = FALSE,
FastCall = FALSE,
ReadOnlyDoc = TRUE,
Toggle = FALSE,
Container = FALSE,
RecordAbsolute = FALSE,
RecordPerSet;
AccelConfig = FALSE,
MenuConfig = FALSE,
ToolBoxConfig = FALSE,
GroupId = ;
]
SfxVoidItem Print SID_PRINTDOC
(SfxStringItem PrinterName SID_PRINTER_NAME,SfxStringItem FileName SID_FILE_NAME,SfxInt16Item Copies SID_PRINT_COPIES,SfxStringItem RangeText SID_PRINT_PAGES,SfxBoolItem Selection SID_SELECTION,SfxBoolItem Asynchron SID_ASYNCHRON,SfxBoolItem Collate SID_PRINT_COLLATE,SfxBoolItem Silent SID_SILENT)
[
......@@ -3684,25 +3399,6 @@ SfxVoidItem ImportDialog SID_IMPORT_DIALOG
]
SfxBoolItem Saved SID_DOC_SAVED
[
AutoUpdate = FALSE,
FastCall = FALSE,
ReadOnlyDoc = TRUE,
Toggle = FALSE,
Container = FALSE,
RecordAbsolute = FALSE,
RecordPerSet;
AccelConfig = FALSE,
MenuConfig = FALSE,
ToolBoxConfig = FALSE,
GroupId = ;
]
SfxVoidItem SbxDeleted SID_BASICIDE_SBXDELETED
(SbxItem Sbx SID_BASICIDE_ARG_SBX)
[
......@@ -3922,24 +3618,6 @@ SfxStringItem SendViaBluetooth SID_BLUETOOTH_SENDDOC
]
SfxStringItem SendMailDocAsFormat SID_MAIL_SENDDOCASFORMAT
(SfxStringItem Recipient SID_MAIL_RECIPIENT,SfxStringItem Subject SID_MAIL_SUBJECT,SfxStringItem MailText SID_MAIL_TEXT,SfxUInt16Item Priority SID_MAIL_PRIORITY,SfxStringItem TypeName SID_TYPE_NAME)
[
AutoUpdate = FALSE,
FastCall = FALSE,
ReadOnlyDoc = TRUE,
Toggle = FALSE,
Container = TRUE,
RecordAbsolute = FALSE,
RecordPerSet;
Asynchron;
AccelConfig = FALSE,
MenuConfig = FALSE,
ToolBoxConfig = FALSE,
GroupId = SfxGroupId::Document;
]
SfxStringItem SendMailDocAsMS SID_MAIL_SENDDOCASMS
(SfxStringItem Recipient SID_MAIL_RECIPIENT,SfxStringItem Subject SID_MAIL_SUBJECT,SfxStringItem MailText SID_MAIL_TEXT,SfxUInt16Item Priority SID_MAIL_PRIORITY)
[
......@@ -3977,44 +3655,6 @@ SfxStringItem SendMailDocAsOOo SID_MAIL_SENDDOCASOOO
]
SfxVoidItem SetOptions SID_SETOPTIONS
()
[
AutoUpdate = FALSE,
FastCall = FALSE,
ReadOnlyDoc = TRUE,
Toggle = FALSE,
Container = FALSE,
RecordAbsolute = FALSE,
RecordPerSet;
Asynchron;
AccelConfig = FALSE,
MenuConfig = FALSE,
ToolBoxConfig = FALSE,
GroupId = ;
]
SfxBoolItem ShowPopups SID_SHOWPOPUPS
[
AutoUpdate = FALSE,
FastCall = FALSE,
ReadOnlyDoc = TRUE,
Toggle = FALSE,
Container = TRUE,
RecordAbsolute = FALSE,
RecordPerSet;
AccelConfig = FALSE,
MenuConfig = FALSE,
ToolBoxConfig = FALSE,
GroupId = SfxGroupId::Options;
]
SfxVoidItem ShowSbx SID_BASICIDE_SHOWSBX
(SbxItem Sbx SID_BASICIDE_ARG_SBX)
[
......@@ -4949,24 +4589,6 @@ SfxVoidItem InternetDialog SID_INET_DLG
]
SfxVoidItem CheckPLZ SID_OFFICE_CHECK_PLZ
(SfxStringItem PLZ SID_OFFICE_CHECK_PLZ)
[
AutoUpdate = FALSE,
FastCall = FALSE,
ReadOnlyDoc = TRUE,
Toggle = FALSE,
Container = FALSE,
RecordAbsolute = FALSE,
RecordPerSet;
AccelConfig = FALSE,
MenuConfig = FALSE,
ToolBoxConfig = FALSE,
GroupId = SfxGroupId::Special;
]
SfxVoidItem AutoPilotAddressDataSource SID_ADDRESS_DATA_SOURCE
()
[
......
......@@ -34,11 +34,6 @@ interface View
ExecMethod = ExecMisc_Impl ;
StateMethod = GetState_Impl ;
]
SID_MAIL_SENDDOCASFORMAT // ole(no) api(todo)
[
ExecMethod = ExecMisc_Impl ;
StateMethod = GetState_Impl ;
]
SID_MAIL_SENDDOCASMS // ole(no) api(todo)
[
ExecMethod = ExecMisc_Impl ;
......
......@@ -324,45 +324,12 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq )
bool bDone = false;
switch ( rReq.GetSlot() )
{
case SID_SETOPTIONS:
{
if( rReq.GetArgs() )
SetOptions_Impl( *rReq.GetArgs() );
break;
}
case SID_QUITAPP:
case SID_LOGOUT:
{
// protect against reentrant calls
if ( pImpl->bInQuit )
return;
if ( rReq.GetSlot() == SID_LOGOUT )
{
for ( SfxObjectShell *pObjSh = SfxObjectShell::GetFirst();
pObjSh; pObjSh = SfxObjectShell::GetNext( *pObjSh ) )
{
if ( !pObjSh->IsModified() )
continue;
SfxViewFrame* pFrame = SfxViewFrame::GetFirst( pObjSh );
if ( !pFrame || !pFrame->GetWindow().IsReallyVisible() )
continue;
if (pObjSh->PrepareClose())
pObjSh->SetModified( false );
else
return;
}
SfxStringItem aNameItem( SID_FILE_NAME, OUString("vnd.sun.star.cmd:logout") );
SfxStringItem aReferer( SID_REFERER, "private/user" );
pImpl->pAppDispat->ExecuteList(SID_OPENDOC,
SfxCallMode::SLOT, { &aNameItem, &aReferer });
return;
}
// try from nested requests again after 100ms
if( Application::GetDispatchLevel() > 1 )
{
......@@ -394,10 +361,6 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq )
}
case SID_CONFIG:
case SID_TOOLBOXOPTIONS:
case SID_CONFIGSTATUSBAR:
case SID_CONFIGMENU:
case SID_CONFIGACCEL:
case SID_CONFIGEVENT:
{
SfxAbstractDialogFactory* pFact =
......@@ -436,40 +399,6 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq )
break;
}
case SID_CLOSEDOCS:
{
Reference < XDesktop2 > xDesktop = Desktop::create( ::comphelper::getProcessComponentContext() );
Reference< XIndexAccess > xTasks( xDesktop->getFrames(), UNO_QUERY );
if ( !xTasks.is() )
break;
sal_Int32 n=0;
do
{
if ( xTasks->getCount() <= n )
break;
Any aAny = xTasks->getByIndex(n);
Reference < XCloseable > xTask;
aAny >>= xTask;
try
{
xTask->close(true);
n++;
}
catch( CloseVetoException& )
{
}
}
while( true );
bool bOk = ( n == 0);
rReq.SetReturnValue( SfxBoolItem( 0, bOk ) );
bDone = true;
break;
}
case SID_SAVEDOCS:
{
bool bOK = true;
......@@ -1029,10 +958,6 @@ void SfxApplication::MiscState_Impl(SfxItemSet &rSet)
}
case SID_CONFIG:
case SID_TOOLBOXOPTIONS:
case SID_CONFIGSTATUSBAR:
case SID_CONFIGMENU:
case SID_CONFIGACCEL:
case SID_CONFIGEVENT:
{
if( SvtMiscOptions().DisableUICustomization() )
......@@ -1063,15 +988,6 @@ void SfxApplication::MiscState_Impl(SfxItemSet &rSet)
}
break;
case SID_CLOSEDOCS:
{
Reference < XDesktop2 > xDesktop = Desktop::create( ::comphelper::getProcessComponentContext() );
Reference< XIndexAccess > xTasks( xDesktop->getFrames(), UNO_QUERY );
if ( !xTasks.is() || !xTasks->getCount() )
rSet.DisableItem(nWhich);
break;
}
case SID_SAVEDOCS:
{
bool bModified = false;
......@@ -1569,23 +1485,6 @@ void SfxApplication::OfaExec_Impl( SfxRequest& rReq )
break;
#endif // HAVE_FEATURE_SCRIPTING
case SID_OFFICE_CHECK_PLZ:
{
bool bRet = false;
const SfxStringItem* pStringItem = rReq.GetArg<SfxStringItem>(rReq.GetSlot());
if ( pStringItem )
{
bRet = true /*!!!SfxIniManager::CheckPLZ( aPLZ )*/;
}
#if HAVE_FEATURE_SCRIPTING
else
SbxBase::SetError( ERRCODE_BASIC_WRONG_ARGS );
#endif
rReq.SetReturnValue( SfxBoolItem( rReq.GetSlot(), bRet ) );
}
break;
case SID_AUTO_CORRECT_DLG:
{
SfxAbstractDialogFactory* pFact = SfxAbstractDialogFactory::Create();
......
......@@ -244,16 +244,8 @@ void SfxObjectShell::PrintExec_Impl(SfxRequest &rReq)
}
void SfxObjectShell::PrintState_Impl(SfxItemSet &rSet)
void SfxObjectShell::PrintState_Impl(SfxItemSet &/*rSet*/)
{
bool bPrinting = false;
SfxViewFrame* pFrame = SfxViewFrame::GetFirst( this );
if ( pFrame )
{
SfxPrinter *pPrinter = pFrame->GetViewShell()->GetPrinter();
bPrinting = pPrinter && pPrinter->IsPrinting();
}
rSet.Put( SfxBoolItem( SID_PRINTOUT, bPrinting ) );
}
bool SfxObjectShell::APISaveAs_Impl(const OUString& aFileName, SfxItemSet& rItemSet)
......@@ -1111,14 +1103,6 @@ void SfxObjectShell::ExecProps_Impl(SfxRequest &rReq)
case SID_DOCINFO_COMMENTS :
getDocProperties()->setDescription( static_cast<const SfxStringItem&>(rReq.GetArgs()->Get(rReq.GetSlot())).GetValue() );
break;
case SID_DOCINFO_KEYWORDS :
{
const OUString aStr = static_cast<const SfxStringItem&>(rReq.GetArgs()->Get(rReq.GetSlot())).GetValue();
getDocProperties()->setKeywords(
::comphelper::string::convertCommaSeparated(aStr) );
break;
}
}
}
......@@ -1144,19 +1128,6 @@ void SfxObjectShell::StateProps_Impl(SfxItemSet &rSet)
break;
}
case SID_DOCINFO_KEYWORDS :
{
rSet.Put( SfxStringItem( nSID, ::comphelper::string::
convertCommaSeparated(getDocProperties()->getKeywords())) );
break;
}
case SID_DOCPATH:
{
OSL_FAIL( "Not supported anymore!" );
break;
}
case SID_DOCFULLNAME:
{
rSet.Put( SfxStringItem( SID_DOCFULLNAME, GetTitle(SFX_TITLE_FULLNAME) ) );
......@@ -1175,44 +1146,16 @@ void SfxObjectShell::StateProps_Impl(SfxItemSet &rSet)
break;
}
case SID_DOC_SAVED:
{
rSet.Put( SfxBoolItem( SID_DOC_SAVED, !IsModified() ) );
break;
}
case SID_CLOSING:
{
rSet.Put( SfxBoolItem( SID_CLOSING, false ) );
break;
}
case SID_DOC_LOADING:
rSet.Put( SfxBoolItem( nSID, ! ( pImpl->nLoadedFlags & SfxLoadedFlags::MAINDOCUMENT ) ) );
break;
case SID_IMG_LOADING:
rSet.Put( SfxBoolItem( nSID, ! ( pImpl->nLoadedFlags & SfxLoadedFlags::IMAGES ) ) );
break;
}
}
}
void SfxObjectShell::ExecView_Impl(SfxRequest &rReq)
void SfxObjectShell::ExecView_Impl(SfxRequest & /*rReq*/)
{
switch ( rReq.GetSlot() )
{
case SID_ACTIVATE:
{
SfxViewFrame *pFrame = SfxViewFrame::GetFirst( this );
if ( pFrame )
pFrame->GetFrame().Appear();
rReq.SetReturnValue( SfxObjectItem( 0, pFrame ) );
rReq.Done();
break;
}
}
}
......
......@@ -2038,8 +2038,6 @@ void SfxViewFrame::ExecView_Impl
case SID_VIEWSHELL0:
case SID_VIEWSHELL1:
case SID_VIEWSHELL2:
case SID_VIEWSHELL3:
case SID_VIEWSHELL4:
{
const sal_uInt16 nViewNo = rReq.GetSlot() - SID_VIEWSHELL0;
bool bSuccess = SwitchToViewShell_Impl( nViewNo, true );
......@@ -2186,8 +2184,6 @@ void SfxViewFrame::StateView_Impl
case SID_VIEWSHELL0:
case SID_VIEWSHELL1:
case SID_VIEWSHELL2:
case SID_VIEWSHELL3:
case SID_VIEWSHELL4:
{
sal_uInt16 nViewNo = nWhich - SID_VIEWSHELL0;
if ( GetObjectShell()->GetFactory().GetViewFactoryCount() >
......
......@@ -155,39 +155,6 @@ void SfxViewFrame::Exec_Impl(SfxRequest &rReq )
switch ( rReq.GetSlot() )
{
case SID_SHOWPOPUPS :
{
const SfxBoolItem* pShowItem = rReq.GetArg<SfxBoolItem>(SID_SHOWPOPUPS);
bool bShow = pShowItem == nullptr || pShowItem->GetValue();
SfxWorkWindow *pWorkWin = GetFrame().GetWorkWindow_Impl();
if ( bShow )
{
// First, make the floats viewable
pWorkWin->MakeChildrenVisible_Impl( bShow );
GetDispatcher()->Update_Impl( true );
// Then view it
GetBindings().HidePopups( !bShow );
}
else
{
pWorkWin->HidePopups_Impl( !bShow, true );
pWorkWin->MakeChildrenVisible_Impl( bShow );
}
Invalidate( rReq.GetSlot() );
rReq.Done();
break;
}
case SID_ACTIVATE:
{
MakeActive_Impl( true );
rReq.SetReturnValue( SfxObjectItem( 0, this ) );
break;
}
case SID_NEWDOCDIRECT :
{
const SfxStringItem* pFactoryItem = rReq.GetArg<SfxStringItem>(SID_NEWDOCDIRECT);
......@@ -299,9 +266,6 @@ void SfxViewFrame::GetState_Impl( SfxItemSet &rSet )
break;
}
case SID_SHOWPOPUPS :
break;
case SID_OBJECT:
if ( GetViewShell() && GetViewShell()->GetVerbs().getLength() && !GetObjectShell()->IsInPlaceActive() )
{
......@@ -329,12 +293,6 @@ void SfxViewFrame::INetExecute_Impl( SfxRequest &rRequest )
case SID_BROWSE_BACKWARD:
OSL_FAIL( "SfxViewFrame::INetExecute_Impl: SID_BROWSE_FORWARD/BACKWARD are dead!" );
break;
case SID_CREATELINK:
{
/*! (pb) we need new implementation to create a link
*/
break;
}
case SID_FOCUSURLBOX:
{
SfxStateCache *pCache = GetBindings().GetAnyStateCache_Impl( SID_OPENURL );
......@@ -358,12 +316,6 @@ void SfxViewFrame::INetState_Impl( SfxItemSet &rItemSet )
{
rItemSet.DisableItem( SID_BROWSE_FORWARD );
rItemSet.DisableItem( SID_BROWSE_BACKWARD );
// Add/SaveToBookmark at BASIC-IDE, QUERY-EDITOR etc. disable
SfxObjectShell *pDocSh = GetObjectShell();
bool bEmbedded = pDocSh && pDocSh->GetCreateMode() == SfxObjectCreateMode::EMBEDDED;
if ( !pDocSh || bEmbedded || !pDocSh->HasName() )
rItemSet.DisableItem( SID_CREATELINK );
}
void SfxViewFrame::Activate( bool /*bMDI*/ )
......
......@@ -444,7 +444,6 @@ void SfxViewShell::ExecMisc_Impl( SfxRequest &rReq )
case SID_MAIL_SENDDOCASOOO:
case SID_MAIL_SENDDOCASPDF:
case SID_MAIL_SENDDOC:
case SID_MAIL_SENDDOCASFORMAT:
{
SfxObjectShell* pDoc = GetObjectShell();
if ( pDoc && pDoc->QueryHiddenInformation(
......@@ -657,7 +656,6 @@ void SfxViewShell::GetState_Impl( SfxItemSet &rSet )
#if HAVE_FEATURE_MACOSX_SANDBOX
case SID_BLUETOOTH_SENDDOC:
case SID_MAIL_SENDDOC:
case SID_MAIL_SENDDOCASFORMAT:
case SID_MAIL_SENDDOCASMS:
case SID_MAIL_SENDDOCASOOO:
case SID_MAIL_SENDDOCASPDF:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment