Kaydet (Commit) 6108d06c authored tarafından Matúš Kukan's avatar Matúš Kukan

tubes: add File -> Collaborate menu entry to launch contacts widget

üst 603c2cb9
...@@ -763,6 +763,11 @@ ...@@ -763,6 +763,11 @@
<value xml:lang="en-US">Sheet Area Input Field</value> <value xml:lang="en-US">Sheet Area Input Field</value>
</prop> </prop>
</node> </node>
<node oor:name=".uno:Collaborate" oor:op="replace">
<prop oor:name="Label" oor:type="xs:string">
<value xml:lang="en-US">Collaborate...</value>
</prop>
</node>
<node oor:name=".uno:UnderlineNone" oor:op="replace"> <node oor:name=".uno:UnderlineNone" oor:op="replace">
<prop oor:name="Label" oor:type="xs:string"> <prop oor:name="Label" oor:type="xs:string">
<value xml:lang="en-US">Underline: Off</value> <value xml:lang="en-US">Underline: Off</value>
......
...@@ -158,6 +158,7 @@ ...@@ -158,6 +158,7 @@
#define SID_CHOOSE_DESIGN (SC_VIEW_START + 82) #define SID_CHOOSE_DESIGN (SC_VIEW_START + 82)
#define SID_EURO_CONVERTER (SC_VIEW_START + 83) #define SID_EURO_CONVERTER (SC_VIEW_START + 83)
#define SID_COLLABORATION (SC_VIEW_START + 84)
#define SID_EXTERNAL_SOURCE (SC_VIEW_START + 85) #define SID_EXTERNAL_SOURCE (SC_VIEW_START + 85)
#define SID_SC_INPUT_TEXTWYSIWYG (SC_VIEW_START + 86) #define SID_SC_INPUT_TEXTWYSIWYG (SC_VIEW_START + 86)
......
...@@ -181,6 +181,7 @@ interface CellSelection ...@@ -181,6 +181,7 @@ interface CellSelection
SID_INSERT_POSTIT [ ExecMethod = ExecuteEdit; StateMethod = GetCellState; ] SID_INSERT_POSTIT [ ExecMethod = ExecuteEdit; StateMethod = GetCellState; ]
SID_COLLABORATION [ ExecMethod = Execute; ]
SID_TABOP [ ExecMethod = ExecuteEdit; StateMethod = GetState; ] SID_TABOP [ ExecMethod = ExecuteEdit; StateMethod = GetState; ]
SID_CONSOLIDATE [ ExecMethod = ExecuteEdit; StateMethod = GetState; ] SID_CONSOLIDATE [ ExecMethod = ExecuteEdit; StateMethod = GetState; ]
FID_INSERT_NAME [ ExecMethod = ExecuteEdit; StateMethod = GetState; ] FID_INSERT_NAME [ ExecMethod = ExecuteEdit; StateMethod = GetState; ]
......
...@@ -2647,6 +2647,31 @@ SfxVoidItem FocusCellAddress FID_FOCUS_POSWND ...@@ -2647,6 +2647,31 @@ SfxVoidItem FocusCellAddress FID_FOCUS_POSWND
GroupId = GID_APPLICATION; GroupId = GID_APPLICATION;
] ]
//--------------------------------------------------------------------------
SfxVoidItem Collaborate SID_COLLABORATION
()
[
/* flags: */
AutoUpdate = FALSE,
Cachable = Cachable,
FastCall = FALSE,
HasCoreId = FALSE,
HasDialog = TRUE,
ReadOnlyDoc = TRUE,
Toggle = FALSE,
Container = FALSE,
RecordAbsolute = FALSE,
RecordPerSet;
Synchron;
/* config: */
AccelConfig = TRUE,
MenuConfig = TRUE,
StatusBarConfig = FALSE,
ToolBoxConfig = TRUE,
GroupId = GID_FORMAT;
]
//-------------------------------------------------------------------------- //--------------------------------------------------------------------------
SfxVoidItem FormatCellDialog FID_CELL_FORMAT SfxVoidItem FormatCellDialog FID_CELL_FORMAT
() ()
......
...@@ -52,6 +52,13 @@ ...@@ -52,6 +52,13 @@
#include "markdata.hxx" #include "markdata.hxx"
#include "scabstdlg.hxx" #include "scabstdlg.hxx"
#ifdef ENABLE_TELEPATHY
#include <tubes/manager.hxx>
namespace tubes {
void createContacts( const TeleManager &rContacts );
}
#endif
#define IS_EDITMODE() GetViewData()->HasEditView( GetViewData()->GetActivePart() ) #define IS_EDITMODE() GetViewData()->HasEditView( GetViewData()->GetActivePart() )
using sc::HMMToTwips; using sc::HMMToTwips;
...@@ -111,6 +118,12 @@ void ScCellShell::Execute( SfxRequest& rReq ) ...@@ -111,6 +118,12 @@ void ScCellShell::Execute( SfxRequest& rReq )
case SID_ATTR_SIZE://XXX ??? case SID_ATTR_SIZE://XXX ???
break; break;
case SID_COLLABORATION:
#ifdef ENABLE_TELEPATHY
tubes::createContacts( TeleManager::get( true ) );
#endif
break;
case SID_STATUS_SELMODE: case SID_STATUS_SELMODE:
if ( pReqArgs ) if ( pReqArgs )
{ {
......
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
<menu:menuitem menu:id=".uno:Reload"/> <menu:menuitem menu:id=".uno:Reload"/>
<menu:menuitem menu:id=".uno:VersionDialog"/> <menu:menuitem menu:id=".uno:VersionDialog"/>
<menu:menuseparator/> <menu:menuseparator/>
<menu:menuitem menu:id=".uno:Collaborate"/>
<menu:menuseparator/>
<menu:menuitem menu:id=".uno:ExportTo"/> <menu:menuitem menu:id=".uno:ExportTo"/>
<menu:menuitem menu:id=".uno:ExportToPDF"/> <menu:menuitem menu:id=".uno:ExportToPDF"/>
<menu:menu menu:id=".uno:SendTo"> <menu:menu menu:id=".uno:SendTo">
......
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