I have the following(attached) <b>Reply</b> from one of the developers for my Earlier Query. But I am slightly confused with my approach in solving the problem:<div><br></div><div>After testing some code instances ,I have found out that code  for "Insert->Fields->Slide Name" (impress) can be added here <b> drviewsb.cxx file</b></div>

<div><br></div><div>And Using the method define at  <b>drviewsb.cxx</b>, </div><div><br></div><div>I am planning to follow this approach:</div><div><br></div><div>(1)For getting a <b>Slide Name. </b>Create a class (similar to the class) which is define at <b>flditem.hxx</b> .  </div>
<div><br></div>
<div>(2)Use the class created above in deriving the SvxFieldItem( )  at <b>drviewsb.cxx</b> .</div><div><br></div><div>(3)As I am not familiar with UNO references used in the <b>flditem.hxx</b> , I am not sure whether this is a right approach or some other approach is available.</div>
<div><br></div><div>So if someone can guide me with the  approach ,it would be really helpful.</div><div><br></div><div>
<b>drviewsb.cxx file</b> -<a href="http://opengrok.libreoffice.org/xref/core/sd/source/ui/view/drviewsb.cxx#520" target="_blank">http://opengrok.libreoffice.org/xref/core/sd/source/ui/view/drviewsb.cxx#520</a></div><div>
<br></div><div><b>flditem.hxx</b>- <a href="http://opengrok.libreoffice.org/xref/core/editeng/inc/editeng/flditem.hxx#182" target="_blank">http://opengrok.libreoffice.org/xref/core/editeng/inc/editeng/flditem.hxx#182</a></div>
<div><br>Eagerly waiting for the needed answer.<br><br>Regards,</div><div>Vishv<br><br><b>Reply</b><br><div class="gmail_quote"><div><span style="background-color:rgb(255,255,204)"> </span></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span style="background-color:rgb(255,255,204)">In order to actually implement the feature, you should follow the<br>

SID_INSERT_FLD_PAGE use cases in .cxx files also:<br>
<a href="http://opengrok.libreoffice.org/search?q=&project=core&defs=&refs=SID_INSERT_FLD_PAGE&path=%2Fcore%2Fsd%2Fsource%2Fui%2Fview%2F&hist=" target="_blank">http://opengrok.libreoffice.org/search?q=&project=core&defs=&refs=SID_INSERT_FLD_PAGE&path=%2Fcore%2Fsd%2Fsource%2Fui%2Fview%2F&hist=</a><br>


<br>
Here you can see what "insert field page" does (when in draw view):<br>
<a href="http://opengrok.libreoffice.org/xref/core/sd/source/ui/view/drviewsb.cxx#484" target="_blank">http://opengrok.libreoffice.org/xref/core/sd/source/ui/view/drviewsb.cxx#484</a><br>
<br>
As far as I understand, you should derive an SvxFieldItem for hold a<br>
text data - but I'm not sure at all. Maybe you should check some<br>
Writer fields...<br>
<br>
You can get slide name by SdPage::GetName()<br>
<a href="http://opengrok.libreoffice.org/xref/core/sd/inc/sdpage.hxx#282" target="_blank">http://opengrok.libreoffice.org/xref/core/sd/inc/sdpage.hxx#282</a><br>
<a href="http://opengrok.libreoffice.org/xref/core/sd/source/core/sdpage.cxx#2508" target="_blank">http://opengrok.libreoffice.org/xref/core/sd/source/core/sdpage.cxx#2508</a><br>
<br>
while you can retrieve the SdPage by index here SdDrawDocument::GetSdPage()<br>
<a href="http://opengrok.libreoffice.org/xref/core/sd/source/core/drawdoc2.cxx#199" target="_blank">http://opengrok.libreoffice.org/xref/core/sd/source/core/drawdoc2.cxx#199</a><br>
<br>
Maybe you can get some clues here<br>
<a href="http://opengrok.libreoffice.org/xref/core/sd/source/ui/view/drviewsb.cxx#710" target="_blank">http://opengrok.libreoffice.org/xref/core/sd/source/ui/view/drviewsb.cxx#710</a><br>
<br><br>
Regards.<br></span>
<br>
2013/2/13 Vishv Brahmbhatt <<a href="mailto:vishvbrahmbhatt19@gmail.com" target="_blank">vishvbrahmbhatt19@gmail.com</a>>:<br>
<div><div>> Hi,<br>
> I need help for this bug <a href="https://bugs.freedesktop.org/show_bug.cgi?id=47302" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=47302</a><br>
> .I am little inexperienced at scripting(xml). So I want help for my Query.<br>
><br>
> As per  comment#1 at the above link.I have done following steps:<br>
><br>
> 1)Added a menuitem with label "~Slide Name" at<br>
> <a href="http://opengrok.libreoffice.org/xref/core/scripting/workben/bindings/impressmenubar.xml#190" target="_blank">http://opengrok.libreoffice.org/xref/core/scripting/workben/bindings/impressmenubar.xml#190</a>.<br>


><br>
> 2)Added a node oor:name=".uno:InsertSlideField" with value="~Slide Name" at<br>
> <a href="http://opengrok.libreoffice.org/xref/core/officecfg/registry/data/org/openoffice/Office/UI/DrawImpressCommands.xcu#534" target="_blank">http://opengrok.libreoffice.org/xref/core/officecfg/registry/data/org/openoffice/Office/UI/DrawImpressCommands.xcu#534</a><br>


><br>
> 3)Added a menuitem with menu:id=".uno:InsertSlideField" at<br>
> <a href="http://opengrok.libreoffice.org/xref/core/sd/uiconfig/simpress/menubar/menubar.xml#147" target="_blank">http://opengrok.libreoffice.org/xref/core/sd/uiconfig/simpress/menubar/menubar.xml#147</a><br>
><br>
> 4)Define SID_INSERT_FLD_SLIDE at<br>
> <a href="http://opengrok.libreoffice.org/xref/core/sd/inc/app.hrc#379" target="_blank">http://opengrok.libreoffice.org/xref/core/sd/inc/app.hrc#379</a><br>
><br>
> 5)Added a function SfxVoidItem InsertSlideField SID_INSERT_FLD_SLIDE at<br>
> <a href="http://opengrok.libreoffice.org/xref/core/sd/sdi/sdraw.sdi#3472" target="_blank">http://opengrok.libreoffice.org/xref/core/sd/sdi/sdraw.sdi#3472</a><br>
><br>
><br>
> Using above procedure I am able to get "~Slide Name" option in<br>
> Insert->Fields->Slide Name.But it is not active/working.<br>
><br>
> So here is my Query:<br>
><br>
> (1)Do I need to use some helper functions for viewing & getting "Slide Name"<br>
> ?<br>
><br>
> If yes ,then which function do I have to use and where can I use it to make<br>
> "Slide Name" option active?<br>
><br>
> Or I have to make some changes in the above given steps?<br>
><br>
><br>
> Eagerly waiting to get some answers in this query.<br>
><br>
> Regards,<br>
> Vishv<br>
><br>
</div></div>> _______________________________________________<br>
> LibreOffice mailing list<br>
> <a href="mailto:LibreOffice@lists.freedesktop.org" target="_blank">LibreOffice@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/libreoffice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libreoffice</a><br>
><br>
</blockquote></div><br></div>