<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:michael.stahl@cib.de" title="Michael Stahl (CIB) <michael.stahl@cib.de>"> <span class="fn">Michael Stahl (CIB)</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - NAVIGATOR, "copy outline to clipboard" should be available in context menu"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=123395">bug 123395</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Keywords</td>
           <td>needsDevEval
           </td>
           <td>difficultyBeginner, skillCpp, skillUI, topicUI
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>michael.stahl@cib.de
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - NAVIGATOR, "copy outline to clipboard" should be available in context menu"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=123395#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - NAVIGATOR, "copy outline to clipboard" should be available in context menu"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=123395">bug 123395</a>
              from <span class="vcard"><a class="email" href="mailto:michael.stahl@cib.de" title="Michael Stahl (CIB) <michael.stahl@cib.de>"> <span class="fn">Michael Stahl (CIB)</span></a>
</span></b>
        <pre>the dispatch command to execute is:

UNO dispatch:
".uno:SendOutlineToClipboard"
SDI definition:
sw/sdi/swriter.sdi:SfxVoidItem SendOutlineToClipboard FN_OUTLINE_TO_CLIPBOARD

the navigator content tree is in this file:

sw/source/uibase/utlui/content.cxx:

this function creates the entries in the context menu:
SwContentTree::CreateContextMenu()
need to add a new one of course!

this function is called when the context menu is clicked:
SwContentTree::ExecuteContextMenuAction()
on the new action, it should get a SfxDispatcher from the "m_pActiveShell",
and dispatch the SendOutlineToClipboard command.

some docs about dispatch-api:
<a href="https://wiki.openoffice.org/wiki/Framework/Article/Implementation_of_the_Dispatch_API_In_SFX2">https://wiki.openoffice.org/wiki/Framework/Article/Implementation_of_the_Dispatch_API_In_SFX2</a>

=> easy-hack</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>