Kaydet (Commit) f398f7ca authored tarafından Caolán McNamara's avatar Caolán McNamara

ditch a few more

üst bf3ff35d
...@@ -195,7 +195,6 @@ $(eval $(call gb_Library_add_exception_objects,lwpft,\ ...@@ -195,7 +195,6 @@ $(eval $(call gb_Library_add_exception_objects,lwpft,\
lotuswordpro/source/filter/xfilter/xfdrawrect \ lotuswordpro/source/filter/xfilter/xfdrawrect \
lotuswordpro/source/filter/xfilter/xfdrawstyle \ lotuswordpro/source/filter/xfilter/xfdrawstyle \
lotuswordpro/source/filter/xfilter/xfentry \ lotuswordpro/source/filter/xfilter/xfentry \
lotuswordpro/source/filter/xfilter/xffileattrlist \
lotuswordpro/source/filter/xfilter/xffloatframe \ lotuswordpro/source/filter/xfilter/xffloatframe \
lotuswordpro/source/filter/xfilter/xffont \ lotuswordpro/source/filter/xfilter/xffont \
lotuswordpro/source/filter/xfilter/xffontdecl \ lotuswordpro/source/filter/xfilter/xffontdecl \
...@@ -213,7 +212,6 @@ $(eval $(call gb_Library_add_exception_objects,lwpft,\ ...@@ -213,7 +212,6 @@ $(eval $(call gb_Library_add_exception_objects,lwpft,\
lotuswordpro/source/filter/xfilter/xfmasterpage \ lotuswordpro/source/filter/xfilter/xfmasterpage \
lotuswordpro/source/filter/xfilter/xfnumberstyle \ lotuswordpro/source/filter/xfilter/xfnumberstyle \
lotuswordpro/source/filter/xfilter/xfofficemeta \ lotuswordpro/source/filter/xfilter/xfofficemeta \
lotuswordpro/source/filter/xfilter/xfoutlinestyle \
lotuswordpro/source/filter/xfilter/xfpagemaster \ lotuswordpro/source/filter/xfilter/xfpagemaster \
lotuswordpro/source/filter/xfilter/xfparagraph \ lotuswordpro/source/filter/xfilter/xfparagraph \
lotuswordpro/source/filter/xfilter/xfparastyle \ lotuswordpro/source/filter/xfilter/xfparastyle \
......
/* -*- 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: */
/* -*- 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: */
/* -*- 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: */
/* -*- 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: */
...@@ -99,11 +99,6 @@ void XFStyleManager::Reset() ...@@ -99,11 +99,6 @@ void XFStyleManager::Reset()
s_aFontDecls.clear(); 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) void XFStyleManager::AddFontDecl(XFFontDecl& aFontDecl)
{ {
s_aFontDecls.push_back(aFontDecl); s_aFontDecls.push_back(aFontDecl);
......
...@@ -69,7 +69,6 @@ ...@@ -69,7 +69,6 @@
class IXFStream; class IXFStream;
class IXFStyle; class IXFStyle;
class XFOutlineStyle;
class XFParaStyle; class XFParaStyle;
class XFTextStyle; class XFTextStyle;
class XFLineNumberConfig; class XFLineNumberConfig;
...@@ -96,8 +95,6 @@ public: ...@@ -96,8 +95,6 @@ public:
void AddFontDecl(XFFontDecl& aFontDecl); void AddFontDecl(XFFontDecl& aFontDecl);
void AddFontDecl(rtl::OUString name, rtl::OUString family, sal_Bool fixed = false);
IXFStyle* AddStyle(IXFStyle *pStyle); IXFStyle* AddStyle(IXFStyle *pStyle);
IXFStyle* FindStyle(rtl::OUString name); IXFStyle* FindStyle(rtl::OUString name);
......
...@@ -1530,7 +1530,6 @@ XFCellStyle::SetMargins(double, double, double, double) ...@@ -1530,7 +1530,6 @@ XFCellStyle::SetMargins(double, double, double, double)
XFCellStyle::SetParentStyle(rtl::OUString) XFCellStyle::SetParentStyle(rtl::OUString)
XFCellStyle::SetShadow(enumXFShadowPos, double, XFColor&) XFCellStyle::SetShadow(enumXFShadowPos, double, XFColor&)
XFColumns::GetCount() XFColumns::GetCount()
XFFileAttrList::XFFileAttrList()
XFHeaderStyle::SetPadding(double, double, double, double) XFHeaderStyle::SetPadding(double, double, double, double)
XFIndex::AddEntry(rtl::OUString, rtl::OUString) XFIndex::AddEntry(rtl::OUString, rtl::OUString)
XFIndex::AddTemplate(unsigned int, rtl::OUString, enumXFIndexTemplate, enumXFIndexTemplate, enumXFIndexTemplate, enumXFIndexTemplate) XFIndex::AddTemplate(unsigned int, rtl::OUString, enumXFIndexTemplate, enumXFIndexTemplate, enumXFIndexTemplate, enumXFIndexTemplate)
...@@ -1539,7 +1538,6 @@ XFList::SetHeader(XFListItem*) ...@@ -1539,7 +1538,6 @@ XFList::SetHeader(XFListItem*)
XFList::XFList(unsigned char) XFList::XFList(unsigned char)
XFOfficeMeta::SetGenerator(rtl::OUString) XFOfficeMeta::SetGenerator(rtl::OUString)
XFOfficeMeta::SetTitle(rtl::OUString) XFOfficeMeta::SetTitle(rtl::OUString)
XFOutlineLevelStyle::XFOutlineLevelStyle()
XFParagraph::ClearContents() XFParagraph::ClearContents()
XFParagraph::XFParagraph(rtl::OUString&, rtl::OUString&) XFParagraph::XFParagraph(rtl::OUString&, rtl::OUString&)
XFRow::GetRowName() XFRow::GetRowName()
...@@ -1550,7 +1548,6 @@ XFSection::SetSectionName(rtl::OUString) ...@@ -1550,7 +1548,6 @@ XFSection::SetSectionName(rtl::OUString)
XFSectionStyle::SetBackColor(XFColor const&) XFSectionStyle::SetBackColor(XFColor const&)
XFSectionStyle::SetBackImage(XFBGImage*) XFSectionStyle::SetBackImage(XFBGImage*)
XFShadow::Reset() XFShadow::Reset()
XFStyleManager::AddFontDecl(rtl::OUString, rtl::OUString, unsigned char)
XFSvgPathEntry::XFSvgPathEntry(rtl::OUString) XFSvgPathEntry::XFSvgPathEntry(rtl::OUString)
XFTable::GetColumnStyle(int) XFTable::GetColumnStyle(int)
XFTextHeading::SetLevel(short) XFTextHeading::SetLevel(short)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment