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

ditch some junk

üst 2b4d91f5
...@@ -2078,59 +2078,6 @@ sal_uInt8 LwpPlacableLayout::GetRelativeType() ...@@ -2078,59 +2078,6 @@ sal_uInt8 LwpPlacableLayout::GetRelativeType()
return LwpVirtualLayout::GetRelativeType(); return LwpVirtualLayout::GetRelativeType();
} }
/** /**
* @descr: Get relative from where type
*
*/
sal_uInt8 LwpPlacableLayout::GetRelativeFromWhere()
{
LwpLayoutRelativity* pLayRel = GetRelativityPiece();
if(pLayRel)
{
return pLayRel->GetRelGuts()->GetRelativeFromWhere();
}
return 0;
}
/**
* @descr: Get relative distance
*
*/
LwpPoint LwpPlacableLayout::GetRelativeDistance()
{
LwpPoint aPoint;
LwpLayoutRelativity* pLayRel = GetRelativityPiece();
if(pLayRel)
{
aPoint = pLayRel->GetRelGuts()->GetRelativeDistance();
}
return aPoint;
}
/**
* @descr: Get tether type
*
*/
sal_uInt8 LwpPlacableLayout::GetTetherType()
{
LwpLayoutRelativity* pLayRel = GetRelativityPiece();
if(pLayRel)
{
return pLayRel->GetRelGuts()->GetTetherType();
}
return 0;
}
/**
* @descr: Get tether where type
*
*/
sal_uInt8 LwpPlacableLayout::GetTetherWhere()
{
LwpLayoutRelativity* pLayRel = GetRelativityPiece();
if(pLayRel)
{
return pLayRel->GetRelGuts()->GetTetherWhere();
}
return 0;
}
/**
* @descr: Get offset from the baseline * @descr: Get offset from the baseline
* *
*/ */
......
...@@ -420,10 +420,6 @@ public: ...@@ -420,10 +420,6 @@ public:
virtual sal_uInt8 GetWrapType(); virtual sal_uInt8 GetWrapType();
virtual LwpLayoutRelativity* GetRelativityPiece(); virtual LwpLayoutRelativity* GetRelativityPiece();
virtual sal_uInt8 GetRelativeType(); virtual sal_uInt8 GetRelativeType();
sal_uInt8 GetRelativeFromWhere();
LwpPoint GetRelativeDistance();
sal_uInt8 GetTetherType();
sal_uInt8 GetTetherWhere();
virtual sal_Int32 GetBaseLineOffset(); virtual sal_Int32 GetBaseLineOffset();
virtual sal_Bool IsAnchorPage(); virtual sal_Bool IsAnchorPage();
virtual sal_Bool IsAnchorFrame(); virtual sal_Bool IsAnchorFrame();
......
...@@ -479,10 +479,4 @@ void LwpRowHeadingLayout::Read() ...@@ -479,10 +479,4 @@ void LwpRowHeadingLayout::Read()
m_pObjStrm->SkipExtra(); m_pObjStrm->SkipExtra();
} }
LwpRowLayout * LwpRowHeadingLayout::GetRowLayout()
{
LwpRowLayout * pRow = dynamic_cast<LwpRowLayout *>(cRowLayout.obj());
return pRow;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -126,7 +126,6 @@ public: ...@@ -126,7 +126,6 @@ public:
LwpRowHeadingLayout(LwpObjectHeader &objHdr, LwpSvStream* pStrm); LwpRowHeadingLayout(LwpObjectHeader &objHdr, LwpSvStream* pStrm);
virtual ~LwpRowHeadingLayout(); virtual ~LwpRowHeadingLayout();
virtual LWP_LAYOUT_TYPE GetLayoutType () { return LWP_ROW_HEADING_LAYOUT;} virtual LWP_LAYOUT_TYPE GetLayoutType () { return LWP_ROW_HEADING_LAYOUT;}
LwpRowLayout * GetRowLayout();
protected: protected:
void Read(); void Read();
LwpObjectID cRowLayout; LwpObjectID cRowLayout;
......
...@@ -89,13 +89,6 @@ void LwpSortOption::Read(LwpObjectStream *pStrm) ...@@ -89,13 +89,6 @@ void LwpSortOption::Read(LwpObjectStream *pStrm)
} }
pStrm->SkipExtra(); pStrm->SkipExtra();
} }
/**
* @descr skip the sort option
**/
void LwpSortOption::Skip(LwpObjectStream *pStrm)
{
pStrm->SeekRel(DiskSize());
}
/** /**
* @descr return the disk size * @descr return the disk size
**/ **/
......
...@@ -92,7 +92,6 @@ public: ...@@ -92,7 +92,6 @@ public:
~LwpSortOption(){} ~LwpSortOption(){}
public: public:
void Read(LwpObjectStream *pStrm); void Read(LwpObjectStream *pStrm);
void Skip(LwpObjectStream *pStrm);
sal_uInt16 DiskSize(); sal_uInt16 DiskSize();
private: private:
LwpSortKey m_Keys[3]; LwpSortKey m_Keys[3];
......
...@@ -323,30 +323,6 @@ sal_Bool LwpStory::IsNeedSection() ...@@ -323,30 +323,6 @@ sal_Bool LwpStory::IsNeedSection()
} }
return bNewSection; return bNewSection;
} }
/**************************************************************************
* @descr: process frame which anchor type is to page, frame or cell
* @param:
* @param:
* @return:
**************************************************************************/
void LwpStory::XFConvertFrame(XFContentContainer* pCont)
{
LwpVirtualLayout* pLayout = GetLayout(NULL);
while(pLayout)
{
LwpVirtualLayout* pFrameLayout = dynamic_cast<LwpVirtualLayout*>(pLayout->GetChildHead()->obj());
while(pFrameLayout)
{
if((pFrameLayout->IsAnchorPage()&&(pFrameLayout->IsFrame()||pFrameLayout->IsSuperTable()||pFrameLayout->IsGroupHead()))
||(pFrameLayout->IsAnchorFrame()))
{
pFrameLayout->XFConvert(pCont);
}
pFrameLayout = dynamic_cast<LwpVirtualLayout*>(pFrameLayout->GetNext()->obj());
}
pLayout = GetLayout(pLayout);
}
}
/************************************************************************** /**************************************************************************
* @descr: process frame which anchor type is to cell * @descr: process frame which anchor type is to cell
* @param: * @param:
......
...@@ -97,7 +97,6 @@ private: ...@@ -97,7 +97,6 @@ private:
protected: protected:
void Read(); void Read();
void XFConvertFrame(XFContentContainer* pCont);
void XFConvertFrameInCell(XFContentContainer* pCont); void XFConvertFrameInCell(XFContentContainer* pCont);
void XFConvertFrameInFrame(XFContentContainer* pCont); void XFConvertFrameInFrame(XFContentContainer* pCont);
void XFConvertFrameInHeaderFooter(XFContentContainer* pCont); void XFConvertFrameInHeaderFooter(XFContentContainer* pCont);
......
...@@ -405,18 +405,6 @@ void LwpSuperTableLayout::XFConvertFrame(XFContentContainer* pCont, sal_Int32 n ...@@ -405,18 +405,6 @@ void LwpSuperTableLayout::XFConvertFrame(XFContentContainer* pCont, sal_Int32 n
} }
} }
/**
* @short parse frame
* @param
* @return
*/
void LwpSuperTableLayout::ParseFrame(XFFrame * pXFFrame)
{
if(m_pFrame)
{
m_pFrame->Parse(pXFFrame);
}
}
/** /**
* @short register frame style * @short register frame style
* @param * @param
......
...@@ -179,7 +179,6 @@ public: ...@@ -179,7 +179,6 @@ public:
void XFConvert(XFContentContainer* pCont); void XFConvert(XFContentContainer* pCont);
// for frame style // for frame style
virtual void XFConvertFrame(XFContentContainer* pCont, sal_Int32 nStart = 0, sal_Int32 nEnd = 0, sal_Bool bAll = sal_False); virtual void XFConvertFrame(XFContentContainer* pCont, sal_Int32 nStart = 0, sal_Int32 nEnd = 0, sal_Bool bAll = sal_False);
void ParseFrame(XFFrame* pXFFrame);
void RegisterFrameStyle(); void RegisterFrameStyle();
LwpTableHeadingLayout* GetTableHeadingLayout(); LwpTableHeadingLayout* GetTableHeadingLayout();
protected: protected:
......
...@@ -61,10 +61,7 @@ ...@@ -61,10 +61,7 @@
#define ATTRIBUTE_SALT "manifest:salt" #define ATTRIBUTE_SALT "manifest:salt"
#define ATTRIBUTE_ITERATION_COUNT "manifest:iteration-count" #define ATTRIBUTE_ITERATION_COUNT "manifest:iteration-count"
#define SHA256_URL "http://www.w3.org/2001/04/xmlenc#sha256" #define SHA256_URL "http://www.w3.org/2000/09/xmldsig#sha256"
//http://tools.oasis-open.org/issues/browse/OFFICE-3702
//http://tools.oasis-open.org/issues/browse/OFFICE-3708
#define SHA256_URL_TYPO "http://www.w3.org/2000/09/xmldsig#sha256"
#define SHA1_NAME "SHA1" #define SHA1_NAME "SHA1"
#define SHA1_URL "http://www.w3.org/2000/09/xmldsig#sha1" #define SHA1_URL "http://www.w3.org/2000/09/xmldsig#sha1"
......
...@@ -88,7 +88,6 @@ ManifestImport::ManifestImport( vector < Sequence < PropertyValue > > & rNewManV ...@@ -88,7 +88,6 @@ ManifestImport::ManifestImport( vector < Sequence < PropertyValue > > & rNewManV
, sWhiteSpace ( RTL_CONSTASCII_USTRINGPARAM ( " " ) ) , sWhiteSpace ( RTL_CONSTASCII_USTRINGPARAM ( " " ) )
, sSHA256_URL ( RTL_CONSTASCII_USTRINGPARAM ( SHA256_URL ) ) , sSHA256_URL ( RTL_CONSTASCII_USTRINGPARAM ( SHA256_URL ) )
, sSHA256_URL_TYPO ( RTL_CONSTASCII_USTRINGPARAM ( SHA256_URL_TYPO ) )
, sSHA1_Name ( RTL_CONSTASCII_USTRINGPARAM ( SHA1_NAME ) ) , sSHA1_Name ( RTL_CONSTASCII_USTRINGPARAM ( SHA1_NAME ) )
, sSHA1_URL ( RTL_CONSTASCII_USTRINGPARAM ( SHA1_URL ) ) , sSHA1_URL ( RTL_CONSTASCII_USTRINGPARAM ( SHA1_URL ) )
...@@ -282,7 +281,7 @@ void SAL_CALL ManifestImport::startElement( const OUString& aName, const uno::Re ...@@ -282,7 +281,7 @@ void SAL_CALL ManifestImport::startElement( const OUString& aName, const uno::Re
else if ( aConvertedName == sStartKeyAlgElement ) else if ( aConvertedName == sStartKeyAlgElement )
{ {
OUString aString = aConvertedAttribs[sStartKeyAlgNameAttribute]; OUString aString = aConvertedAttribs[sStartKeyAlgNameAttribute];
if (aString.equals(sSHA256_URL) || aString.equals(sSHA256_URL_TYPO)) if ( aString.equals( sSHA256_URL ) )
{ {
aSequence[nNumProperty].Name = sStartKeyAlgProperty; aSequence[nNumProperty].Name = sStartKeyAlgProperty;
aSequence[nNumProperty++].Value <<= xml::crypto::DigestID::SHA256; aSequence[nNumProperty++].Value <<= xml::crypto::DigestID::SHA256;
......
...@@ -106,7 +106,6 @@ protected: ...@@ -106,7 +106,6 @@ protected:
const ::rtl::OUString sWhiteSpace; const ::rtl::OUString sWhiteSpace;
const ::rtl::OUString sSHA256_URL; const ::rtl::OUString sSHA256_URL;
const ::rtl::OUString sSHA256_URL_TYPO;
const ::rtl::OUString sSHA1_Name; const ::rtl::OUString sSHA1_Name;
const ::rtl::OUString sSHA1_URL; const ::rtl::OUString sSHA1_URL;
......
...@@ -376,14 +376,6 @@ LwpObjectID::GetBuffer(char*) ...@@ -376,14 +376,6 @@ LwpObjectID::GetBuffer(char*)
LwpObjectID::ReadCompressed(LwpSvStream*, LwpObjectID&) LwpObjectID::ReadCompressed(LwpSvStream*, LwpObjectID&)
LwpObjectStream::QuickReadInt8(bool*) LwpObjectStream::QuickReadInt8(bool*)
LwpPara::OverrideTab(LwpTabOverride*, LwpTabOverride*, XFParaStyle*) LwpPara::OverrideTab(LwpTabOverride*, LwpTabOverride*, XFParaStyle*)
LwpPlacableLayout::GetRelativeDistance()
LwpPlacableLayout::GetRelativeFromWhere()
LwpPlacableLayout::GetTetherType()
LwpPlacableLayout::GetTetherWhere()
LwpRowHeadingLayout::GetRowLayout()
LwpSortOption::Skip(LwpObjectStream*)
LwpStory::XFConvertFrame(XFContentContainer*)
LwpSuperTableLayout::ParseFrame(XFFrame*)
MSDffImportRecords::Insert(MSDffImportRecords const*, unsigned short, unsigned short) MSDffImportRecords::Insert(MSDffImportRecords const*, unsigned short, unsigned short)
MSDffImportRecords::Insert(SvxMSDffImportRec* const&, unsigned short&) MSDffImportRecords::Insert(SvxMSDffImportRec* const&, unsigned short&)
MSDffImportRecords::Insert(SvxMSDffImportRec* const*, unsigned short) MSDffImportRecords::Insert(SvxMSDffImportRec* const*, unsigned short)
......
...@@ -56,7 +56,6 @@ XML_CONSTASCII_ACTION( sXML_CDATA, "CDATA" ); ...@@ -56,7 +56,6 @@ XML_CONSTASCII_ACTION( sXML_CDATA, "CDATA" );
XML_CONSTASCII_ACTION( sXML_WS, " " ); XML_CONSTASCII_ACTION( sXML_WS, " " );
XML_CONSTASCII_ACTION( sXML_xml, "xml" ); XML_CONSTASCII_ACTION( sXML_xml, "xml" );
XML_CONSTASCII_ACTION( sXML_xmlns, "xmlns" ); XML_CONSTASCII_ACTION( sXML_xmlns, "xmlns" );
XML_CONSTASCII_ACTION( sXML_xml_pi, "version=\"1.0\" encoding=\"UTF-8\"" );
XML_CONSTASCII_ACTION( sXML_xml_doctype_prefix, "<!DOCTYPE " ); XML_CONSTASCII_ACTION( sXML_xml_doctype_prefix, "<!DOCTYPE " );
XML_CONSTASCII_ACTION( sXML_xml_doctype_suffix, " PUBLIC \"-//OpenOffice.org//DTD OfficeDocument 1.0//EN\" \"office.dtd\">" ); XML_CONSTASCII_ACTION( sXML_xml_doctype_suffix, " PUBLIC \"-//OpenOffice.org//DTD OfficeDocument 1.0//EN\" \"office.dtd\">" );
......
...@@ -1369,9 +1369,6 @@ sal_uInt32 SvXMLExport::exportDoc( enum ::xmloff::token::XMLTokenEnum eClass ) ...@@ -1369,9 +1369,6 @@ sal_uInt32 SvXMLExport::exportDoc( enum ::xmloff::token::XMLTokenEnum eClass )
mxHandler->startDocument(); mxHandler->startDocument();
// <?xml version="1.0" encoding="UTF-8"?>
// xHandler->processingInstruction( S2U( sXML_xml ), S2U( sXML_xml_pi ) );
// <office:document ...> // <office:document ...>
CheckAttrList(); CheckAttrList();
......
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