Vertical alignment of line inside the table cell

From: bala ajanthan <balaajanthan_at_gmail.com>
Date: Sun Jul 25 2010 - 16:19:52 CEST

Hi,
i am a student from University of Moratuwa. I would like to contribute
to AbiWord.i tried to implement vertical alignment to the line of
words inside the table cell but I have failed to achieve that. I have
added a method in ap_EditMethods.cpp and added a menu item Top in
format=>alignment. When i clicked format=>align=>top, i got debug
message but nothing changed in table.
Defun1(alignTop)
{
            CHECK_FRAME;
            ABIWORD_VIEW;
            UT_return_val_if_fail(pView,false);
            if (pView->getDocument()->areStylesLocked())
                        return true;
            const gchar * properties[] = { "vert-align", "10", 0};
            pView->setBlockFormat(properties);
           UT_DEBUGMSG(("to be implemeneted by mine"));
            return true;
}
i think Abiword frame work already has vert-align property in
pp_property and fp_TableContainer has setVertAlign().how can I use
these two? Or can I set the y position of the line inside a table cell
by calculating the height of the cell for top and bottom aligning?
Regards
B.Ajanthan
University Of Moratuwa,
Sri Lanka.
Received on Sun Jul 25 16:20:05 2010

This archive was generated by hypermail 2.1.8 : Sun Jul 25 2010 - 16:20:05 CEST