Re: commit HEAD: hidden text stuff

From: Martin Sevior (msevior@mccubbin.ph.unimelb.edu.au)
Date: Mon May 27 2002 - 10:51:23 EDT

  • Next message: Jesper Skov: "AbiWord Weekly News #93 (2002, week 21) released"

    Hi Tomas,
            This is all really, really cool. This code could be reused to do
    outlining. For this we just need to collapse blocklayouts between
    different heading on a list.

    If we're (you're!) clever we can reuse the cursor motion code you need for
    hiding text to also skip collapsed fl_BlockLayouts. There is a method
    already repesent in in the fl_ContainerLayout heiracy, "isCollapsed()",
    which is set true upon collapsing (removing lines) a fl_BlockLayout.

    So to implement outlining we just need a method to scan and collapse
    blocks between specified list elements, some simple GUI controls (they
    could just be a couple of extra buttons on the current List Dialog) and
    some code in fv_View to make sure the cursor is skipped past collapsed
    blocks with cursor motion keys.

    Cheers

    Martin

    For outlining we need methods to hide paragraphs

    On Mon, 27 May 2002, Tomas Frydrych wrote:

    >
    > bits and pieces toward the hidden text handling:
    >
    > the property that contains "hiddenness" is called "display", with
    > possible values "none" for hidden text and "" for normal text.
    >
    > added variables and fuctions for hidden property to
    > xap_Dlg_FontChooser; changes to platform code required
    >
    > added toggleHidden() to edit methods; a toolbar button needs to be
    > added.
    >
    > made fp_Run::canContainPoint into non-virtual and added new
    > protected virtual _canContainPoint().
    >
    > files: fp_Run.h/cpp, fp_TextRun.cpp, fp_Line.cpp,
    > fv_View_protected.cpp, pp_Property.cpp, ap_EditMethods.cpp,
    > xap_Dlg_FontChooser.h/cpp
    >
    > Tomas
    >



    This archive was generated by hypermail 2.1.4 : Mon May 27 2002 - 10:57:51 EDT