Back to index

scribus-ng  1.3.4.dfsg+svn20071115
gtstyle.cpp
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 /***************************************************************************
00008  *   Copyright (C) 2004 by Riku Leino                                      *
00009  *   tsoots@gmail.com                                                      *
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  *   This program is distributed in the hope that it will be useful,       *
00017  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00018  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00019  *   GNU General Public License for more details.                          *
00020  *                                                                         *
00021  *   You should have received a copy of the GNU General Public License     *
00022  *   along with this program; if not, write to the                         *
00023  *   Free Software Foundation, Inc.,                                       *
00024  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00025  ***************************************************************************/
00026 
00027 #include "gtstyle.h"
00028 
00029 gtStyle::gtStyle(QString name)
00030 {
00031        this->name = name;
00032 }
00033 
00034 gtStyle::gtStyle(const gtStyle& s)
00035 {
00036        name = QString(s.name);
00037        font = gtFont(s.font);
00038 }
00039 
00040 void gtStyle::setFont(gtFont newFont)
00041 {
00042        font = newFont;
00043 }
00044 
00045 gtFont* gtStyle::getFont()
00046 {
00047        return &font;
00048 }
00049 
00050 QString gtStyle::getName()
00051 {
00052        return name;
00053 }
00054 
00055 void gtStyle::setName(QString newName)
00056 {
00057        name = newName;
00058 }
00059 
00060 QString gtStyle::target()
00061 {
00062        return QString("character");
00063 }
00064 
00065 gtStyle::~gtStyle()
00066 {
00067 
00068 }