diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-29 15:24:36 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-30 09:32:22 +0100 |
commit | f398f7cab76367847e15fbf95c7abd721a69428d (patch) | |
tree | 5c294bc8e91a6057229eaf323b64069dcf9528d5 /lotuswordpro | |
parent | bf3ff35d8c96315c35cf8dc8495be4b488b55cb6 (diff) |
ditch a few more
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/Library_lwpft.mk | 2 | ||||
-rw-r--r-- | lotuswordpro/source/filter/xfilter/xffileattrlist.cxx | 80 | ||||
-rw-r--r-- | lotuswordpro/source/filter/xfilter/xffileattrlist.hxx | 85 | ||||
-rw-r--r-- | lotuswordpro/source/filter/xfilter/xfoutlinestyle.cxx | 108 | ||||
-rw-r--r-- | lotuswordpro/source/filter/xfilter/xfoutlinestyle.hxx | 132 | ||||
-rw-r--r-- | lotuswordpro/source/filter/xfilter/xfstylemanager.cxx | 5 | ||||
-rw-r--r-- | lotuswordpro/source/filter/xfilter/xfstylemanager.hxx | 3 |
7 files changed, 0 insertions, 415 deletions
diff --git a/lotuswordpro/Library_lwpft.mk b/lotuswordpro/Library_lwpft.mk index 3d1b734ffc9f..396b3e2de9cc 100644 --- a/lotuswordpro/Library_lwpft.mk +++ b/lotuswordpro/Library_lwpft.mk @@ -195,7 +195,6 @@ $(eval $(call gb_Library_add_exception_objects,lwpft,\ lotuswordpro/source/filter/xfilter/xfdrawrect \ lotuswordpro/source/filter/xfilter/xfdrawstyle \ lotuswordpro/source/filter/xfilter/xfentry \ - lotuswordpro/source/filter/xfilter/xffileattrlist \ lotuswordpro/source/filter/xfilter/xffloatframe \ lotuswordpro/source/filter/xfilter/xffont \ lotuswordpro/source/filter/xfilter/xffontdecl \ @@ -213,7 +212,6 @@ $(eval $(call gb_Library_add_exception_objects,lwpft,\ lotuswordpro/source/filter/xfilter/xfmasterpage \ lotuswordpro/source/filter/xfilter/xfnumberstyle \ lotuswordpro/source/filter/xfilter/xfofficemeta \ - lotuswordpro/source/filter/xfilter/xfoutlinestyle \ lotuswordpro/source/filter/xfilter/xfpagemaster \ lotuswordpro/source/filter/xfilter/xfparagraph \ lotuswordpro/source/filter/xfilter/xfparastyle \ diff --git a/lotuswordpro/source/filter/xfilter/xffileattrlist.cxx b/lotuswordpro/source/filter/xfilter/xffileattrlist.cxx deleted file mode 100644 index 4310ec82c02c..000000000000 --- a/lotuswordpro/source/filter/xfilter/xffileattrlist.cxx +++ /dev/null @@ -1,80 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * The Contents of this file are made available subject to the terms of - * either of the following licenses - * - * - GNU Lesser General Public License Version 2.1 - * - Sun Industry Standards Source License Version 1.1 - * - * Sun Microsystems Inc., October, 2000 - * - * GNU Lesser General Public License Version 2.1 - * ============================================= - * Copyright 2000 by Sun Microsystems, Inc. - * 901 San Antonio Road, Palo Alto, CA 94303, USA - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License version 2.1, as published by the Free Software Foundation. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA - * - * - * Sun Industry Standards Source License Version 1.1 - * ================================================= - * The contents of this file are subject to the Sun Industry Standards - * Source License Version 1.1 (the "License"); You may not use this file - * except in compliance with the License. You may obtain a copy of the - * License at http://www.openoffice.org/license.html. - * - * Software provided under this License is provided on an "AS IS" basis, - * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, - * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, - * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. - * See the License for the specific provisions governing your rights and - * obligations concerning the Software. - * - * The Initial Developer of the Original Code is: IBM Corporation - * - * Copyright: 2008 by IBM Corporation - * - * All Rights Reserved. - * - * Contributor(s): _______________________________________ - * - * - ************************************************************************/ -/************************************************************************* - * @file - * Attribute list for sax element,this is a help class to write xml to - * local file. - ************************************************************************/ -#include "xffileattrlist.hxx" - -XFFileAttrList::XFFileAttrList() -{ -} - -XFFileAttrList::~XFFileAttrList() -{ -} - -void XFFileAttrList::AddAttribute(const rtl::OUString& name, const rtl::OUString& value) -{ - m_aAttrList.push_back( std::pair<rtl::OUString,rtl::OUString>(name,value) ); -} - -void XFFileAttrList::Clear() -{ - m_aAttrList.clear(); -} -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/lotuswordpro/source/filter/xfilter/xffileattrlist.hxx b/lotuswordpro/source/filter/xfilter/xffileattrlist.hxx deleted file mode 100644 index ce6f45cb5ba5..000000000000 --- a/lotuswordpro/source/filter/xfilter/xffileattrlist.hxx +++ /dev/null @@ -1,85 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * The Contents of this file are made available subject to the terms of - * either of the following licenses - * - * - GNU Lesser General Public License Version 2.1 - * - Sun Industry Standards Source License Version 1.1 - * - * Sun Microsystems Inc., October, 2000 - * - * GNU Lesser General Public License Version 2.1 - * ============================================= - * Copyright 2000 by Sun Microsystems, Inc. - * 901 San Antonio Road, Palo Alto, CA 94303, USA - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License version 2.1, as published by the Free Software Foundation. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA - * - * - * Sun Industry Standards Source License Version 1.1 - * ================================================= - * The contents of this file are subject to the Sun Industry Standards - * Source License Version 1.1 (the "License"); You may not use this file - * except in compliance with the License. You may obtain a copy of the - * License at http://www.openoffice.org/license.html. - * - * Software provided under this License is provided on an "AS IS" basis, - * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, - * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, - * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. - * See the License for the specific provisions governing your rights and - * obligations concerning the Software. - * - * The Initial Developer of the Original Code is: IBM Corporation - * - * Copyright: 2008 by IBM Corporation - * - * All Rights Reserved. - * - * Contributor(s): _______________________________________ - * - * - ************************************************************************/ -/************************************************************************* - * @file - * Wrapper the sax interface for xml output. - ************************************************************************/ -#ifndef _XFFILEATTRLIST_HXX -#define _XFFILEATTRLIST_HXX - -#include "ixfattrlist.hxx" -#include "rtl/ustring.hxx" -#include <vector> -#include <utility> - -class XFFileAttrList : public IXFAttrList -{ -public: - - XFFileAttrList(); - virtual ~XFFileAttrList(); - //Interface ISaxAttributeList: - - virtual void AddAttribute(const rtl::OUString& name, const rtl::OUString& value); - virtual void Clear(); - -private: - std::vector<std::pair<rtl::OUString,rtl::OUString> > m_aAttrList; - -}; - -#endif //XFFILEATTRLIST -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/lotuswordpro/source/filter/xfilter/xfoutlinestyle.cxx b/lotuswordpro/source/filter/xfilter/xfoutlinestyle.cxx deleted file mode 100644 index bceffe6b4909..000000000000 --- a/lotuswordpro/source/filter/xfilter/xfoutlinestyle.cxx +++ /dev/null @@ -1,108 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * The Contents of this file are made available subject to the terms of - * either of the following licenses - * - * - GNU Lesser General Public License Version 2.1 - * - Sun Industry Standards Source License Version 1.1 - * - * Sun Microsystems Inc., October, 2000 - * - * GNU Lesser General Public License Version 2.1 - * ============================================= - * Copyright 2000 by Sun Microsystems, Inc. - * 901 San Antonio Road, Palo Alto, CA 94303, USA - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License version 2.1, as published by the Free Software Foundation. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA - * - * - * Sun Industry Standards Source License Version 1.1 - * ================================================= - * The contents of this file are subject to the Sun Industry Standards - * Source License Version 1.1 (the "License"); You may not use this file - * except in compliance with the License. You may obtain a copy of the - * License at http://www.openoffice.org/license.html. - * - * Software provided under this License is provided on an "AS IS" basis, - * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, - * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, - * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. - * See the License for the specific provisions governing your rights and - * obligations concerning the Software. - * - * The Initial Developer of the Original Code is: IBM Corporation - * - * Copyright: 2008 by IBM Corporation - * - * All Rights Reserved. - * - * Contributor(s): _______________________________________ - * - * - ************************************************************************/ -/************************************************************************* - * @file - * Outline style for the full document. - ************************************************************************/ -#include "xfoutlinestyle.hxx" - -XFOutlineLevelStyle::XFOutlineLevelStyle() -{ - m_nLevel = 0; - m_fIndent = 0; - m_fMinLabelWidth = 0; - m_fMinLabelDistance = 0; - m_eAlign = enumXFAlignNone; - m_pNumFmt = NULL; -} - -XFOutlineLevelStyle::~XFOutlineLevelStyle() -{ - if( m_pNumFmt ) - delete m_pNumFmt; -} - -void XFOutlineLevelStyle::ToXml(IXFStream *pStrm) -{ - IXFAttrList *pAttrList = pStrm->GetAttrList(); - pAttrList->Clear(); - - assert(m_nLevel>0); - pAttrList->AddAttribute( A2OUSTR("text:level"), Int32ToOUString(m_nLevel) ); - if( GetStyleName().getLength() > 0 ) - pAttrList->AddAttribute( A2OUSTR("text:style-name"), GetStyleName() ); - if( m_pNumFmt ) - m_pNumFmt->ToXml(pStrm); - else - pAttrList->AddAttribute( A2OUSTR("style:num-format"), A2OUSTR("") ); - pStrm->StartElement( A2OUSTR("text:outline-level-style") ); - - pAttrList->Clear(); - if( m_fIndent ) - pAttrList->AddAttribute( A2OUSTR("text:space-before"), DoubleToOUString(m_fIndent) + A2OUSTR("cm") ); - if( m_fMinLabelWidth ) - pAttrList->AddAttribute( A2OUSTR("text:min-label-width"), DoubleToOUString(m_fMinLabelWidth) + A2OUSTR("cm") ); - if( m_fMinLabelDistance ) - pAttrList->AddAttribute( A2OUSTR("text:min-label-distance"), DoubleToOUString(m_fMinLabelDistance) + A2OUSTR("cm") ); - if( enumXFAlignNone != m_eAlign ) - pAttrList->AddAttribute( A2OUSTR("fo:text-align"), GetAlignName(m_eAlign) ); - pStrm->StartElement( A2OUSTR("style:properties") ); - pStrm->EndElement( A2OUSTR("style:properties") ); - - pStrm->EndElement( A2OUSTR("text:outline-level-style") ); -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/lotuswordpro/source/filter/xfilter/xfoutlinestyle.hxx b/lotuswordpro/source/filter/xfilter/xfoutlinestyle.hxx deleted file mode 100644 index aa3844128949..000000000000 --- a/lotuswordpro/source/filter/xfilter/xfoutlinestyle.hxx +++ /dev/null @@ -1,132 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * The Contents of this file are made available subject to the terms of - * either of the following licenses - * - * - GNU Lesser General Public License Version 2.1 - * - Sun Industry Standards Source License Version 1.1 - * - * Sun Microsystems Inc., October, 2000 - * - * GNU Lesser General Public License Version 2.1 - * ============================================= - * Copyright 2000 by Sun Microsystems, Inc. - * 901 San Antonio Road, Palo Alto, CA 94303, USA - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License version 2.1, as published by the Free Software Foundation. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA - * - * - * Sun Industry Standards Source License Version 1.1 - * ================================================= - * The contents of this file are subject to the Sun Industry Standards - * Source License Version 1.1 (the "License"); You may not use this file - * except in compliance with the License. You may obtain a copy of the - * License at http://www.openoffice.org/license.html. - * - * Software provided under this License is provided on an "AS IS" basis, - * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, - * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, - * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. - * See the License for the specific provisions governing your rights and - * obligations concerning the Software. - * - * The Initial Developer of the Original Code is: IBM Corporation - * - * Copyright: 2008 by IBM Corporation - * - * All Rights Reserved. - * - * Contributor(s): _______________________________________ - * - * - ************************************************************************/ -/************************************************************************* - * @file - * Outline style for the full document. - ************************************************************************/ -#ifndef _XFOUTLINESTYLE_HXX -#define _XFOUTLINESTYLE_HXX - -#include "xfstyle.hxx" -#include "xfnumfmt.hxx" - -class XFNumFmt; -class XFOutlineLevelStyle : public XFStyle -{ -public: - XFOutlineLevelStyle(); - - virtual ~XFOutlineLevelStyle(); - -public: - void SetNumFmt(XFNumFmt& fmt); - - void SetLevel(sal_Int16 level); - - void SetIndent(double indent); - - void SetMinLabelWidth(double labelWidth); - - void SetMinLabelDistance(double distance); - - void SetTextAlign(enumXFAlignType align); - - virtual void ToXml(IXFStream *pStrm); -private: - XFNumFmt *m_pNumFmt; - sal_Int16 m_nLevel; - double m_fIndent; - double m_fMinLabelWidth; - double m_fMinLabelDistance; - enumXFAlignType m_eAlign; -}; - -// -//XFOutlineLevelStyle: -// -inline void XFOutlineLevelStyle::SetNumFmt(XFNumFmt& fmt) -{ - m_pNumFmt = new XFNumFmt(fmt); -} - -inline void XFOutlineLevelStyle::SetLevel(sal_Int16 level) -{ - m_nLevel = level; -} - -inline void XFOutlineLevelStyle::SetIndent(double indent) -{ - m_fIndent = indent; -} - -inline void XFOutlineLevelStyle::SetMinLabelWidth(double width) -{ - m_fMinLabelWidth = width; -} - -inline void XFOutlineLevelStyle::SetMinLabelDistance(double distance) -{ - m_fMinLabelDistance = distance; -} - -inline void XFOutlineLevelStyle::SetTextAlign(enumXFAlignType align) -{ - m_eAlign = align; -} - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/lotuswordpro/source/filter/xfilter/xfstylemanager.cxx b/lotuswordpro/source/filter/xfilter/xfstylemanager.cxx index 662542f0dba5..67d77b44ebcd 100644 --- a/lotuswordpro/source/filter/xfilter/xfstylemanager.cxx +++ b/lotuswordpro/source/filter/xfilter/xfstylemanager.cxx @@ -99,11 +99,6 @@ void XFStyleManager::Reset() s_aFontDecls.clear(); } -void XFStyleManager::AddFontDecl(rtl::OUString name, rtl::OUString family, sal_Bool fixed) -{ - s_aFontDecls.push_back( XFFontDecl(name, family, fixed) ); -} - void XFStyleManager::AddFontDecl(XFFontDecl& aFontDecl) { s_aFontDecls.push_back(aFontDecl); diff --git a/lotuswordpro/source/filter/xfilter/xfstylemanager.hxx b/lotuswordpro/source/filter/xfilter/xfstylemanager.hxx index 9897cad4fb34..0a90560d7dda 100644 --- a/lotuswordpro/source/filter/xfilter/xfstylemanager.hxx +++ b/lotuswordpro/source/filter/xfilter/xfstylemanager.hxx @@ -69,7 +69,6 @@ class IXFStream; class IXFStyle; -class XFOutlineStyle; class XFParaStyle; class XFTextStyle; class XFLineNumberConfig; @@ -96,8 +95,6 @@ public: void AddFontDecl(XFFontDecl& aFontDecl); - void AddFontDecl(rtl::OUString name, rtl::OUString family, sal_Bool fixed = false); - IXFStyle* AddStyle(IXFStyle *pStyle); IXFStyle* FindStyle(rtl::OUString name); |