@Caolán: help in widget UI.

Olivier Hallot olivier.hallot at documentfoundation.org
Mon Jun 3 17:35:52 PDT 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Caolán

I am trying to convert the paragraph drop caps tab page into the new
widgets UI, but I found a code layout that does not fit into the usual
scheme.

In other situations, the custom widget is defined in another file and
they go to the dll. But here the picture SwDropCapsPict belongs to the
same file and I don't know how to connect to the widget.

I left commented the lines I am investigating.

File concerned is sw/source/ui/chrdlg/drpcps.cxx


- -------------------%<----------------------------
SwDropCapsPage::SwDropCapsPage(Window *pParent, const SfxItemSet &rSet) :

    SfxTabPage(pParent,
"DropCapPage","modules/swriter/ui/dropcappage.ui", rSet),

    //pPict         (new SwDropCapsPict(this, SW_RES(CNT_PICT))),
    bModified(sal_False),
    bFormat(sal_True),
    rSh(::GetActiveView()->GetWrtShell())
{
    get(m_pDropCapsBox,"checkCB_SWITCH");
    get(m_pWholeWordCB,"checkCB_WORD");
    get(m_pDropCapsField,"spinFLD_DROPCAPS");
    get(m_pLinesField,"spinFLD_LINES");
    get(m_pDistanceField,"spinFLD_DISTANCE");
    get(m_pContentFL,"frameFL_CONTENT");
    get(m_pTextText,"labelTXT_TEXT");
    get(m_pTextEdit,"entryEDT_TEXT");
    get(m_pTemplateBox,"comboBOX_TEMPLATE");

    //pPict = new SwDropCapsPict(this, WB_BORDER);

    //get(pPict,"drawingareaWN_EXAMPLE");


- -------------------%<----------------------------

Thank you

- -- 
Olivier Hallot
Founder, Board of Directors Member - The Document Foundation
The Document Foundation, Zimmerstr. 69, 10117 Berlin, Germany
Fundação responsável civilmente, de acordo com o direito civil
Detalhes Legais: http://www.documentfoundation.org/imprint
LibreOffice translation leader for Brazilian Portuguese
+55-21-8822-8812
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQEcBAEBAgAGBQJRrTZoAAoJEJp3R7nH3vLx1swH/jsZWfz31bD9Q7NHcJYOp17z
j4OEDZlAquUwnJXmnT/2BsJ4/qYoYS39XIi2sVOC9knVSOQHeQZ6kTMrK5l9/SWo
7NeHH8j8D9doHcd5kc76W02CMMl92lc54ixBOFETsLG7ApDmxcWcykhy8FjEDBXo
Peiw+4k6EVVApGNWJS2dD6+5iP6Ma+bk0Gdj+z0VhN8BQbXmFKWIFK+X/Tgzrft1
3UVSJV4c32HnaQfHE61k7UUGmq1NFm4yPDFht+84/A0pGK6G4hhq36tYqDIXqhsk
qzeVLaJl7chWG9kqw7Sd/GbLBG3uyi1COh9/Eo35/jDnf52xsjjjfvxFbquJsOE=
=5fpB
-----END PGP SIGNATURE-----


More information about the LibreOffice mailing list