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

Revert "unused SID command in sfx2"

This reverts commit 08f4ecd5.

Change-Id: I93c4e44de73ce62b4cad7e3c6c56943dafaaebb4
Reviewed-on: https://gerrit.libreoffice.org/46966Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst de6ccf06
...@@ -103,7 +103,9 @@ ...@@ -103,7 +103,9 @@
#define SID_SAVEACOPY (SID_SFX_START + 999) #define SID_SAVEACOPY (SID_SFX_START + 999)
#define SID_SAVEACOPYITEM (SID_SFX_START + 998) #define SID_SAVEACOPYITEM (SID_SFX_START + 998)
#define SID_CONVERT_IMAGES (SID_SFX_START + 997) #define SID_CONVERT_IMAGES (SID_SFX_START + 997)
#define SID_CLOSING (SID_SFX_START +1539)
#define SID_CLOSEDOC (SID_SFX_START + 503) #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_SAVE (SID_SFX_START + 1)
#define SID_CLOSEDOC_FILENAME (SID_SFX_START + 2) #define SID_CLOSEDOC_FILENAME (SID_SFX_START + 2)
#define SID_PRINTDOC (SID_SFX_START + 504) #define SID_PRINTDOC (SID_SFX_START + 504)
...@@ -142,6 +144,7 @@ ...@@ -142,6 +144,7 @@
// browse-ids // browse-ids
#define SID_BROWSE_FORWARD (SID_SFX_START + 1300) #define SID_BROWSE_FORWARD (SID_SFX_START + 1300)
#define SID_BROWSE_BACKWARD (SID_SFX_START + 1301) #define SID_BROWSE_BACKWARD (SID_SFX_START + 1301)
#define SID_CREATELINK (SID_SFX_START + 1309)
#define SID_EDITDOC (SID_SFX_START + 1312) #define SID_EDITDOC (SID_SFX_START + 1312)
#define SID_BROWSER_MODE (SID_SFX_START + 1313) #define SID_BROWSER_MODE (SID_SFX_START + 1313)
#define SID_READONLYDOC (SID_SFX_START + 1314) #define SID_READONLYDOC (SID_SFX_START + 1314)
...@@ -172,6 +175,7 @@ ...@@ -172,6 +175,7 @@
#define SID_DOCUMENT_COMPARE (SID_SFX_START + 1586) #define SID_DOCUMENT_COMPARE (SID_SFX_START + 1586)
#define SID_DOCUMENT_MERGE (SID_SFX_START + 1587) #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_CURRENT_URL (SID_SFX_START + 1613)
#define SID_CHARSET (SID_SFX_START + 1633) #define SID_CHARSET (SID_SFX_START + 1633)
...@@ -179,6 +183,7 @@ ...@@ -179,6 +183,7 @@
// FREE (was: SID_CRASH) // FREE (was: SID_CRASH)
#define SID_FAIL_ON_WARNING (SID_SFX_START + 1646) #define SID_FAIL_ON_WARNING (SID_SFX_START + 1646)
#define SID_INPUTSTREAM (SID_SFX_START + 1648) #define SID_INPUTSTREAM (SID_SFX_START + 1648)
#define SID_LOGOUT (SID_SFX_START + 1652)
#define SID_JUMPMARK (SID_SFX_START + 1654) #define SID_JUMPMARK (SID_SFX_START + 1654)
#define SID_BROWSE (SID_SFX_START + 1658) #define SID_BROWSE (SID_SFX_START + 1658)
// FREE (was: SID_BACKTOWEBTOP) // FREE (was: SID_BACKTOWEBTOP)
...@@ -216,6 +221,7 @@ ...@@ -216,6 +221,7 @@
#define SID_MACRO_SIGNATURE (SID_SFX_START + 1704) #define SID_MACRO_SIGNATURE (SID_SFX_START + 1704)
#define SID_ATTR_WARNALIENFORMAT (SID_SFX_START + 1705) #define SID_ATTR_WARNALIENFORMAT (SID_SFX_START + 1705)
#define SID_COPY_STREAM_IF_POSSIBLE (SID_SFX_START + 1706) #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_SENDDOCASMS (SID_SFX_START + 1708)
#define SID_MAIL_SENDDOCASOOO (SID_SFX_START + 1709) #define SID_MAIL_SENDDOCASOOO (SID_SFX_START + 1709)
#define SID_NO_ACCEPT_DIALOG (SID_SFX_START + 1710) #define SID_NO_ACCEPT_DIALOG (SID_SFX_START + 1710)
...@@ -253,6 +259,9 @@ ...@@ -253,6 +259,9 @@
#define SID_FOCUSURLBOX (SID_SFX_START + 1406) #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_FILTER_NAME (SID_SFX_START + 530)
#define SID_DOC_SALVAGE (SID_SFX_START + 531) #define SID_DOC_SALVAGE (SID_SFX_START + 531)
#define SID_INSERTDOC (SID_SFX_START + 532) #define SID_INSERTDOC (SID_SFX_START + 532)
...@@ -261,7 +270,10 @@ ...@@ -261,7 +270,10 @@
#define SID_DOC_READONLY (SID_SFX_START + 590) #define SID_DOC_READONLY (SID_SFX_START + 590)
#define SID_DOC_MODIFIED (SID_SFX_START + 584) #define SID_DOC_MODIFIED (SID_SFX_START + 584)
#define SID_DOC_LOADING (SID_SFX_START + 585) #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 (SID_SFX_START + 535)
#define SID_DOCINFO_KEYWORDS (SID_SFX_START + 591)
#define SID_DOCINFO_COMMENTS (SID_SFX_START + 592) #define SID_DOCINFO_COMMENTS (SID_SFX_START + 592)
#define SID_DOCINFO_AUTHOR (SID_SFX_START + 593) #define SID_DOCINFO_AUTHOR (SID_SFX_START + 593)
#define SID_DOCINFO_MAJOR (SID_SFX_START + 594) #define SID_DOCINFO_MAJOR (SID_SFX_START + 594)
...@@ -272,6 +284,7 @@ ...@@ -272,6 +284,7 @@
#define SID_DONELINK (SID_SFX_START + 646) #define SID_DONELINK (SID_SFX_START + 646)
#define SID_REFERER (SID_SFX_START + 654) #define SID_REFERER (SID_SFX_START + 654)
#define SID_MODIFIER (SID_SFX_START + 669) #define SID_MODIFIER (SID_SFX_START + 669)
#define SID_SETOPTIONS (SID_SFX_START + 670)
#define SID_SOURCEVIEW (SID_SFX_START + 675) #define SID_SOURCEVIEW (SID_SFX_START + 675)
#define SID_DOC_STARTPRESENTATION (SID_SFX_START + 695) #define SID_DOC_STARTPRESENTATION (SID_SFX_START + 695)
#define SID_DDE_RECONNECT_ONLOAD (SID_SFX_START + 696) #define SID_DDE_RECONNECT_ONLOAD (SID_SFX_START + 696)
...@@ -333,6 +346,7 @@ ...@@ -333,6 +346,7 @@
// Doc-Properties // Doc-Properties
#define SID_DOCFULLNAME (SID_SFX_START + 581) #define SID_DOCFULLNAME (SID_SFX_START + 581)
#define SID_DOCPATH (SID_SFX_START + 582)
#define SID_DOCTITLE (SID_SFX_START + 583) #define SID_DOCTITLE (SID_SFX_START + 583)
#define SID_DOCUMENT (SID_SFX_START + 588) #define SID_DOCUMENT (SID_SFX_START + 588)
...@@ -348,6 +362,8 @@ ...@@ -348,6 +362,8 @@
#define SID_VIEWSHELL0 (SID_SFX_START + 630) #define SID_VIEWSHELL0 (SID_SFX_START + 630)
#define SID_VIEWSHELL1 (SID_SFX_START + 631) #define SID_VIEWSHELL1 (SID_SFX_START + 631)
#define SID_VIEWSHELL2 (SID_SFX_START + 632) #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 // id for thesaurus entry in context menu
#define SID_THES (SID_SFX_START + 698) #define SID_THES (SID_SFX_START + 698)
...@@ -393,11 +409,16 @@ ...@@ -393,11 +409,16 @@
// default-ids for configuration // default-ids for configuration
#define SID_CONFIG (SID_SFX_START + 904) #define SID_CONFIG (SID_SFX_START + 904)
#define SID_TOOLBOXOPTIONS (SID_SFX_START + 907)
#define SID_TOGGLEFUNCTIONBAR (SID_SFX_START + 910) #define SID_TOGGLEFUNCTIONBAR (SID_SFX_START + 910)
#define SID_MACROINFO (SID_SFX_START + 919) #define SID_MACROINFO (SID_SFX_START + 919)
#define SID_TOGGLESTATUSBAR (SID_SFX_START + 920) #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_CONFIGEVENT (SID_SFX_START + 926)
#define SID_CFGFILE (SID_SFX_START + 927) #define SID_CFGFILE (SID_SFX_START + 927)
#define SID_SHOWPOPUPS (SID_SFX_START + 929)
// Item-Id for the assigned event Tabpage // Item-Id for the assigned event Tabpage
#define SID_ATTR_MACROITEM (SID_SFX_START + 934) #define SID_ATTR_MACROITEM (SID_SFX_START + 934)
......
...@@ -25,11 +25,18 @@ interface Application ...@@ -25,11 +25,18 @@ interface Application
[ [
ExecMethod = MiscExec_Impl ; ExecMethod = MiscExec_Impl ;
] ]
SID_SETOPTIONS
[
ExecMethod = MiscExec_Impl ;
]
SID_QUITAPP // ole(req) api(final/play) SID_QUITAPP // ole(req) api(final/play)
[ [
ExecMethod = MiscExec_Impl ; ExecMethod = MiscExec_Impl ;
StateMethod = MiscState_Impl ; StateMethod = MiscState_Impl ;
] ]
SID_LOGOUT // ole(req) api(final/play)
[
]
SID_HELPINDEX // ole(no) api(final/todo) SID_HELPINDEX // ole(no) api(final/todo)
[ [
ExecMethod = MiscExec_Impl ; ExecMethod = MiscExec_Impl ;
...@@ -54,6 +61,26 @@ interface Application ...@@ -54,6 +61,26 @@ interface Application
ExecMethod = MiscExec_Impl ; ExecMethod = MiscExec_Impl ;
StateMethod = MiscState_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) SID_CONFIGEVENT // ole(no) api(final/play)
[ [
ExecMethod = MiscExec_Impl ; ExecMethod = MiscExec_Impl ;
...@@ -189,6 +216,11 @@ shell SfxApplication ...@@ -189,6 +216,11 @@ shell SfxApplication
[ [
ExecMethod = NewDocDirectExec_Impl ; ExecMethod = NewDocDirectExec_Impl ;
] ]
SID_CLOSEDOCS
[
ExecMethod = MiscExec_Impl ;
StateMethod = MiscState_Impl ;
]
SID_BASICIDE_APPEAR // status(final|play) SID_BASICIDE_APPEAR // status(final|play)
[ [
ExecMethod = OfaExec_Impl; ExecMethod = OfaExec_Impl;
...@@ -216,6 +248,10 @@ shell SfxApplication ...@@ -216,6 +248,10 @@ shell SfxApplication
SID_OFFICE_CHECK_PLZ
[
ExecMethod = OfaExec_Impl;
]
SID_NEWSD // status(final|play) SID_NEWSD // status(final|play)
[ [
ExecMethod = OfaExec_Impl; ExecMethod = OfaExec_Impl;
......
...@@ -46,6 +46,11 @@ interface Documents ...@@ -46,6 +46,11 @@ interface Documents
[ [
ExecMethod = OpenDocExec_Impl ; 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) SID_SAVEDOCS // ole(no) api(final/play/rec)
[ [
ExecMethod = MiscExec_Impl ; ExecMethod = MiscExec_Impl ;
...@@ -61,6 +66,11 @@ interface Document ...@@ -61,6 +66,11 @@ interface Document
ExecMethod = ExecProps_Impl ; ExecMethod = ExecProps_Impl ;
StateMethod = StateProps_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) SID_DOCFULLNAME // ole(req) api(final/play/norec)
[ [
ExecMethod = ExecProps_Impl ; ExecMethod = ExecProps_Impl ;
...@@ -71,6 +81,15 @@ interface Document ...@@ -71,6 +81,15 @@ interface Document
ExecMethod = ExecFile_Impl ; ExecMethod = ExecFile_Impl ;
StateMethod = GetState_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 interface OfficeDocument : Document
...@@ -85,11 +104,21 @@ interface OfficeDocument : Document ...@@ -85,11 +104,21 @@ interface OfficeDocument : Document
ExecMethod = ExecProps_Impl ; ExecMethod = ExecProps_Impl ;
StateMethod = StateProps_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) SID_DOC_READONLY // ole(opt) api(final/play/norec)
[ [
ExecMethod = ExecProps_Impl ; ExecMethod = ExecProps_Impl ;
StateMethod = StateProps_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) SID_DOC_MODIFIED // ole(no) api(final/noplay/norec)
[ [
StateMethod = GetState_Impl ; StateMethod = GetState_Impl ;
...@@ -130,10 +159,19 @@ interface OfficeDocument : Document ...@@ -130,10 +159,19 @@ interface OfficeDocument : Document
ExecMethod = PrintExec_Impl ; ExecMethod = PrintExec_Impl ;
StateMethod = NoState ; 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) SID_DOC_LOADING // ole(no) api(final/play/norec)
[ [
StateMethod = StateProps_Impl ; StateMethod = StateProps_Impl ;
] ]
SID_IMG_LOADING // ole(no) api(final/play/norec)
[
StateMethod = StateProps_Impl ;
]
SID_VERSION SID_VERSION
[ [
ExecMethod = ExecFile_Impl; ExecMethod = ExecFile_Impl;
......
...@@ -194,6 +194,10 @@ interface Window ...@@ -194,6 +194,10 @@ interface Window
interface BrowseWindow : Window interface BrowseWindow : Window
{ {
SID_ACTIVATE // ole(no) api(final/play/rec)
[
// Implementations in Subclasses
]
SID_NEWWINDOW // ole(no) api(play/rec) SID_NEWWINDOW // ole(no) api(play/rec)
[ [
ExecMethod = ExecView_Impl ; ExecMethod = ExecView_Impl ;
...@@ -234,6 +238,16 @@ interface BrowseWindow : Window ...@@ -234,6 +238,16 @@ interface BrowseWindow : Window
ExecMethod = ExecView_Impl ; ExecMethod = ExecView_Impl ;
StateMethod = StateView_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 interface TopWindow : BrowseWindow
...@@ -263,6 +277,11 @@ interface TopWindow : BrowseWindow ...@@ -263,6 +277,11 @@ interface TopWindow : BrowseWindow
ExecMethod = INetExecute_Impl ; ExecMethod = INetExecute_Impl ;
StateMethod = INetState_Impl ; StateMethod = INetState_Impl ;
] ]
SID_CREATELINK // ole(no) api()
[
ExecMethod = INetExecute_Impl ;
StateMethod = INetState_Impl ;
]
SID_FOCUSURLBOX // ole(no) api(final/play/rec) SID_FOCUSURLBOX // ole(no) api(final/play/rec)
[ [
ExecMethod = INetExecute_Impl ; ExecMethod = INetExecute_Impl ;
...@@ -275,5 +294,17 @@ interface TopWindow : BrowseWindow ...@@ -275,5 +294,17 @@ interface TopWindow : BrowseWindow
shell SfxViewFrame shell SfxViewFrame
{ {
import TopWindow; 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,6 +77,46 @@ SfxBoolItem _SwitchViewShell2 SID_VIEWSHELL2 ...@@ -77,6 +77,46 @@ 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 SfxVoidItem About SID_ABOUT
() ()
[ [
...@@ -95,6 +135,24 @@ SfxVoidItem About SID_ABOUT ...@@ -95,6 +135,24 @@ 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 SfxBoolItem ActiveHelp SID_HELPBALLOONS
[ [
...@@ -151,6 +209,25 @@ SfxStringItem NewDoc SID_NEWDOC ...@@ -151,6 +209,25 @@ SfxStringItem NewDoc SID_NEWDOC
GroupId = SfxGroupId::Application; 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 SfxStringItem AddDirect SID_NEWDOCDIRECT
() ()
[ [
...@@ -543,6 +620,25 @@ SfxVoidItem ClearHistory SID_CLEARHISTORY ...@@ -543,6 +620,25 @@ SfxVoidItem ClearHistory SID_CLEARHISTORY
GroupId = SfxGroupId::Options; 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 SfxStringItem CloseDoc SID_CLOSEDOC
(SfxBoolItem saveChanges SID_CLOSEDOC_SAVE,SfxStringItem fileName SID_CLOSEDOC_FILENAME) (SfxBoolItem saveChanges SID_CLOSEDOC_SAVE,SfxStringItem fileName SID_CLOSEDOC_FILENAME)
[ [
...@@ -581,6 +677,25 @@ SfxVoidItem CloseWin SID_CLOSEWIN ...@@ -581,6 +677,25 @@ 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 SfxStringItem Comments SID_DOCINFO_COMMENTS
[ [
...@@ -1876,6 +1991,43 @@ SfxBoolItem IsLoading SID_DOC_LOADING ...@@ -1876,6 +1991,43 @@ 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 SfxVoidItem JumpToMark SID_JUMPTOMARK
(SfxStringItem Bookmark SID_JUMPTOMARK) (SfxStringItem Bookmark SID_JUMPTOMARK)
[ [
...@@ -1894,6 +2046,25 @@ SfxVoidItem JumpToMark SID_JUMPTOMARK ...@@ -1894,6 +2046,25 @@ 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 SfxStringItem LibLoaded SID_BASICIDE_LIBLOADED
(SfxUsrAnyItem Document SID_BASICIDE_ARG_DOCUMENT_MODEL,SfxStringItem LibName SID_BASICIDE_ARG_LIBNAME) (SfxUsrAnyItem Document SID_BASICIDE_ARG_DOCUMENT_MODEL,SfxStringItem LibName SID_BASICIDE_ARG_LIBNAME)
[ [
...@@ -1967,6 +2138,25 @@ SfxStringItem LibSelector SID_BASICIDE_LIBSELECTOR ...@@ -1967,6 +2138,25 @@ 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 SfxVoidItem LoadBasic SID_BASICLOAD
() ()
[ [
...@@ -2005,6 +2195,82 @@ SfxVoidItem LoadEvents SID_CONFIGEVENT ...@@ -2005,6 +2195,82 @@ 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
(SfxScriptOrganizerItem ScriptOrganizer SID_SCRIPTORGANIZER) (SfxScriptOrganizerItem ScriptOrganizer SID_SCRIPTORGANIZER)
[ [
...@@ -2843,6 +3109,25 @@ SfxVoidItem PasteOnlyValue SID_PASTE_ONLY_VALUE ...@@ -2843,6 +3109,25 @@ 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 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) (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)
[ [
...@@ -3399,6 +3684,25 @@ SfxVoidItem ImportDialog SID_IMPORT_DIALOG ...@@ -3399,6 +3684,25 @@ 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 SfxVoidItem SbxDeleted SID_BASICIDE_SBXDELETED
(SbxItem Sbx SID_BASICIDE_ARG_SBX) (SbxItem Sbx SID_BASICIDE_ARG_SBX)
[ [
...@@ -3618,6 +3922,24 @@ SfxStringItem SendViaBluetooth SID_BLUETOOTH_SENDDOC ...@@ -3618,6 +3922,24 @@ 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 SendMailDocAsMS SID_MAIL_SENDDOCASMS
(SfxStringItem Recipient SID_MAIL_RECIPIENT,SfxStringItem Subject SID_MAIL_SUBJECT,SfxStringItem MailText SID_MAIL_TEXT,SfxUInt16Item Priority SID_MAIL_PRIORITY) (SfxStringItem Recipient SID_MAIL_RECIPIENT,SfxStringItem Subject SID_MAIL_SUBJECT,SfxStringItem MailText SID_MAIL_TEXT,SfxUInt16Item Priority SID_MAIL_PRIORITY)
[ [
...@@ -3655,6 +3977,44 @@ SfxStringItem SendMailDocAsOOo SID_MAIL_SENDDOCASOOO ...@@ -3655,6 +3977,44 @@ 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 SfxVoidItem ShowSbx SID_BASICIDE_SHOWSBX
(SbxItem Sbx SID_BASICIDE_ARG_SBX) (SbxItem Sbx SID_BASICIDE_ARG_SBX)
[ [
...@@ -4589,6 +4949,24 @@ SfxVoidItem InternetDialog SID_INET_DLG ...@@ -4589,6 +4949,24 @@ 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 SfxVoidItem AutoPilotAddressDataSource SID_ADDRESS_DATA_SOURCE
() ()
[ [
......
...@@ -34,6 +34,11 @@ interface View ...@@ -34,6 +34,11 @@ interface View
ExecMethod = ExecMisc_Impl ; ExecMethod = ExecMisc_Impl ;
StateMethod = GetState_Impl ; StateMethod = GetState_Impl ;
] ]
SID_MAIL_SENDDOCASFORMAT // ole(no) api(todo)
[
ExecMethod = ExecMisc_Impl ;
StateMethod = GetState_Impl ;
]
SID_MAIL_SENDDOCASMS // ole(no) api(todo) SID_MAIL_SENDDOCASMS // ole(no) api(todo)
[ [
ExecMethod = ExecMisc_Impl ; ExecMethod = ExecMisc_Impl ;
......
...@@ -324,12 +324,45 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq ) ...@@ -324,12 +324,45 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq )
bool bDone = false; bool bDone = false;
switch ( rReq.GetSlot() ) switch ( rReq.GetSlot() )
{ {
case SID_SETOPTIONS:
{
if( rReq.GetArgs() )
SetOptions_Impl( *rReq.GetArgs() );
break;
}
case SID_QUITAPP: case SID_QUITAPP:
case SID_LOGOUT:
{ {
// protect against reentrant calls // protect against reentrant calls
if ( pImpl->bInQuit ) if ( pImpl->bInQuit )
return; 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 // try from nested requests again after 100ms
if( Application::GetDispatchLevel() > 1 ) if( Application::GetDispatchLevel() > 1 )
{ {
...@@ -361,6 +394,10 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq ) ...@@ -361,6 +394,10 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq )
} }
case SID_CONFIG: case SID_CONFIG:
case SID_TOOLBOXOPTIONS:
case SID_CONFIGSTATUSBAR:
case SID_CONFIGMENU:
case SID_CONFIGACCEL:
case SID_CONFIGEVENT: case SID_CONFIGEVENT:
{ {
SfxAbstractDialogFactory* pFact = SfxAbstractDialogFactory* pFact =
...@@ -399,6 +436,40 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq ) ...@@ -399,6 +436,40 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq )
break; 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: case SID_SAVEDOCS:
{ {
bool bOK = true; bool bOK = true;
...@@ -958,6 +1029,10 @@ void SfxApplication::MiscState_Impl(SfxItemSet &rSet) ...@@ -958,6 +1029,10 @@ void SfxApplication::MiscState_Impl(SfxItemSet &rSet)
} }
case SID_CONFIG: case SID_CONFIG:
case SID_TOOLBOXOPTIONS:
case SID_CONFIGSTATUSBAR:
case SID_CONFIGMENU:
case SID_CONFIGACCEL:
case SID_CONFIGEVENT: case SID_CONFIGEVENT:
{ {
if( SvtMiscOptions().DisableUICustomization() ) if( SvtMiscOptions().DisableUICustomization() )
...@@ -988,6 +1063,15 @@ void SfxApplication::MiscState_Impl(SfxItemSet &rSet) ...@@ -988,6 +1063,15 @@ void SfxApplication::MiscState_Impl(SfxItemSet &rSet)
} }
break; 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: case SID_SAVEDOCS:
{ {
bool bModified = false; bool bModified = false;
...@@ -1485,6 +1569,23 @@ void SfxApplication::OfaExec_Impl( SfxRequest& rReq ) ...@@ -1485,6 +1569,23 @@ void SfxApplication::OfaExec_Impl( SfxRequest& rReq )
break; break;
#endif // HAVE_FEATURE_SCRIPTING #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: case SID_AUTO_CORRECT_DLG:
{ {
SfxAbstractDialogFactory* pFact = SfxAbstractDialogFactory::Create(); SfxAbstractDialogFactory* pFact = SfxAbstractDialogFactory::Create();
......
...@@ -244,8 +244,16 @@ void SfxObjectShell::PrintExec_Impl(SfxRequest &rReq) ...@@ -244,8 +244,16 @@ 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) bool SfxObjectShell::APISaveAs_Impl(const OUString& aFileName, SfxItemSet& rItemSet)
...@@ -1103,6 +1111,14 @@ void SfxObjectShell::ExecProps_Impl(SfxRequest &rReq) ...@@ -1103,6 +1111,14 @@ void SfxObjectShell::ExecProps_Impl(SfxRequest &rReq)
case SID_DOCINFO_COMMENTS : case SID_DOCINFO_COMMENTS :
getDocProperties()->setDescription( static_cast<const SfxStringItem&>(rReq.GetArgs()->Get(rReq.GetSlot())).GetValue() ); getDocProperties()->setDescription( static_cast<const SfxStringItem&>(rReq.GetArgs()->Get(rReq.GetSlot())).GetValue() );
break; 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;
}
} }
} }
...@@ -1128,6 +1144,19 @@ void SfxObjectShell::StateProps_Impl(SfxItemSet &rSet) ...@@ -1128,6 +1144,19 @@ void SfxObjectShell::StateProps_Impl(SfxItemSet &rSet)
break; 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: case SID_DOCFULLNAME:
{ {
rSet.Put( SfxStringItem( SID_DOCFULLNAME, GetTitle(SFX_TITLE_FULLNAME) ) ); rSet.Put( SfxStringItem( SID_DOCFULLNAME, GetTitle(SFX_TITLE_FULLNAME) ) );
...@@ -1146,16 +1175,44 @@ void SfxObjectShell::StateProps_Impl(SfxItemSet &rSet) ...@@ -1146,16 +1175,44 @@ void SfxObjectShell::StateProps_Impl(SfxItemSet &rSet)
break; 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: case SID_DOC_LOADING:
rSet.Put( SfxBoolItem( nSID, ! ( pImpl->nLoadedFlags & SfxLoadedFlags::MAINDOCUMENT ) ) ); rSet.Put( SfxBoolItem( nSID, ! ( pImpl->nLoadedFlags & SfxLoadedFlags::MAINDOCUMENT ) ) );
break; 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,6 +2038,8 @@ void SfxViewFrame::ExecView_Impl ...@@ -2038,6 +2038,8 @@ void SfxViewFrame::ExecView_Impl
case SID_VIEWSHELL0: case SID_VIEWSHELL0:
case SID_VIEWSHELL1: case SID_VIEWSHELL1:
case SID_VIEWSHELL2: case SID_VIEWSHELL2:
case SID_VIEWSHELL3:
case SID_VIEWSHELL4:
{ {
const sal_uInt16 nViewNo = rReq.GetSlot() - SID_VIEWSHELL0; const sal_uInt16 nViewNo = rReq.GetSlot() - SID_VIEWSHELL0;
bool bSuccess = SwitchToViewShell_Impl( nViewNo, true ); bool bSuccess = SwitchToViewShell_Impl( nViewNo, true );
...@@ -2184,6 +2186,8 @@ void SfxViewFrame::StateView_Impl ...@@ -2184,6 +2186,8 @@ void SfxViewFrame::StateView_Impl
case SID_VIEWSHELL0: case SID_VIEWSHELL0:
case SID_VIEWSHELL1: case SID_VIEWSHELL1:
case SID_VIEWSHELL2: case SID_VIEWSHELL2:
case SID_VIEWSHELL3:
case SID_VIEWSHELL4:
{ {
sal_uInt16 nViewNo = nWhich - SID_VIEWSHELL0; sal_uInt16 nViewNo = nWhich - SID_VIEWSHELL0;
if ( GetObjectShell()->GetFactory().GetViewFactoryCount() > if ( GetObjectShell()->GetFactory().GetViewFactoryCount() >
......
...@@ -155,6 +155,39 @@ void SfxViewFrame::Exec_Impl(SfxRequest &rReq ) ...@@ -155,6 +155,39 @@ void SfxViewFrame::Exec_Impl(SfxRequest &rReq )
switch ( rReq.GetSlot() ) 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 : case SID_NEWDOCDIRECT :
{ {
const SfxStringItem* pFactoryItem = rReq.GetArg<SfxStringItem>(SID_NEWDOCDIRECT); const SfxStringItem* pFactoryItem = rReq.GetArg<SfxStringItem>(SID_NEWDOCDIRECT);
...@@ -266,6 +299,9 @@ void SfxViewFrame::GetState_Impl( SfxItemSet &rSet ) ...@@ -266,6 +299,9 @@ void SfxViewFrame::GetState_Impl( SfxItemSet &rSet )
break; break;
} }
case SID_SHOWPOPUPS :
break;
case SID_OBJECT: case SID_OBJECT:
if ( GetViewShell() && GetViewShell()->GetVerbs().getLength() && !GetObjectShell()->IsInPlaceActive() ) if ( GetViewShell() && GetViewShell()->GetVerbs().getLength() && !GetObjectShell()->IsInPlaceActive() )
{ {
...@@ -293,6 +329,12 @@ void SfxViewFrame::INetExecute_Impl( SfxRequest &rRequest ) ...@@ -293,6 +329,12 @@ void SfxViewFrame::INetExecute_Impl( SfxRequest &rRequest )
case SID_BROWSE_BACKWARD: case SID_BROWSE_BACKWARD:
OSL_FAIL( "SfxViewFrame::INetExecute_Impl: SID_BROWSE_FORWARD/BACKWARD are dead!" ); OSL_FAIL( "SfxViewFrame::INetExecute_Impl: SID_BROWSE_FORWARD/BACKWARD are dead!" );
break; break;
case SID_CREATELINK:
{
/*! (pb) we need new implementation to create a link
*/
break;
}
case SID_FOCUSURLBOX: case SID_FOCUSURLBOX:
{ {
SfxStateCache *pCache = GetBindings().GetAnyStateCache_Impl( SID_OPENURL ); SfxStateCache *pCache = GetBindings().GetAnyStateCache_Impl( SID_OPENURL );
...@@ -316,6 +358,12 @@ void SfxViewFrame::INetState_Impl( SfxItemSet &rItemSet ) ...@@ -316,6 +358,12 @@ void SfxViewFrame::INetState_Impl( SfxItemSet &rItemSet )
{ {
rItemSet.DisableItem( SID_BROWSE_FORWARD ); rItemSet.DisableItem( SID_BROWSE_FORWARD );
rItemSet.DisableItem( SID_BROWSE_BACKWARD ); 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*/ ) void SfxViewFrame::Activate( bool /*bMDI*/ )
......
...@@ -444,6 +444,7 @@ void SfxViewShell::ExecMisc_Impl( SfxRequest &rReq ) ...@@ -444,6 +444,7 @@ void SfxViewShell::ExecMisc_Impl( SfxRequest &rReq )
case SID_MAIL_SENDDOCASOOO: case SID_MAIL_SENDDOCASOOO:
case SID_MAIL_SENDDOCASPDF: case SID_MAIL_SENDDOCASPDF:
case SID_MAIL_SENDDOC: case SID_MAIL_SENDDOC:
case SID_MAIL_SENDDOCASFORMAT:
{ {
SfxObjectShell* pDoc = GetObjectShell(); SfxObjectShell* pDoc = GetObjectShell();
if ( pDoc && pDoc->QueryHiddenInformation( if ( pDoc && pDoc->QueryHiddenInformation(
...@@ -656,6 +657,7 @@ void SfxViewShell::GetState_Impl( SfxItemSet &rSet ) ...@@ -656,6 +657,7 @@ void SfxViewShell::GetState_Impl( SfxItemSet &rSet )
#if HAVE_FEATURE_MACOSX_SANDBOX #if HAVE_FEATURE_MACOSX_SANDBOX
case SID_BLUETOOTH_SENDDOC: case SID_BLUETOOTH_SENDDOC:
case SID_MAIL_SENDDOC: case SID_MAIL_SENDDOC:
case SID_MAIL_SENDDOCASFORMAT:
case SID_MAIL_SENDDOCASMS: case SID_MAIL_SENDDOCASMS:
case SID_MAIL_SENDDOCASOOO: case SID_MAIL_SENDDOCASOOO:
case SID_MAIL_SENDDOCASPDF: 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