Results 1 to 1 of 1

Thread: Fop MiniScribus XSL-FO stable

  1. #1
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Fop MiniScribus XSL-FO stable

    I have release today my first stable QGraphicsView based Projekt... build on QT4.3 it run on MacOSX & Win32 Linux untested.. QGraphicsSceneMouseEvent on linux is not same as mac or win....

    Release on http://www.qt-apps.org/content/show....?content=67552 on Text Processing


    Description:
    XSL-FO Fop MiniScribus handle only apache FOP format based file on block-container (Floating Layer) element and is child, and export on pdf postscript , the next release on planing can export xhtml as floating layer ..( <div> each Layer are on QTextDocument )

    Features:
    - Inline SVG vector images ( instream-foreign-object )
    - Read all images supported from QT. Tiff,jpeg,gif,png,ppm, bmp.
    -Local or external http://... images ( fo:external-graphic) active on PDF.
    - Full support to Table Background color, cell color, spacing , padding,
    - Paragraph margin padding and inline formatting from avaiable fonts.
    - External link or internal by ID.
    - Document can render self or by Apache-fop java, on server or local.

    Changelog:
    11.10.07 version 0.5.8 / Set table cell / paragraph to default 0 / not 12pt top and 12 bottom space from default QTextDocument Set only selectable active item at top zindex/zvalue on the active QGraphicsScene ( append subclass GraphicsScene) on this case not having intersection problem from Floating Layer.

    To not having Intersection Layer i have subclass QGraphicsScene and i filter active only top Zindex / zValue...



    Qt Code:
    1. /* filter only item a top Zindex / zValue */
    2. bool GraphicsScene::WakeUp( const QPointF incomming )
    3. {
    4. QList<QGraphicsItem *> listing = QGraphicsScene::items(incomming);
    5. qreal thebest = 0; /* zindex on front */
    6. for (int o=0;o<listing.size();o++) {
    7. listing[o]->setSelected(false);
    8. listing[o]->setFlag(QGraphicsItem::ItemIsSelectable,false);
    9. thebest = qMax(listing[o]->zValue(),thebest);
    10. }
    11. /* activate item at top z-index zValue / not the down not visible!!!! */
    12. for (int e=0;e<listing.size();e++) {
    13. if (listing[e]->zValue() == thebest) {
    14. listing[e]->setFlag(QGraphicsItem::ItemIsSelectable,true);
    15. emit SelectOn(listing[e],thebest);
    16. return true;
    17. }
    18. }
    19. return false;
    20. }
    21. void GraphicsScene::mouseDoubleClickEvent ( QGraphicsSceneMouseEvent * event )
    22. {
    23. if (WakeUp(QPointF(event->scenePos().x(),event->scenePos().y()))) {
    24. event->setAccepted ( true ) ;
    25. clearSelection();
    26. }
    27. QGraphicsScene::mouseDoubleClickEvent(event);
    28. }
    To copy to clipboard, switch view to plain text mode 
    Attached Images Attached Images
    Attached Files Attached Files

Similar Threads

  1. Want a stable install
    By pshah.mumbai in forum Installation and Deployment
    Replies: 9
    Last Post: 10th October 2007, 08:38
  2. Qmenu Stable close on QTableWidget
    By patrik08 in forum Qt Programming
    Replies: 1
    Last Post: 17th July 2006, 11:03

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.