World Library  
Flag as Inappropriate
Email this Article

Flake (software)

Article Id: WHEBN0014828224
Reproduction Date:

Title: Flake (software)  
Author: World Heritage Encyclopedia
Language: English
Subject: Calligra Suite, KOffice, KDE Platform, Calligra Plan, KWord
Collection: Calligra Suite, Computer Libraries, Kde Frameworks, Kde Platform
Publisher: World Heritage Encyclopedia

Flake (software)

Written in C++
License LGPL
Website /Flake/Libs/

Flake or a Vector Shape[1] is a programming library that is used in Calligra Suite and the KOffice 2 series. Flake provides the basic concept of a “shape”. To the end user a shape appears as some piece of content like an image or a text. A shape can be in any form (square, circle, etc.) and contain any kind of media since the Shape is responsible for drawing itself. All components of KOffice are being overhauled to use Flake as much as possible.[2]


The functionality of Flake is divided up between Shapes which display content, and Tools which manipulate content or the user interface. Different Shapes can be created to support different kinds of content, for example the text-shape in Calligra Words would support .txt and .odt formats while the KChart shape would just support chart related document standard like .odc. Shapes are packaged with a set of tools to manipulate that kind of content and UI elements that expose the functionality to the user. This provides an application with all the features it needs and also allows for easy embedding of Shapes in other applications. Shapes can load other shapes when needed, for example when images are in text documents the image shape will be loaded to handle the images.

Flake is the successor to the old design of embedding based on widgets in the KOffice 1 series. The widget embedding had three notable shortcomings, that widgets were always square, couldn't be rotated and were measured in pixels. All of these are corrected by Flake. Embedded document data can now be zoomed, rotated and skewed, be of any form and are measured in units like millimeters. Flake also improves on the original design in several areas, like its extensibility. For example in Google's Summer of Code 2007 Marijn Kruisselbrink created a MusicXML-based music notation Shape and Tools[3] Shapes can be made aware of other Shapes positions, moving an image through text will result in the text dynamically wrapping around the images.[4] Shapes can even be grouped together and made to behave like a single Shape. Flake also supports printing to PDF and has full support for anti-aliased painting for smoother text.[5]

See also


  1. ^
  2. ^ The KOffice Project – Release Goals for KOffice 2.0
  3. ^ Pencils Down for KOffice Summer of Code Students!
  4. ^ The Road to KDE 4: New KOffice Technologies
  5. ^ KOffice Wiki: Flake
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.