~ken-vandine/lo-menubar/ubuntu

« back to all changes in this revision

Viewing changes to MyJob.cxx

  • Committer: Alberto Ruiz
  • Date: 2011-02-18 14:37:23 UTC
  • Revision ID: alberto.ruiz@codethink.co.uk-20110218143723-7au0lwr5v5ka4k85
Tags: 0.0.1
Item activation now uses the CommandURL stored in the menuitem

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
        
132
132
        Reference < XDispatchHelper > *xdh = helper->xdh;
133
133
        Reference < XDispatchProvider > *dispProv = helper->dispProv;
134
 
        
135
 
        
136
134
 
137
 
        (*xdh)->executeDispatch ((*dispProv), OUString::createFromAscii(".uno:SaveAs"), OUString::createFromAscii(""), 0,  Sequence < PropertyValue > ());
 
135
        (*xdh)->executeDispatch ((*dispProv),
 
136
                                 OUString::createFromAscii(dbusmenu_menuitem_property_get (item, "CommandURL")),
 
137
                                 OUString::createFromAscii(""), 0,
 
138
                                 Sequence < PropertyValue > ());
138
139
}
139
140
 
140
141
Any SAL_CALL MyJob::execute( const Sequence< NamedValue >& aArguments )