diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-29 22:26:07 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-30 09:32:23 +0100 |
commit | 8fd3e7c09177a856fb9ba6de0e42af5d12b67652 (patch) | |
tree | e412320d2d96d2f1d19b7ecf06c6917bdabbb1b7 /lotuswordpro | |
parent | 2f5856b20d4dc8e9092052b376455d950c968a12 (diff) |
callcatcher: chop, hack, slay
Diffstat (limited to 'lotuswordpro')
39 files changed, 0 insertions, 1018 deletions
diff --git a/lotuswordpro/Library_lwpft.mk b/lotuswordpro/Library_lwpft.mk index 396b3e2de9cc..255d9178a148 100644 --- a/lotuswordpro/Library_lwpft.mk +++ b/lotuswordpro/Library_lwpft.mk @@ -171,7 +171,6 @@ $(eval $(call gb_Library_add_exception_objects,lwpft,\ lotuswordpro/source/filter/utlist \ lotuswordpro/source/filter/xfilter/xfbase64 \ lotuswordpro/source/filter/xfilter/xfbgimage \ - lotuswordpro/source/filter/xfilter/xfbookmarkref \ lotuswordpro/source/filter/xfilter/xfborders \ lotuswordpro/source/filter/xfilter/xfcell \ lotuswordpro/source/filter/xfilter/xfcellstyle \ @@ -230,10 +229,8 @@ $(eval $(call gb_Library_add_exception_objects,lwpft,\ lotuswordpro/source/filter/xfilter/xftabstyle \ lotuswordpro/source/filter/xfilter/xftextboxstyle \ lotuswordpro/source/filter/xfilter/xftextcontent \ - lotuswordpro/source/filter/xfilter/xftextheading \ lotuswordpro/source/filter/xfilter/xftextspan \ lotuswordpro/source/filter/xfilter/xftextstyle \ - lotuswordpro/source/filter/xfilter/xftime \ lotuswordpro/source/filter/xfilter/xftimestyle \ lotuswordpro/source/filter/xfilter/xfutil \ )) diff --git a/lotuswordpro/source/filter/xfilter/xfbookmarkref.cxx b/lotuswordpro/source/filter/xfilter/xfbookmarkref.cxx deleted file mode 100644 index 664ceb01bf15..000000000000 --- a/lotuswordpro/source/filter/xfilter/xfbookmarkref.cxx +++ /dev/null @@ -1,100 +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 - * Bookmark reference. - ************************************************************************/ -#include "xfbookmarkref.hxx" - -XFBookmarkRef::XFBookmarkRef() -{ - m_eRefType = enumXFBookmarkNone; -} - -void XFBookmarkRef::ToXml(IXFStream *pStrm) -{ - IXFAttrList *pAttrList = pStrm->GetAttrList(); - pAttrList->Clear(); - - assert(m_strBookmark.getLength() > 0 ); - if( m_eRefType == enumXFBookmarkNone ) - return; - else if( m_eRefType == enumXFBookmarkPage ) - { - pAttrList->AddAttribute( A2OUSTR("text:reference-format"), A2OUSTR("page") ); - pAttrList->AddAttribute( A2OUSTR("text:ref-name"), m_strBookmark ); - } - else if( m_eRefType == enumXFBookmarkChapter ) - { - pAttrList->AddAttribute( A2OUSTR("text:reference-format"), A2OUSTR("chapter") ); - pAttrList->AddAttribute( A2OUSTR("text:ref-name"), m_strBookmark ); - } - else if( m_eRefType == enumXFBookmarkDir ) - { - pAttrList->AddAttribute( A2OUSTR("text:reference-format"), A2OUSTR("direction") ); - pAttrList->AddAttribute( A2OUSTR("text:ref-name"), m_strBookmark ); - } - else if( m_eRefType == enumXFBookmarkDef ) - { - pAttrList->AddAttribute( A2OUSTR("text:reference-format"), A2OUSTR("text") ); - pAttrList->AddAttribute( A2OUSTR("text:ref-name"), m_strBookmark ); - } - pStrm->StartElement( A2OUSTR("text:bookmark-ref") ); - if( m_strText.getLength() ) - pStrm->Characters(m_strBookmark); - pStrm->EndElement( A2OUSTR("text:bookmark-ref") ); -} -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/lotuswordpro/source/filter/xfilter/xfbookmarkref.hxx b/lotuswordpro/source/filter/xfilter/xfbookmarkref.hxx deleted file mode 100644 index 8426a532096d..000000000000 --- a/lotuswordpro/source/filter/xfilter/xfbookmarkref.hxx +++ /dev/null @@ -1,101 +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 - * Bookmark ref. - ************************************************************************/ -#ifndef _XFBOOKMARKREF_HXX -#define _XFBOOKMARKREF_HXX - -#include "xfcontent.hxx" - -class XFBookmarkRef : public XFContent -{ -public: - XFBookmarkRef(); - -public: - void SetRefType(enumXFBookmarkRef type); - - void SetBookmark(rtl::OUString name); - - void SetText(rtl::OUString text); - - virtual void ToXml(IXFStream *pStrm); - -private: - enumXFBookmarkRef m_eRefType; - rtl::OUString m_strBookmark; - rtl::OUString m_strText; -}; - -inline void XFBookmarkRef::SetRefType(enumXFBookmarkRef ref) -{ - m_eRefType = ref; -} - -inline void XFBookmarkRef::SetBookmark(rtl::OUString name) -{ - m_strBookmark = name; -} - -inline void XFBookmarkRef::SetText(rtl::OUString text) -{ - m_strText = text; -} - -#endif -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/lotuswordpro/source/filter/xfilter/xfcell.cxx b/lotuswordpro/source/filter/xfilter/xfcell.cxx index 73acf64bdb09..3c8aa8b8ce36 100644 --- a/lotuswordpro/source/filter/xfilter/xfcell.cxx +++ b/lotuswordpro/source/filter/xfilter/xfcell.cxx @@ -176,22 +176,6 @@ void XFCell::SetValue(rtl::OUString value) //XFContentContainer::Add(pPara); } -void XFCell::SetString(rtl::OUString str) -{ - m_eValueType = enumXFValueTypeString; - m_strValue = str; - - Reset(); - XFParagraph *pPara = new XFParagraph(); - pPara->Add(m_strValue); - XFContentContainer::Add(pPara); -} - -void XFCell::SetPercent(double percent) -{ - SetPercent(DoubleToOUString(percent)); -} - void XFCell::SetPercent(rtl::OUString percent) { m_eValueType = enumXFValueTypePercentage; @@ -203,49 +187,6 @@ void XFCell::SetPercent(rtl::OUString percent) XFContentContainer::Add(pPara); } -void XFCell::SetDate(rtl::OUString date) -{ - m_eValueType = enumXFValueTypeDate; - m_strValue = date; - - Reset(); - XFParagraph *pPara = new XFParagraph(); - pPara->Add(m_strValue); - XFContentContainer::Add(pPara); -} - -void XFCell::SetTime(rtl::OUString time) -{ - m_eValueType = enumXFValueTypeTime; - m_strValue = time; - - Reset(); - XFParagraph *pPara = new XFParagraph(); - pPara->Add(m_strValue); - XFContentContainer::Add(pPara); -} - -void XFCell::SetCurrency(rtl::OUString currency) -{ - m_eValueType = enumXFValueTypeCurrency; - m_strValue = currency; - - Reset(); - XFParagraph *pPara = new XFParagraph(); - pPara->Add(m_strValue); - XFContentContainer::Add(pPara); -} - -void XFCell::SetDisplay(rtl::OUString display) -{ - m_strDisplay = display; - - Reset(); - XFParagraph *pPara = new XFParagraph(); - pPara->Add(m_strDisplay); - XFContentContainer::Add(pPara); -} - rtl::OUString XFCell::GetCellName() { rtl::OUString name; diff --git a/lotuswordpro/source/filter/xfilter/xfcell.hxx b/lotuswordpro/source/filter/xfilter/xfcell.hxx index 30ba90be8e64..dff91bad6074 100644 --- a/lotuswordpro/source/filter/xfilter/xfcell.hxx +++ b/lotuswordpro/source/filter/xfilter/xfcell.hxx @@ -111,41 +111,11 @@ public: void SetValue(rtl::OUString value); /** - * @descr Set cell string value. - */ - void SetString(rtl::OUString str); - - /** - * @descr Set cell as a percent value with value percent. - */ - void SetPercent(double percent); - - /** * @descr Set cell as a percent value with value percent. */ void SetPercent(rtl::OUString percent); /** - * @descr Set cell as a date value. - */ - void SetDate(rtl::OUString date); - - /** - * @descr Set cell as a time value. - */ - void SetTime(rtl::OUString time); - - /** - * @descr Set cell as a currency value. - */ - void SetCurrency(rtl::OUString currency); - - /** - * @descr Set cell display string. - */ - void SetDisplay(rtl::OUString display); - - /** * @descr Set cell formula. */ void SetFormula(rtl::OUString formula); diff --git a/lotuswordpro/source/filter/xfilter/xfcellstyle.cxx b/lotuswordpro/source/filter/xfilter/xfcellstyle.cxx index 313cd76544ac..3e6c54ac9b3e 100644 --- a/lotuswordpro/source/filter/xfilter/xfcellstyle.cxx +++ b/lotuswordpro/source/filter/xfilter/xfcellstyle.cxx @@ -80,34 +80,6 @@ XFCellStyle::~XFCellStyle() delete m_pBorders; } - -void XFCellStyle::SetParentStyle(rtl::OUString parent) -{ - m_strParentStyleName = parent; -} - -void XFCellStyle::SetFont(XFFont *pFont) -{ - m_pFont = pFont; -} - -void XFCellStyle::SetIndent(double indent ) -{ - m_fTextIndent = indent; -} - -void XFCellStyle::SetMargins(double left, double right, double top, double bottom) -{ - if( left != -1 ) - m_aMargin.SetLeft(left); - if( right != -1 ) - m_aMargin.SetRight(right); - if( top != -1 ) - m_aMargin.SetTop(top); - if( bottom != -1 ) - m_aMargin.SetBottom( bottom ); -} - void XFCellStyle::SetPadding(double left, double right,double top, double bottom) { if( left != -1 ) @@ -120,13 +92,6 @@ void XFCellStyle::SetPadding(double left, double right,double top, double bottom m_aPadding.SetBottom( bottom ); } -void XFCellStyle::SetShadow(enumXFShadowPos pos, double offset, XFColor& color) -{ - m_aShadow.SetPosition(pos); - m_aShadow.SetOffset(offset); - m_aShadow.SetColor(color); -} - void XFCellStyle::SetBackColor(XFColor& color) { m_aBackColor = color; diff --git a/lotuswordpro/source/filter/xfilter/xfcellstyle.hxx b/lotuswordpro/source/filter/xfilter/xfcellstyle.hxx index e6279c54ccb7..9f7347ac115f 100644 --- a/lotuswordpro/source/filter/xfilter/xfcellstyle.hxx +++ b/lotuswordpro/source/filter/xfilter/xfcellstyle.hxx @@ -89,25 +89,6 @@ public: void SetDataStyle(rtl::OUString style); /** - * @descr: Parant paragraph style. - */ - void SetParentStyle(rtl::OUString parent); - - /** - * @descr: set the paragraph defaut font. - * @param: font font obejct to be setted.Font object are deleted by font-factory,so - * dont't delete it in the destructure function of para style. - */ - void SetFont(XFFont *font); - - /** - * @descr: Set the indent of the paragraph.This is the indent for - the first line. - * @param: indent value of the first-line indent. - */ - void SetIndent(double indent ); - - /** * @descr: Set the pading of the paragraph.This is the distance between the border and the top of the text. * @param: indent value of the padding. @@ -115,28 +96,12 @@ public: void SetPadding(double left, double right = -1, double top = -1, double bottom = -1); /** - * @descr: Set the Margins of the paragraph. - * @param: -1: don't change. - other: set value. - */ - void SetMargins(double left, double right=-1,double top=-1, double bottom=-1); - - /** * @descr: Set alignment property of the cell. * @param: eAlign alignment type,left,right,center or justify. */ void SetAlignType(enumXFAlignType hori=enumXFAlignNone, enumXFAlignType vert = enumXFAlignBottom); /** - * @descr: Set the shadow of the paragraph.there is 4 postions, you - can find it in the definition of enumShadowPos. - * @param: pos - * @param: offset the distance between the paragraph border and the shadow. - * @param: color color to fill the shadow. - */ - void SetShadow(enumXFShadowPos pos, double offset, XFColor& color); - - /** * @descr: The borders is complex,so you have to create one before use. Very few paragraphs will readly have borders property,this way we can save much memory. diff --git a/lotuswordpro/source/filter/xfilter/xfcolumns.cxx b/lotuswordpro/source/filter/xfilter/xfcolumns.cxx index 058a8ec48ad5..8eaefd78de0e 100644 --- a/lotuswordpro/source/filter/xfilter/xfcolumns.cxx +++ b/lotuswordpro/source/filter/xfilter/xfcolumns.cxx @@ -139,11 +139,6 @@ void XFColumns::AddColumn(XFColumn& column) m_aColumns.push_back(column); } -sal_Int32 XFColumns::GetCount() -{ - return m_aColumns.size();; -} - void XFColumns::SetGap(double fGap) { m_fGap = fGap; @@ -160,7 +155,6 @@ void XFColumns::ToXml(IXFStream *pStrm) IXFAttrList *pAttrList = pStrm->GetAttrList(); pAttrList->Clear(); - //pAttrList->AddAttribute( A2OUSTR("fo:column-count"), Int32ToOUString(GetCount()) ); pAttrList->AddAttribute( A2OUSTR("fo:column-count"), Int32ToOUString(m_nCount)); if( m_nFlag&XFCOLUMNS_FLAG_GAP ) { diff --git a/lotuswordpro/source/filter/xfilter/xfcolumns.hxx b/lotuswordpro/source/filter/xfilter/xfcolumns.hxx index 80e7e94fe996..36a5d7b37b36 100644 --- a/lotuswordpro/source/filter/xfilter/xfcolumns.hxx +++ b/lotuswordpro/source/filter/xfilter/xfcolumns.hxx @@ -146,7 +146,6 @@ public: void SetGap(double fGap); void SetCount(sal_uInt16 nCount); void AddColumn(XFColumn& column); - sal_Int32 GetCount(); void ToXml(IXFStream *pStrm); private: diff --git a/lotuswordpro/source/filter/xfilter/xfdrawpath.cxx b/lotuswordpro/source/filter/xfilter/xfdrawpath.cxx index 2d518a9f6a51..5306ed1d2057 100644 --- a/lotuswordpro/source/filter/xfilter/xfdrawpath.cxx +++ b/lotuswordpro/source/filter/xfilter/xfdrawpath.cxx @@ -63,11 +63,6 @@ XFSvgPathEntry::XFSvgPathEntry() { } -XFSvgPathEntry::XFSvgPathEntry(rtl::OUString cmd) -{ - m_strCommand = cmd; -} - rtl::OUString XFSvgPathEntry::ToString() { assert(m_strCommand.getLength()>0); diff --git a/lotuswordpro/source/filter/xfilter/xfdrawpath.hxx b/lotuswordpro/source/filter/xfilter/xfdrawpath.hxx index 71d55f181979..577987bb8a48 100644 --- a/lotuswordpro/source/filter/xfilter/xfdrawpath.hxx +++ b/lotuswordpro/source/filter/xfilter/xfdrawpath.hxx @@ -72,8 +72,6 @@ class XFSvgPathEntry public: XFSvgPathEntry(); - XFSvgPathEntry(rtl::OUString cmd); - public: /** * @descr Set svg path command,L for line,M for move,... diff --git a/lotuswordpro/source/filter/xfilter/xfheaderstyle.cxx b/lotuswordpro/source/filter/xfilter/xfheaderstyle.cxx index 7b8836fcceb8..244a57c4a62a 100644 --- a/lotuswordpro/source/filter/xfilter/xfheaderstyle.cxx +++ b/lotuswordpro/source/filter/xfilter/xfheaderstyle.cxx @@ -105,18 +105,6 @@ void XFHeaderStyle::SetMinHeight(double minHeight) m_fMinHeight = minHeight; } -void XFHeaderStyle::SetPadding(double left, double right, double top, double bottom) -{ - if( left != -1 ) - m_aPadding.SetLeft(left); - if( right != -1 ) - m_aPadding.SetRight(right); - if( top != -1 ) - m_aPadding.SetTop(top); - if( bottom != -1 ) - m_aPadding.SetBottom(bottom); -} - void XFHeaderStyle::SetShadow(XFShadow *pShadow) { if( m_pShadow && (pShadow != m_pShadow) ) diff --git a/lotuswordpro/source/filter/xfilter/xfheaderstyle.hxx b/lotuswordpro/source/filter/xfilter/xfheaderstyle.hxx index ddb2addec7d3..a573ccc7d5fd 100644 --- a/lotuswordpro/source/filter/xfilter/xfheaderstyle.hxx +++ b/lotuswordpro/source/filter/xfilter/xfheaderstyle.hxx @@ -97,11 +97,6 @@ public: void SetMinHeight(double minHeight); /** - * @descr Set padding for header. Padding is the space between header borde and header content. - */ - void SetPadding(double left=-1, double right=-1, double top=-1, double bottom=-1); - - /** * @descr Set header shadow. */ void SetShadow(XFShadow *pShadow); diff --git a/lotuswordpro/source/filter/xfilter/xfindex.cxx b/lotuswordpro/source/filter/xfilter/xfindex.cxx index 8c1ab7bdb87e..19cdee251be6 100644 --- a/lotuswordpro/source/filter/xfilter/xfindex.cxx +++ b/lotuswordpro/source/filter/xfilter/xfindex.cxx @@ -92,38 +92,8 @@ XFIndex::~XFIndex() } } -void XFIndex::AddTemplate(sal_uInt32 level, - rtl::OUString /*style*/, - enumXFIndexTemplate type1, - enumXFIndexTemplate type2, - enumXFIndexTemplate type3, - enumXFIndexTemplate type4 ) -{ - if( level<1 ) - return; - - if (level > m_nMaxLevel) - m_nMaxLevel = level; - - XFIndexTemplate * templ = new XFIndexTemplate(); - - templ->AddEntry(type1); - templ->AddEntry(type2); - templ->AddEntry(type3); - templ->AddEntry(type4); - templ->SetLevel( rtl::OUString::valueOf( ( sal_Int64 ) level ) ); - - m_aTemplates.push_back( templ ); -} - void XFIndex::AddTemplate(rtl::OUString level, rtl::OUString style, XFIndexTemplate* templ) { -// if( level<1 || !templ ) -// return; - -// if (level > m_nMaxLevel) -// m_nMaxLevel = level; - templ->SetLevel( level ); if(m_eType != enumXFIndexTOC) // TOC's styles are applied to template entries separately { @@ -132,15 +102,6 @@ void XFIndex::AddTemplate(rtl::OUString level, rtl::OUString style, XFIndexTe m_aTemplates.push_back( templ ); } -void XFIndex::AddEntry(rtl::OUString entry, rtl::OUString strParaStyle) -{ - XFParagraph *pPara = new XFParagraph(); - pPara->SetStyleName(strParaStyle); - pPara->Add(entry); - pPara->Add(new XFTabStop()); - XFContentContainer::Add(pPara); -} - void XFIndex::SetProtected(sal_Bool protect) { m_bProtect = protect; diff --git a/lotuswordpro/source/filter/xfilter/xfindex.hxx b/lotuswordpro/source/filter/xfilter/xfindex.hxx index 04708bd92f70..4b3aee95da1a 100644 --- a/lotuswordpro/source/filter/xfilter/xfindex.hxx +++ b/lotuswordpro/source/filter/xfilter/xfindex.hxx @@ -152,27 +152,11 @@ public: void SetIndexType(enumXFIndex type); /** - * @descr Set index entry template. - * @param level [1-10]. - */ - void AddTemplate(sal_uInt32 level, - rtl::OUString style, - enumXFIndexTemplate type1 = enumXFIndexTemplateChapter, - enumXFIndexTemplate type2 = enumXFIndexTemplateText, - enumXFIndexTemplate type3 = enumXFIndexTemplateTab, - enumXFIndexTemplate type4 = enumXFIndexTemplatePage); - - /** * @descr Add index templaet entry. */ void AddTemplate(rtl::OUString level, rtl::OUString style, XFIndexTemplate* templ); /** - * @descr Add index entry. - */ - void AddEntry(rtl::OUString entry, rtl::OUString strParaStyle); - - /** * @descr Set if protected index to prevent handly-revise. */ void SetProtected(sal_Bool protect); diff --git a/lotuswordpro/source/filter/xfilter/xflist.cxx b/lotuswordpro/source/filter/xfilter/xflist.cxx index 943b72607b0e..b24b35399546 100644 --- a/lotuswordpro/source/filter/xfilter/xflist.cxx +++ b/lotuswordpro/source/filter/xfilter/xflist.cxx @@ -69,13 +69,6 @@ XFList::XFList() m_pHeader = NULL; } -XFList::XFList(sal_Bool ordered) -{ - m_bOrdered = ordered; - m_bContinueNumber = sal_False; - m_pHeader = NULL; -} - XFList::~XFList() { } @@ -88,21 +81,6 @@ void XFList::AddItem(XFListItem *pItem) Add(pItem); } -void XFList::AddItem(rtl::OUString text) -{ - XFListItem *pItem = new XFListItem(); - pItem->Add(text); - AddItem(pItem); -} - -void XFList::SetHeader(XFListItem *pItem) -{ - if( m_pHeader ) - delete m_pHeader; - pItem->SetIsHeader(sal_True); - m_pHeader = pItem; -} - void XFList::ToXml(IXFStream *pStrm) { IXFAttrList *pAttrList = pStrm->GetAttrList(); diff --git a/lotuswordpro/source/filter/xfilter/xflist.hxx b/lotuswordpro/source/filter/xfilter/xflist.hxx index 71fccc792701..51e838fb1a64 100644 --- a/lotuswordpro/source/filter/xfilter/xflist.hxx +++ b/lotuswordpro/source/filter/xfilter/xflist.hxx @@ -74,8 +74,6 @@ class XFList : public XFContentContainer public: XFList(); - XFList(sal_Bool ordered); - virtual ~XFList(); public: @@ -95,16 +93,6 @@ public: void AddItem(XFListItem *pItem); /** - * @descr Add a simple text list item. - */ - void AddItem(rtl::OUString text); - - /** - * @descr Set the header list item. There can only be one list header. - */ - void SetHeader(XFListItem *pItem); - - /** * @descr Output list obejct. */ virtual void ToXml(IXFStream *pStrm); diff --git a/lotuswordpro/source/filter/xfilter/xfofficemeta.cxx b/lotuswordpro/source/filter/xfilter/xfofficemeta.cxx index b0002e80a5da..1a0b00a6c148 100644 --- a/lotuswordpro/source/filter/xfilter/xfofficemeta.cxx +++ b/lotuswordpro/source/filter/xfilter/xfofficemeta.cxx @@ -61,16 +61,6 @@ #include "ixfstream.hxx" #include "ixfattrlist.hxx" -void XFOfficeMeta::SetGenerator(rtl::OUString generator) -{ - m_strGenerator = generator; -} - -void XFOfficeMeta::SetTitle(rtl::OUString title) -{ - m_strTitle = title; -} - void XFOfficeMeta::SetCreator(rtl::OUString creator) { m_strCreator = creator; diff --git a/lotuswordpro/source/filter/xfilter/xfofficemeta.hxx b/lotuswordpro/source/filter/xfilter/xfofficemeta.hxx index 9473b41e94fc..06d942003ace 100644 --- a/lotuswordpro/source/filter/xfilter/xfofficemeta.hxx +++ b/lotuswordpro/source/filter/xfilter/xfofficemeta.hxx @@ -69,8 +69,6 @@ public: XFOfficeMeta(){} virtual ~XFOfficeMeta(){} - void SetGenerator(rtl::OUString generator); - void SetTitle(rtl::OUString title); void SetCreator(rtl::OUString creator); void SetDescription(rtl::OUString dsr); void SetKeywords(rtl::OUString keywords); diff --git a/lotuswordpro/source/filter/xfilter/xfparagraph.cxx b/lotuswordpro/source/filter/xfilter/xfparagraph.cxx index e1db8df313dc..cdb001242ac7 100644 --- a/lotuswordpro/source/filter/xfilter/xfparagraph.cxx +++ b/lotuswordpro/source/filter/xfilter/xfparagraph.cxx @@ -67,14 +67,6 @@ XFParagraph::XFParagraph() } -XFParagraph::XFParagraph(rtl::OUString& text,rtl::OUString& style) -{ - IXFContent *pText = new XFTextContent(text); - Add(pText); - - SetStyleName(style); -} - XFParagraph::~XFParagraph() { } @@ -108,11 +100,6 @@ void XFParagraph::ToXml(IXFStream *pStrm) pStrm->EndElement( A2OUSTR("text:p") ); } -void XFParagraph::ClearContents() -{ - Reset(); -} - sal_Bool XFParagraph::HasContents() { return GetCount()>0; diff --git a/lotuswordpro/source/filter/xfilter/xfparagraph.hxx b/lotuswordpro/source/filter/xfilter/xfparagraph.hxx index 45b14554bd2e..eb9e5729c14d 100644 --- a/lotuswordpro/source/filter/xfilter/xfparagraph.hxx +++ b/lotuswordpro/source/filter/xfilter/xfparagraph.hxx @@ -77,13 +77,9 @@ class XFParagraph : public XFContentContainer public: XFParagraph(); - XFParagraph(rtl::OUString& text, rtl::OUString& style); - virtual ~XFParagraph(); public: - void ClearContents(); - sal_Bool HasContents(); virtual enumXFContent GetContentType(); diff --git a/lotuswordpro/source/filter/xfilter/xfrow.cxx b/lotuswordpro/source/filter/xfilter/xfrow.cxx index 800fd6bbbef8..fe13925325c5 100644 --- a/lotuswordpro/source/filter/xfilter/xfrow.cxx +++ b/lotuswordpro/source/filter/xfilter/xfrow.cxx @@ -141,13 +141,6 @@ XFCell* XFRow::GetCell(sal_Int32 col) const return m_aCells.find(col)->second; } -rtl::OUString XFRow::GetRowName() -{ - if( m_pOwnerTable && m_pOwnerTable->IsSubTable() ) - return m_pOwnerTable->GetTableName(); - return A2OUSTR(""); -} - void XFRow::ToXml(IXFStream *pStrm) { sal_Int32 lastCol = 0; diff --git a/lotuswordpro/source/filter/xfilter/xfrow.hxx b/lotuswordpro/source/filter/xfilter/xfrow.hxx index 4b4e7c897474..0dd429d755ed 100644 --- a/lotuswordpro/source/filter/xfilter/xfrow.hxx +++ b/lotuswordpro/source/filter/xfilter/xfrow.hxx @@ -93,8 +93,6 @@ public: XFTable* GetOwnerTable(); - rtl::OUString GetRowName(); - virtual void ToXml(IXFStream *pStrm); void RemoveCell(sal_Int32 cell); diff --git a/lotuswordpro/source/filter/xfilter/xfrowstyle.cxx b/lotuswordpro/source/filter/xfilter/xfrowstyle.cxx index f7f361606f86..d522a0c04db8 100644 --- a/lotuswordpro/source/filter/xfilter/xfrowstyle.cxx +++ b/lotuswordpro/source/filter/xfilter/xfrowstyle.cxx @@ -67,14 +67,6 @@ XFRowStyle::XFRowStyle():m_fHeight(0) m_pBGImage = NULL; } - -void XFRowStyle::SetbackImage(XFBGImage *pImage) -{ - if( m_pBGImage ) - delete m_pBGImage; - m_pBGImage = pImage; -} - enumXFStyle XFRowStyle::GetStyleFamily() { return enumXFStyleTableRow; diff --git a/lotuswordpro/source/filter/xfilter/xfrowstyle.hxx b/lotuswordpro/source/filter/xfilter/xfrowstyle.hxx index 7efdea009258..f97aca90fe41 100644 --- a/lotuswordpro/source/filter/xfilter/xfrowstyle.hxx +++ b/lotuswordpro/source/filter/xfilter/xfrowstyle.hxx @@ -80,8 +80,6 @@ public: void SetBackColor(XFColor& color); - void SetbackImage(XFBGImage *pImage); - virtual enumXFStyle GetStyleFamily(); virtual void ToXml(IXFStream *pStrm); diff --git a/lotuswordpro/source/filter/xfilter/xfsection.cxx b/lotuswordpro/source/filter/xfilter/xfsection.cxx index dc3182285625..11371d693f3e 100644 --- a/lotuswordpro/source/filter/xfilter/xfsection.cxx +++ b/lotuswordpro/source/filter/xfilter/xfsection.cxx @@ -70,21 +70,6 @@ XFSection::~XFSection() { } -void XFSection::SetSectionName(rtl::OUString name) -{ - m_strSectionName = name; -} - -void XFSection::SetProtected(sal_Bool bProtected) -{ - m_bProtected = bProtected; -} - -void XFSection::SetHiden(sal_Bool hiden) -{ - m_bHiden = hiden; -} - void XFSection::ToXml(IXFStream *pStrm) { assert(m_strSectionName.getLength() > 0 ); diff --git a/lotuswordpro/source/filter/xfilter/xfsection.hxx b/lotuswordpro/source/filter/xfilter/xfsection.hxx index e2ae2e9aef97..fb3acb46c076 100644 --- a/lotuswordpro/source/filter/xfilter/xfsection.hxx +++ b/lotuswordpro/source/filter/xfilter/xfsection.hxx @@ -77,20 +77,6 @@ public: virtual ~XFSection(); public: - /** - * @descr Set section name. If not setted, i'll generate a name for it. - */ - void SetSectionName(rtl::OUString name); - - /** - * @descr Set protected. - */ - void SetProtected(sal_Bool bProtected); - - /** - * @descr Set hidden. - */ - void SetHiden(sal_Bool hiden); /** * @descr Output section obejct. diff --git a/lotuswordpro/source/filter/xfilter/xfsectionstyle.cxx b/lotuswordpro/source/filter/xfilter/xfsectionstyle.cxx index 3f0c95966db1..5f263b48b20e 100644 --- a/lotuswordpro/source/filter/xfilter/xfsectionstyle.cxx +++ b/lotuswordpro/source/filter/xfilter/xfsectionstyle.cxx @@ -91,11 +91,6 @@ void XFSectionStyle::SetMarginRight(double right) m_fMarginRight = right; } -void XFSectionStyle::SetBackColor(const XFColor& color) -{ - m_aBackColor = color; -} - void XFSectionStyle::SetColumns(XFColumns *pColumns) { if( m_pColumns ) @@ -103,13 +98,6 @@ void XFSectionStyle::SetColumns(XFColumns *pColumns) m_pColumns = pColumns; } -void XFSectionStyle::SetBackImage(XFBGImage *image) -{ - if( m_pBackImage ) - delete m_pBackImage; - m_pBackImage = image; -} - void XFSectionStyle::ToXml(IXFStream *pStrm) { IXFAttrList *pAttrList = pStrm->GetAttrList(); diff --git a/lotuswordpro/source/filter/xfilter/xfsectionstyle.hxx b/lotuswordpro/source/filter/xfilter/xfsectionstyle.hxx index dd61b76cf50b..07ef9737d2fe 100644 --- a/lotuswordpro/source/filter/xfilter/xfsectionstyle.hxx +++ b/lotuswordpro/source/filter/xfilter/xfsectionstyle.hxx @@ -82,12 +82,8 @@ public: void SetMarginRight(double right); - void SetBackColor(const XFColor& color); - void SetColumns(XFColumns *pColumns); - void SetBackImage(XFBGImage *image); - virtual enumXFStyle GetStyleFamily(); virtual void ToXml(IXFStream *pStrm); diff --git a/lotuswordpro/source/filter/xfilter/xfshadow.cxx b/lotuswordpro/source/filter/xfilter/xfshadow.cxx index 814478f9fcf8..718bbc27ab03 100644 --- a/lotuswordpro/source/filter/xfilter/xfshadow.cxx +++ b/lotuswordpro/source/filter/xfilter/xfshadow.cxx @@ -96,12 +96,6 @@ rtl::OUString XFShadow::ToString() return buf; } -void XFShadow::Reset() -{ - m_ePosition = enumXFShadowNone; - m_fOffset = 0; -} - void XFShadow::ToXml(IXFStream *pStrm) { IXFAttrList *pAttrList = pStrm->GetAttrList(); diff --git a/lotuswordpro/source/filter/xfilter/xfshadow.hxx b/lotuswordpro/source/filter/xfilter/xfshadow.hxx index db7c344a1830..463d9d9c72a2 100644 --- a/lotuswordpro/source/filter/xfilter/xfshadow.hxx +++ b/lotuswordpro/source/filter/xfilter/xfshadow.hxx @@ -106,8 +106,6 @@ public: */ XFColor GetColor(); - void Reset(); - rtl::OUString ToString(); virtual void ToXml(IXFStream *pStrm); diff --git a/lotuswordpro/source/filter/xfilter/xftable.cxx b/lotuswordpro/source/filter/xfilter/xftable.cxx index 5c6a500d78c7..3c1a460d3dad 100644 --- a/lotuswordpro/source/filter/xfilter/xftable.cxx +++ b/lotuswordpro/source/filter/xfilter/xftable.cxx @@ -201,19 +201,6 @@ sal_Int32 XFTable::GetColumnCount() colMax = it->first; } return colMax; -/* - if( m_aColumns.size()<1 ) - return 0; - std::map<sal_Int32,rtl::OUString>::iterator it = m_aColumns.end(); - it--; - return it->first;*/ -} - -rtl::OUString XFTable::GetColumnStyle(sal_Int32 col) -{ - if( m_aColumns.find(col) != m_aColumns.end() ) - return m_aColumns[col]; - return A2OUSTR(""); } enumXFContent XFTable::GetContentType() diff --git a/lotuswordpro/source/filter/xfilter/xftable.hxx b/lotuswordpro/source/filter/xfilter/xftable.hxx index 478c404cc522..41f20a389c27 100644 --- a/lotuswordpro/source/filter/xfilter/xftable.hxx +++ b/lotuswordpro/source/filter/xfilter/xftable.hxx @@ -104,8 +104,6 @@ public: sal_Int32 GetColumnCount(); - rtl::OUString GetColumnStyle(sal_Int32 col); - sal_Bool IsSubTable(); void Normalize(); diff --git a/lotuswordpro/source/filter/xfilter/xftextheading.cxx b/lotuswordpro/source/filter/xfilter/xftextheading.cxx deleted file mode 100644 index e7c7cd371ea4..000000000000 --- a/lotuswordpro/source/filter/xfilter/xftextheading.cxx +++ /dev/null @@ -1,105 +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 - * Heading text for OOo. - ************************************************************************/ -#include "xftextheading.hxx" -#include "xftextcontent.hxx" - -XFTextHeading::XFTextHeading() -{ - m_pContent = NULL; - m_nLevel = 0; -} - -XFTextHeading::~XFTextHeading() -{ - if( m_pContent ) - delete m_pContent; -} - -enumXFContent XFTextHeading::GetContentType() -{ - return enumXFContentHeading; -} - -void XFTextHeading::SetLevel(sal_Int16 level) -{ - m_nLevel = level; -} - -void XFTextHeading::SetText(rtl::OUString text) -{ - m_pContent = new XFTextContent(text); -} - -void XFTextHeading::ToXml(IXFStream *pStrm) -{ - rtl::OUString style = GetStyleName(); - IXFAttrList *pAttrList = pStrm->GetAttrList(); - - assert(m_nLevel>0); - pAttrList->Clear(); - if( style.getLength() ) - pAttrList->AddAttribute( A2OUSTR("text:style-name"), style ); - pAttrList->AddAttribute( A2OUSTR("text:level"), Int16ToOUString(m_nLevel) ); - - pStrm->StartElement( A2OUSTR("text:h") ); - m_pContent->ToXml(pStrm); - pStrm->EndElement( A2OUSTR("text:h") ); -} -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/lotuswordpro/source/filter/xfilter/xftextheading.hxx b/lotuswordpro/source/filter/xfilter/xftextheading.hxx deleted file mode 100644 index d047ed9c9b9b..000000000000 --- a/lotuswordpro/source/filter/xfilter/xftextheading.hxx +++ /dev/null @@ -1,90 +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 - * Heading text for OOo. - ************************************************************************/ -#ifndef _XFTEXTHEADING_HXX -#define _XFTEXTHEADING_HXX - -#include "xfglobal.hxx" -#include "xfcontent.hxx" - -class XFTextContent; -/** - * @descr - * <text:h> object. It has a single property text:level. - * This object use the same style type with <text:p> - */ -class XFTextHeading : public XFContent -{ -public: - XFTextHeading(); - virtual ~XFTextHeading(); - - void SetLevel(sal_Int16 level); - void SetText(rtl::OUString text); - - virtual enumXFContent GetContentType(); - virtual void ToXml(IXFStream *pStrm); -private: - XFTextContent *m_pContent; - sal_Int16 m_nLevel; -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/lotuswordpro/source/filter/xfilter/xftextspan.cxx b/lotuswordpro/source/filter/xfilter/xftextspan.cxx index af0563f0bbec..5000d727fa6e 100644 --- a/lotuswordpro/source/filter/xfilter/xftextspan.cxx +++ b/lotuswordpro/source/filter/xfilter/xftextspan.cxx @@ -94,33 +94,6 @@ enumXFContent XFTextSpan::GetContentType() return enumXFContentSpan; } -void XFTextSpan::SetText(rtl::OUString& text) -{ - m_aContents.clear(); - Add(text); -} - -rtl::OUString XFTextSpan::GetText() -{ - rtl::OUString text; - std::vector<IXFContent*>::iterator it; - - it = m_aContents.begin(); - if( it != m_aContents.end() ) - { - IXFContent *pContent = *it; - if( pContent->GetContentType() != enumXFContentText ) - { - assert(false); - } - XFTextContent *pText = (XFTextContent*)pContent; - if( pText ) - text = pText->GetText(); - } - - return text; -} - void XFTextSpan::Add(IXFContent *pContent) { m_aContents.push_back(pContent); diff --git a/lotuswordpro/source/filter/xfilter/xftextspan.hxx b/lotuswordpro/source/filter/xfilter/xftextspan.hxx index 87336144f70a..fa1746d35f83 100644 --- a/lotuswordpro/source/filter/xfilter/xftextspan.hxx +++ b/lotuswordpro/source/filter/xfilter/xftextspan.hxx @@ -74,8 +74,6 @@ public: virtual ~XFTextSpan(); - void SetText(rtl::OUString& text); - rtl::OUString GetText(); void Add(IXFContent *pContent); void Add(rtl::OUString& text); diff --git a/lotuswordpro/source/filter/xfilter/xftime.cxx b/lotuswordpro/source/filter/xfilter/xftime.cxx deleted file mode 100644 index f384198bf091..000000000000 --- a/lotuswordpro/source/filter/xfilter/xftime.cxx +++ /dev/null @@ -1,88 +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 - * Time field with time style. - ************************************************************************/ -#include "xftime.hxx" - -XFTime::XFTime() -{ - m_bFixed = 0; - rtl_zeroMemory(&m_aDateTime,sizeof(m_aDateTime)); -} - -XFTime::~XFTime() -{ -} - -void XFTime::ToXml(IXFStream *pStrm) -{ - IXFAttrList *pAttrList = pStrm->GetAttrList(); - - pAttrList->Clear(); - if( GetStyleName().getLength() > 0 ) - pAttrList->AddAttribute( A2OUSTR("style:data-style-name"), GetStyleName() ); - pAttrList->AddAttribute( A2OUSTR("text:time-value"), DateTimeToOUString(m_aDateTime) ); - if( m_bFixed ) - pAttrList->AddAttribute( A2OUSTR("text:fixed"), A2OUSTR("true") ); - - pStrm->StartElement( A2OUSTR("text:time") ); - pStrm->Characters(m_strText); - pStrm->EndElement( A2OUSTR("text:time") ); -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/lotuswordpro/source/filter/xfilter/xftime.hxx b/lotuswordpro/source/filter/xfilter/xftime.hxx deleted file mode 100644 index 4cecc6d5e00f..000000000000 --- a/lotuswordpro/source/filter/xfilter/xftime.hxx +++ /dev/null @@ -1,107 +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 - * Time field with time style. - ************************************************************************/ -#ifndef _XFTIME_HXX -#define _XFTIME_HXX - -#include "xfglobal.hxx" -#include "xfcontent.hxx" - -class XFTime : public XFContent -{ -public: - XFTime(); - - virtual ~XFTime(); - -public: - void SetDate(XFDateTime& dt); - - void SetText(rtl::OUString& text); - - void SetFixed(sal_Bool fixed = sal_True); - - virtual void ToXml(IXFStream *pStrm); - -private: - sal_Bool m_bFixed; - - rtl::OUString m_strText; - - XFDateTime m_aDateTime; -}; - -inline void XFTime::SetDate(XFDateTime& dt) -{ - m_aDateTime = dt; -} - -inline void XFTime::SetText(rtl::OUString& text) -{ - m_strText = text; -} - -inline void XFTime::SetFixed(sal_Bool fixed) -{ - m_bFixed = fixed; -} - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |