editors/qeditor/paragdata.cpp
Go to the documentation of this file.00001 // (C) 2001-2002 Trolltech AS 00002 00003 /* $Id: paragdata.cpp,v 1.8 2002/12/19 22:02:39 raggi Exp $ 00004 * 00005 * This file is part of Klint 00006 * Copyright (C) 2001 Roberto Raggi (roberto@kdevelop.org) 00007 * 00008 * This program is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU General Public 00010 * License as published by the Free Software Foundation; either 00011 * version 2 of the License, or (at your option) any later version. 00012 * 00013 * This program is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 * General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with this program; see the file COPYING.LIB. If not, write to 00020 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00021 * Boston, MA 02111-1307, USA. 00022 * 00023 */ 00024 00025 00026 #include "paragdata.h" 00027 00028 ParagData::ParagData() 00029 { 00030 lastLengthForCompletion = 0; 00031 m_level = 0; 00032 m_mark = 0; 00033 m_open = true; 00034 m_blockStart = false; 00035 m_parsed = false; 00036 } 00037 00038 ParagData::~ParagData() 00039 { 00040 00041 } 00042 00043 void ParagData::join( QTextParagraphData* ) 00044 { 00045 // not implemented yet!! 00046 } 00047 00048 void ParagData::clear() 00049 { 00050 m_symbolList.clear(); 00051 } 00052 00053 void ParagData::add( int tp, const QChar& ch, int pos ) 00054 { 00055 m_symbolList << Symbol( tp, ch, pos ); 00056 } 00057 00058 int ParagData::level() const 00059 { 00060 return m_level; 00061 } 00062 00063 void ParagData::setLevel( int level ) 00064 { 00065 m_level = level; 00066 } 00067 00068 uint ParagData::mark() const 00069 { 00070 return m_mark; 00071 } 00072 00073 void ParagData::setMark( uint mark ) 00074 { 00075 m_mark = mark; 00076 } 00077 00078 bool ParagData::isOpen() const 00079 { 00080 return m_open; 00081 } 00082 00083 void ParagData::setOpen( bool open ) 00084 { 00085 m_open = open; 00086 } 00087 00088 bool ParagData::isBlockStart() const 00089 { 00090 return m_blockStart; 00091 } 00092 00093 void ParagData::setBlockStart( bool blockStart ) 00094 { 00095 m_blockStart = blockStart; 00096 } 00097 00098 bool ParagData::isParsed() const 00099 { 00100 return m_parsed; 00101 } 00102 00103 void ParagData::setParsed( bool parsed ) 00104 { 00105 m_parsed = parsed; 00106 }