LibreOffice Module sc (master) 1
|
#include <rtl/math.hxx>
#include <rtl/character.hxx>
#include <string.h>
#include <scitems.hxx>
#include <patattr.hxx>
#include <docpool.hxx>
#include <editeng/postitem.hxx>
#include <editeng/udlnitem.hxx>
#include <editeng/wghtitem.hxx>
#include <editeng/justifyitem.hxx>
#include <unotools/configmgr.hxx>
#include <formulacell.hxx>
#include <document.hxx>
#include <postit.hxx>
#include <op.h>
#include <optab.h>
#include <tool.h>
#include "lotfilter.hxx"
#include <lotform.hxx>
#include <lotrange.hxx>
#include <ftools.hxx>
#include <vector>
#include <map>
#include <memory>
Go to the source code of this file.
Functions | |
void | NI (LotusContext &, SvStream &r, sal_uInt16 n) |
void | OP_BOF (LotusContext &, SvStream &r, sal_uInt16) |
void | OP_EOF (LotusContext &rContext, SvStream &, sal_uInt16) |
void | OP_Integer (LotusContext &rContext, SvStream &r, sal_uInt16) |
void | OP_Number (LotusContext &rContext, SvStream &r, sal_uInt16) |
void | OP_Label (LotusContext &rContext, SvStream &r, sal_uInt16 n) |
void | OP_Formula (LotusContext &rContext, SvStream &r, sal_uInt16) |
void | OP_ColumnWidth (LotusContext &rContext, SvStream &r, sal_uInt16) |
void | OP_NamedRange (LotusContext &rContext, SvStream &r, sal_uInt16) |
void | OP_SymphNamedRange (LotusContext &rContext, SvStream &r, sal_uInt16) |
void | OP_Footer (LotusContext &, SvStream &r, sal_uInt16 n) |
void | OP_Header (LotusContext &, SvStream &r, sal_uInt16 n) |
void | OP_Margins (LotusContext &, SvStream &r, sal_uInt16 n) |
void | OP_HiddenCols (LotusContext &rContext, SvStream &r, sal_uInt16) |
void | OP_Window1 (LotusContext &rContext, SvStream &r, sal_uInt16 n) |
void | OP_Blank (LotusContext &rContext, SvStream &r, sal_uInt16) |
void | OP_BOF123 (LotusContext &, SvStream &r, sal_uInt16) |
void | OP_EOF123 (LotusContext &rContext, SvStream &, sal_uInt16) |
void | OP_Label123 (LotusContext &rContext, SvStream &r, sal_uInt16 n) |
void | OP_Number123 (LotusContext &rContext, SvStream &r, sal_uInt16) |
void | OP_Formula123 (LotusContext &rContext, SvStream &r, sal_uInt16 n) |
void | OP_IEEENumber123 (LotusContext &rContext, SvStream &r, sal_uInt16) |
void | OP_Note123 (LotusContext &rContext, SvStream &r, sal_uInt16 n) |
void | OP_HorAlign123 (LotusContext &, sal_uInt8 nAlignPattern, SfxItemSet &rPatternItemSet) |
void | OP_VerAlign123 (LotusContext &, sal_uInt8 nAlignPattern, SfxItemSet &rPatternItemSet) |
void | OP_CreatePattern123 (LotusContext &rContext, SvStream &r, sal_uInt16 n) |
void | OP_SheetName123 (LotusContext &rContext, SvStream &rStream, sal_uInt16 nLength) |
void | OP_ApplyPatternArea123 (LotusContext &rContext, SvStream &rStream) |
Variables | |
static sal_uInt16 | nDefWidth = sal_uInt16( TWIPS_PER_CHAR * 10 ) |
void NI | ( | LotusContext & | rContext, |
SvStream & | r, | ||
sal_uInt16 | n | ||
) |
Definition at line 52 of file op.cxx.
References n, and SvStream::SeekRel().
void OP_ApplyPatternArea123 | ( | LotusContext & | rContext, |
SvStream & | rStream | ||
) |
Definition at line 611 of file op.cxx.
References LotusContext::aLotusPatternPool, ScDocument::ApplyPatternAreaTab(), COL_FORMAT_MARKER, SvStream::good(), i, LOTUS_FORMAT_INDEX, LOTUS_FORMAT_INFO, nLength, LotusContext::rDoc, SvStream::ReadUInt16(), ROW_FORMAT_MARKER, SanitizeTab(), and SvStream::SeekRel().
Referenced by generate_Opcodes().
void OP_Blank | ( | LotusContext & | rContext, |
SvStream & | r, | ||
sal_uInt16 | nLength | ||
) |
Definition at line 341 of file op.cxx.
References nFractionalFloat, SvStream::ReadUChar(), SvStream::ReadUInt16(), and SetFormat().
void OP_BOF | ( | LotusContext & | rContext, |
SvStream & | r, | ||
sal_uInt16 | nLength | ||
) |
Definition at line 57 of file op.cxx.
References SvStream::SeekRel().
void OP_BOF123 | ( | LotusContext & | rContext, |
SvStream & | r, | ||
sal_uInt16 | nLength | ||
) |
Definition at line 352 of file op.cxx.
References SvStream::SeekRel().
void OP_ColumnWidth | ( | LotusContext & | rContext, |
SvStream & | r, | ||
sal_uInt16 | nLength | ||
) |
Definition at line 170 of file op.cxx.
References nDefWidth, LotusContext::rDoc, SvStream::ReadUChar(), SvStream::ReadUInt16(), ScDocument::SanitizeCol(), ScDocument::SetColHidden(), ScDocument::SetColWidth(), TWIPS_PER_CHAR, and ScDocument::ValidCol().
void OP_CreatePattern123 | ( | LotusContext & | rContext, |
SvStream & | r, | ||
sal_uInt16 | n | ||
) |
Definition at line 534 of file op.cxx.
References LotusContext::aLotusPatternPool, ATTR_FONT_POSTURE(), ATTR_FONT_UNDERLINE(), ATTR_FONT_WEIGHT(), ScPatternAttr::GetItemSet(), ScDocument::GetPool(), ITALIC_NORMAL, LINESTYLE_SINGLE, n, OP_HorAlign123(), OP_VerAlign123(), SfxItemSet::Put(), LotusContext::rDoc, SvStream::ReadUChar(), SvStream::ReadUInt16(), SvStream::SeekRel(), and WEIGHT_BOLD.
void OP_EOF | ( | LotusContext & | rContext, |
SvStream & | aStream, | ||
sal_uInt16 | nLength | ||
) |
Definition at line 62 of file op.cxx.
References LotusContext::bEOF.
void OP_EOF123 | ( | LotusContext & | rContext, |
SvStream & | aStream, | ||
sal_uInt16 | nLength | ||
) |
Definition at line 357 of file op.cxx.
References LotusContext::bEOF.
void OP_Footer | ( | LotusContext & | rContext, |
SvStream & | r, | ||
sal_uInt16 | n | ||
) |
Definition at line 277 of file op.cxx.
References n, and SvStream::SeekRel().
void OP_Formula | ( | LotusContext & | rContext, |
SvStream & | r, | ||
sal_uInt16 | nLength | ||
) |
Definition at line 134 of file op.cxx.
References ScFormulaCell::AddRecalcMode(), LotusToSc::Convert(), LotusContext::eCharset, ScDocument::EnsureTable(), ScDocument::GetSharedStringPool(), LotusConverterBase::good(), nFractionalFloat, LotusContext::rDoc, SvStream::ReadUChar(), SvStream::ReadUInt16(), LotusToSc::Reset(), SvStream::SeekRel(), SetFormat(), ScDocument::SetFormulaCell(), and ScDocument::ValidColRow().
void OP_Formula123 | ( | LotusContext & | rContext, |
SvStream & | r, | ||
sal_uInt16 | n | ||
) |
Definition at line 400 of file op.cxx.
References ScFormulaCell::AddRecalcMode(), LotusToSc::Convert(), LotusContext::eCharset, ScDocument::EnsureTable(), ScDocument::GetMaxTableNumber(), ScDocument::GetSharedStringPool(), LotusConverterBase::good(), n, LotusContext::rDoc, SvStream::ReadUChar(), SvStream::ReadUInt16(), LotusToSc::Reset(), SvStream::SeekRel(), ScDocument::SetFormulaCell(), and ScDocument::ValidAddress().
void OP_Header | ( | LotusContext & | rContext, |
SvStream & | r, | ||
sal_uInt16 | n | ||
) |
Definition at line 282 of file op.cxx.
References n, and SvStream::SeekRel().
void OP_HiddenCols | ( | LotusContext & | rContext, |
SvStream & | r, | ||
sal_uInt16 | nLength | ||
) |
Definition at line 292 of file op.cxx.
References nBit, nCount, LotusContext::rDoc, SvStream::ReadUChar(), and ScDocument::SetColHidden().
void OP_HorAlign123 | ( | LotusContext & | rContext, |
sal_uInt8 | nAlignPattern, | ||
SfxItemSet & | rPatternItemSet | ||
) |
Definition at line 472 of file op.cxx.
References ATTR_HOR_JUSTIFY(), and SfxItemSet::Put().
Referenced by OP_CreatePattern123().
void OP_IEEENumber123 | ( | LotusContext & | rContext, |
SvStream & | r, | ||
sal_uInt16 | n | ||
) |
Definition at line 431 of file op.cxx.
References ScDocument::EnsureTable(), ScDocument::GetMaxTableNumber(), LotusContext::rDoc, SvStream::ReadDouble(), SvStream::ReadUChar(), SvStream::ReadUInt16(), ScDocument::SetValue(), and ScDocument::ValidAddress().
void OP_Integer | ( | LotusContext & | rContext, |
SvStream & | r, | ||
sal_uInt16 | nLength | ||
) |
Definition at line 67 of file op.cxx.
References ScDocument::EnsureTable(), nValue, LotusContext::rDoc, SvStream::ReadInt16(), SvStream::ReadUChar(), SvStream::ReadUInt16(), SetFormat(), ScDocument::SetValue(), and ScDocument::ValidAddress().
void OP_Label | ( | LotusContext & | rContext, |
SvStream & | r, | ||
sal_uInt16 | n | ||
) |
Definition at line 109 of file op.cxx.
References n, nFractionalStd, PutFormString(), LotusContext::rDoc, SvStream::ReadBytes(), SvStream::ReadUChar(), SvStream::ReadUInt16(), SetFormat(), and ScDocument::ValidColRow().
void OP_Label123 | ( | LotusContext & | rContext, |
SvStream & | r, | ||
sal_uInt16 | n | ||
) |
Definition at line 362 of file op.cxx.
References n, PutFormString(), SvStream::ReadBytes(), SvStream::ReadUChar(), and SvStream::ReadUInt16().
void OP_Margins | ( | LotusContext & | rContext, |
SvStream & | r, | ||
sal_uInt16 | n | ||
) |
Definition at line 287 of file op.cxx.
References n, and SvStream::SeekRel().
void OP_NamedRange | ( | LotusContext & | rContext, |
SvStream & | r, | ||
sal_uInt16 | nLength | ||
) |
Definition at line 195 of file op.cxx.
References LotusRangeList::Append(), ScfTools::ConvertToScDefinedName(), LotusContext::eCharset, SvStream::good(), LotusContext::maRangeNames, LotusContext::rDoc, SvStream::ReadBytes(), SvStream::ReadUInt16(), and ScDocument::ValidColRow().
void OP_Note123 | ( | LotusContext & | rContext, |
SvStream & | r, | ||
sal_uInt16 | n | ||
) |
Definition at line 450 of file op.cxx.
References ScNoteUtil::CreateNoteFromString(), LotusContext::eCharset, n, LotusContext::rDoc, SvStream::ReadBytes(), SvStream::ReadUChar(), and SvStream::ReadUInt16().
void OP_Number | ( | LotusContext & | rContext, |
SvStream & | r, | ||
sal_uInt16 | nLength | ||
) |
Definition at line 88 of file op.cxx.
References ScDocument::EnsureTable(), nFractionalFloat, LotusContext::rDoc, SvStream::ReadDouble(), SvStream::ReadUChar(), SvStream::ReadUInt16(), SetFormat(), ScDocument::SetValue(), and ScDocument::ValidAddress().
void OP_Number123 | ( | LotusContext & | rContext, |
SvStream & | r, | ||
sal_uInt16 | nLength | ||
) |
Definition at line 380 of file op.cxx.
References ScDocument::EnsureTable(), ScDocument::GetMaxTableNumber(), nValue, LotusContext::rDoc, SvStream::ReadUChar(), SvStream::ReadUInt16(), SvStream::ReadUInt32(), ScDocument::SetValue(), Snum32ToDouble(), and ScDocument::ValidAddress().
void OP_SheetName123 | ( | LotusContext & | rContext, |
SvStream & | rStream, | ||
sal_uInt16 | nLength | ||
) |
Definition at line 583 of file op.cxx.
References aName, LotusContext::eCharset, ScDocument::MakeTable(), nLength, LotusContext::rDoc, SvStream::ReadBytes(), SvStream::ReadUInt16(), ScDocument::RenameTab(), SvStream::SeekRel(), and ValidTab().
void OP_SymphNamedRange | ( | LotusContext & | rContext, |
SvStream & | r, | ||
sal_uInt16 | nLength | ||
) |
Definition at line 236 of file op.cxx.
References LotusRangeList::Append(), ScfTools::ConvertToScDefinedName(), LotusContext::eCharset, SvStream::good(), LotusContext::maRangeNames, nType, LotusContext::rDoc, SvStream::ReadBytes(), SvStream::ReadUChar(), SvStream::ReadUInt16(), and ScDocument::ValidColRow().
void OP_VerAlign123 | ( | LotusContext & | rContext, |
sal_uInt8 | nAlignPattern, | ||
SfxItemSet & | rPatternItemSet | ||
) |
Definition at line 505 of file op.cxx.
References ATTR_VER_JUSTIFY(), and SfxItemSet::Put().
Referenced by OP_CreatePattern123().
void OP_Window1 | ( | LotusContext & | rContext, |
SvStream & | r, | ||
sal_uInt16 | n | ||
) |
Definition at line 313 of file op.cxx.
References SvStream::good(), utl::ConfigManager::IsFuzzing(), ScDocument::MaxCol(), n, nDefWidth, LotusContext::rDoc, SvStream::ReadUChar(), SvStream::ReadUInt16(), SvStream::SeekRel(), ScDocument::SetColWidth(), and TWIPS_PER_CHAR.
|
static |
Definition at line 50 of file op.cxx.
Referenced by OP_ColumnWidth(), OP_Window1(), and XclImpColRowSettings::SetDefWidth().