filters
paragraph.cc
00001 /* This file is part of the KDE project 00002 * Copyright (C) 2003 Robert JACOLIN <rjacolin@ifrance.com> 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Library General Public 00006 * License as published by the Free Software Foundation; either 00007 * version 2 of the License, or (at your option) any later version. 00008 * 00009 * This library is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Library General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Library General Public License 00015 * along with this library; see the file COPYING.LIB. If not, write to 00016 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00017 * Boston, MA 02110-1301, USA. 00018 */ 00019 00020 #include "paragraph.h" 00021 #include <element.h> 00022 #include <qdom.h> 00023 00024 bool Paragraph::analyse(QPtrList<Element>* body) 00025 { 00026 } 00027 00028 00029 bool Paragraph::generate(QDomElement& paragraphNode, QDomDocument& doc) 00030 { 00031 /* FRAMESET */ 00032 QDomElement textNode = doc.createElement("TEXT"); 00033 00034 /* required attributes */ 00035 /*framesetNode.setAttribute("frameType", TEXTFRAME); 00036 framesetNode.setAttribute("frameInfo", NORMALTEXT);*/ 00037 00038 paragraphNode.appendChild(textNode); 00039 00040 /* FRAME */ 00041 //QDomElement frameNode = doc.createElement("FRAME"); 00042 00043 /* required attributes */ 00044 /*frameNode.setAttribute("newFrameBehavior", "0"); 00045 frameNode.setAttribute("left", _leftMargin); 00046 frameNode.setAttribute("right", _rightMargin); 00047 frameNode.setAttribute("top", _topMargin); 00048 frameNode.setAttribute("bottom", _bottomMargin); 00049 framesetNode.appendChild(frameNode);*/ 00050 00051 } 00052