loplugin:unusedmethods sc
Change-Id: I7bdb1889a942d63370731764a58f4ab524dedd8a Reviewed-on: https://gerrit.libreoffice.org/17287 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
This commit is contained in:
committed by
Noel Grandin
parent
561cebeeba
commit
96d44c9b07
@@ -74,13 +74,31 @@ public:
|
||||
bool VisitVarDecl( const VarDecl* );
|
||||
};
|
||||
|
||||
static std::string niceName(const FunctionDecl* functionDecl)
|
||||
/**
|
||||
* We need to include the template params when we are building the set
|
||||
* of functions we have walked already, because we need to rewalk anything instantiated with different params
|
||||
*/
|
||||
enum class NiceNameIncludeTemplateParams { NO, YES };
|
||||
static std::string niceName(const FunctionDecl* functionDecl, NiceNameIncludeTemplateParams eIncludeTemplateParams = NiceNameIncludeTemplateParams::NO)
|
||||
{
|
||||
std::string s =
|
||||
compat::getReturnType(*functionDecl).getCanonicalType().getAsString()
|
||||
+ " ";
|
||||
if (isa<CXXMethodDecl>(functionDecl)) {
|
||||
s += dyn_cast<CXXMethodDecl>(functionDecl)->getParent()->getQualifiedNameAsString() + "::";
|
||||
const CXXRecordDecl* recordDecl = dyn_cast<CXXMethodDecl>(functionDecl)->getParent();
|
||||
s += recordDecl->getQualifiedNameAsString();
|
||||
if (eIncludeTemplateParams == NiceNameIncludeTemplateParams::YES
|
||||
&& isa<ClassTemplateSpecializationDecl>(recordDecl))
|
||||
{
|
||||
const ClassTemplateSpecializationDecl* templateDecl = dyn_cast<ClassTemplateSpecializationDecl>(recordDecl);
|
||||
s += "<";
|
||||
for(size_t i=0; i < templateDecl->getTemplateArgs().size(); i++)
|
||||
{
|
||||
s += " ," + templateDecl->getTemplateArgs()[i].getAsType().getAsString();
|
||||
}
|
||||
s += ">";
|
||||
}
|
||||
s += "::";
|
||||
}
|
||||
s += functionDecl->getNameAsString() + "(";
|
||||
bool bFirst = true;
|
||||
@@ -164,7 +182,7 @@ bool UnusedMethods::VisitCallExpr(CallExpr* expr)
|
||||
// if the function is templated. However, if we are inside a template function,
|
||||
// calling another function on the same template, the same problem occurs.
|
||||
// Rather than tracking all of that, just traverse anything we have not already traversed.
|
||||
if (traversedFunctionSet.insert(niceName(calleeFunctionDecl)).second)
|
||||
if (traversedFunctionSet.insert(niceName(calleeFunctionDecl, NiceNameIncludeTemplateParams::YES)).second)
|
||||
TraverseFunctionDecl(calleeFunctionDecl);
|
||||
|
||||
logCallToRootMethods(calleeFunctionDecl);
|
||||
|
||||
@@ -56,6 +56,7 @@ exclusionSet = set([
|
||||
"_Bool connectivity::OColumn::isWritable() const",
|
||||
"_Bool IDocumentLinksAdministration::GetData(const class rtl::OUString &,const class rtl::OUString &,class com::sun::star::uno::Any &) const",
|
||||
"_Bool IDocumentLinksAdministration::SetData(const class rtl::OUString &,const class rtl::OUString &,const class com::sun::star::uno::Any &)",
|
||||
"_Bool ScImportExport::ImportData(const class rtl::OUString &,const class com::sun::star::uno::Any &)",
|
||||
# instantiated from templates, not sure why it is not being picked up
|
||||
"class basegfx::B2DPolygon OutputDevice::PixelToLogic(const class basegfx::B2DPolygon &,const class MapMode &) const",
|
||||
"type-parameter-0-0 * detail::cloner::clone(type-parameter-0-0 *const)",
|
||||
|
||||
@@ -25,8 +25,6 @@
|
||||
class ScAddInCfg : public utl::ConfigItem
|
||||
{
|
||||
private:
|
||||
com::sun::star::uno::Sequence<OUString> GetPropertyNames();
|
||||
|
||||
virtual void ImplCommit() SAL_OVERRIDE;
|
||||
|
||||
public:
|
||||
|
||||
@@ -34,8 +34,6 @@ public:
|
||||
CLBuildKernelThread();
|
||||
virtual ~CLBuildKernelThread();
|
||||
|
||||
void finish();
|
||||
|
||||
void push(CLBuildKernelWorkItem item);
|
||||
|
||||
osl::Condition maCompilationDoneCondition;
|
||||
@@ -47,8 +45,6 @@ private:
|
||||
osl::Mutex maQueueMutex;
|
||||
osl::Condition maQueueCondition;
|
||||
std::queue<CLBuildKernelWorkItem> maQueue;
|
||||
static void produce();
|
||||
static void consume();
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -50,27 +50,15 @@ public:
|
||||
static inline void FillApiRange(
|
||||
::com::sun::star::table::CellRangeAddress& rApiRange,
|
||||
const ScRange& rScRange );
|
||||
// CellAddress -> CellRangeAddress
|
||||
static inline void FillApiRange(
|
||||
::com::sun::star::table::CellRangeAddress& rApiRange,
|
||||
const ::com::sun::star::table::CellAddress& rApiAddress );
|
||||
// CellRangeAddress-Start -> CellAddress
|
||||
static inline void FillApiStartAddress(
|
||||
::com::sun::star::table::CellAddress& rApiAddress,
|
||||
const ::com::sun::star::table::CellRangeAddress& rApiRange );
|
||||
// CellRangeAddress-End -> CellAddress
|
||||
static inline void FillApiEndAddress(
|
||||
::com::sun::star::table::CellAddress& rApiAddress,
|
||||
const ::com::sun::star::table::CellRangeAddress& rApiRange );
|
||||
|
||||
/** Returns true, if the passed ranges have at least one common cell. */
|
||||
static inline bool Intersects(
|
||||
const ::com::sun::star::table::CellRangeAddress& rApiARange1,
|
||||
const ::com::sun::star::table::CellRangeAddress& rApiARange2 );
|
||||
/** Returns true, if the passed address rApiInner is inside the passed range rApiOuter. */
|
||||
static inline bool Contains(
|
||||
const ::com::sun::star::table::CellRangeAddress& rApiOuter,
|
||||
const ::com::sun::star::table::CellAddress& rApiInner );
|
||||
/** Returns true, if the passed range rApiInner is completely inside the passed range rApiOuter. */
|
||||
static inline bool Contains(
|
||||
const ::com::sun::star::table::CellRangeAddress& rApiOuter,
|
||||
@@ -112,15 +100,6 @@ inline void ScUnoConversion::FillApiRange(
|
||||
rApiRange.EndRow = rScRange.aEnd.Row();
|
||||
}
|
||||
|
||||
inline void ScUnoConversion::FillApiRange(
|
||||
::com::sun::star::table::CellRangeAddress& rApiRange,
|
||||
const ::com::sun::star::table::CellAddress& rApiAddress )
|
||||
{
|
||||
rApiRange.StartColumn = rApiRange.EndColumn = rApiAddress.Column;
|
||||
rApiRange.StartRow = rApiRange.EndRow = rApiAddress.Row;
|
||||
rApiRange.Sheet = rApiAddress.Sheet;
|
||||
}
|
||||
|
||||
inline void ScUnoConversion::FillApiStartAddress(
|
||||
::com::sun::star::table::CellAddress& rApiAddress,
|
||||
const ::com::sun::star::table::CellRangeAddress& rApiRange )
|
||||
@@ -130,15 +109,6 @@ inline void ScUnoConversion::FillApiStartAddress(
|
||||
rApiAddress.Sheet = rApiRange.Sheet;
|
||||
}
|
||||
|
||||
inline void ScUnoConversion::FillApiEndAddress(
|
||||
::com::sun::star::table::CellAddress& rApiAddress,
|
||||
const ::com::sun::star::table::CellRangeAddress& rApiRange )
|
||||
{
|
||||
rApiAddress.Column = rApiRange.EndColumn;
|
||||
rApiAddress.Row = rApiRange.EndRow;
|
||||
rApiAddress.Sheet = rApiRange.Sheet;
|
||||
}
|
||||
|
||||
inline bool ScUnoConversion::Intersects(
|
||||
const ::com::sun::star::table::CellRangeAddress& rApiRange1,
|
||||
const ::com::sun::star::table::CellRangeAddress& rApiRange2 )
|
||||
@@ -148,15 +118,6 @@ inline bool ScUnoConversion::Intersects(
|
||||
(::std::max( rApiRange1.StartRow, rApiRange2.StartRow ) <= ::std::min( rApiRange1.EndRow, rApiRange2.EndRow ));
|
||||
}
|
||||
|
||||
inline bool ScUnoConversion::Contains(
|
||||
const ::com::sun::star::table::CellRangeAddress& rApiOuter,
|
||||
const ::com::sun::star::table::CellAddress& rApiInner )
|
||||
{
|
||||
return (rApiOuter.Sheet == rApiInner.Sheet) &&
|
||||
(rApiOuter.StartColumn <= rApiInner.Column) && (rApiInner.Column <= rApiOuter.EndColumn) &&
|
||||
(rApiOuter.StartRow <= rApiInner.Row) && (rApiInner.Row <= rApiOuter.EndRow);
|
||||
}
|
||||
|
||||
inline bool ScUnoConversion::Contains(
|
||||
const ::com::sun::star::table::CellRangeAddress& rApiOuter,
|
||||
const ::com::sun::star::table::CellRangeAddress& rApiInner )
|
||||
|
||||
@@ -42,10 +42,6 @@ public:
|
||||
virtual void Notify( const com::sun::star::uno::Sequence<OUString>& aPropertyNames ) SAL_OVERRIDE;
|
||||
|
||||
bool GetWK3Flag() const { return bWK3Flag; }
|
||||
double GetExcelColScale() const { return fExcelColScale; }
|
||||
double GetExcelRowScale() const { return fExcelRowScale; }
|
||||
|
||||
// values are never modified by office
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -60,10 +60,6 @@ public:
|
||||
void collectFormulaCells( SCTAB nTab, SCCOL nCol, SCROW nRow1, SCROW nRow2, std::vector<ScFormulaCell*>& rCells ) const;
|
||||
void collectFormulaCells( SCROW nRow1, SCROW nRow2, std::vector<ScFormulaCell*>& rCells ) const;
|
||||
|
||||
ScAddress getTopCellPos() const;
|
||||
const ScRange& getRange() const;
|
||||
SCROW getGroupLength() const;
|
||||
|
||||
private:
|
||||
void notifyCellChange( const SfxHint& rHint, const ScAddress& rPos );
|
||||
void notifyBulkChange( const BulkDataHint& rHint );
|
||||
|
||||
@@ -217,7 +217,6 @@ public:
|
||||
virtual bool GetRenameTable () const = 0;
|
||||
virtual void GetTabNameString( OUString& rString ) const = 0;
|
||||
virtual void SetForceCopyTable () = 0;
|
||||
virtual void EnableCopyTable (bool bFlag=true) = 0;
|
||||
virtual void EnableRenameTable (bool bFlag=true) = 0;
|
||||
};
|
||||
|
||||
@@ -231,7 +230,6 @@ class AbstractScNamePasteDlg : public VclAbstractDialog
|
||||
{
|
||||
public:
|
||||
virtual std::vector<OUString> GetSelectedNames() const = 0;
|
||||
virtual bool IsAllSelected() const = 0;
|
||||
};
|
||||
|
||||
class AbstractScPivotFilterDlg : public VclAbstractDialog
|
||||
|
||||
@@ -46,7 +46,6 @@ public:
|
||||
double GetValue();
|
||||
svl::SharedString GetString();
|
||||
short GetFormatType() const { return mnFormatType; }
|
||||
sal_uLong GetFormatIndex() const { return mnFormatIndex; }
|
||||
|
||||
bool HasColRowName();
|
||||
|
||||
|
||||
@@ -197,27 +197,6 @@ inline std::string print(const ScAddress& rAddr)
|
||||
return str.str();
|
||||
}
|
||||
|
||||
namespace CppUnit {
|
||||
|
||||
template<>
|
||||
struct assertion_traits<ScRange>
|
||||
{
|
||||
static bool equal( const ScRange& x, const ScRange& y )
|
||||
{
|
||||
return x == y;
|
||||
}
|
||||
|
||||
static std::string toString( const ScRange& x )
|
||||
{
|
||||
std::stringstream str;
|
||||
str << "Start: " << print(x.aStart);
|
||||
str << "\nEnd: " << print(x.aEnd);
|
||||
return str.str();
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
class SCQAHELPER_DLLPUBLIC ScBootstrapFixture : public test::BootstrapFixture
|
||||
{
|
||||
static const FileFormat aFileFormats[];
|
||||
|
||||
@@ -76,22 +76,6 @@ void CLBuildKernelThread::push(CLBuildKernelWorkItem item)
|
||||
sc::FormulaGroupInterpreter::getStatic();
|
||||
}
|
||||
|
||||
void CLBuildKernelThread::produce()
|
||||
{
|
||||
}
|
||||
|
||||
void CLBuildKernelThread::consume()
|
||||
{
|
||||
}
|
||||
|
||||
void CLBuildKernelThread::finish()
|
||||
{
|
||||
SAL_INFO("sc.opencl", "telling thread to finish");
|
||||
CLBuildKernelWorkItem aWorkItem;
|
||||
aWorkItem.meWhatToDo = CLBuildKernelWorkItem::FINISH;
|
||||
push(aWorkItem);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
||||
@@ -325,12 +325,6 @@ void FormulaGroupAreaListener::collectFormulaCells(
|
||||
}
|
||||
}
|
||||
|
||||
ScAddress FormulaGroupAreaListener::getTopCellPos() const
|
||||
{
|
||||
const ScFormulaCell* p = getTopCell();
|
||||
return p ? p->aPos : ScAddress();
|
||||
}
|
||||
|
||||
const ScFormulaCell* FormulaGroupAreaListener::getTopCell() const
|
||||
{
|
||||
size_t nBlockSize = 0;
|
||||
@@ -339,16 +333,6 @@ const ScFormulaCell* FormulaGroupAreaListener::getTopCell() const
|
||||
return pp ? *pp : NULL;
|
||||
}
|
||||
|
||||
const ScRange& FormulaGroupAreaListener::getRange() const
|
||||
{
|
||||
return maRange;
|
||||
}
|
||||
|
||||
SCROW FormulaGroupAreaListener::getGroupLength() const
|
||||
{
|
||||
return mnGroupLen;
|
||||
}
|
||||
|
||||
void FormulaGroupAreaListener::notifyCellChange( const SfxHint& rHint, const ScAddress& rPos )
|
||||
{
|
||||
// Determine which formula cells within the group need to be notified of this change.
|
||||
|
||||
@@ -326,11 +326,6 @@ ScUserList::iterator ScUserList::begin()
|
||||
return maData.begin();
|
||||
}
|
||||
|
||||
ScUserList::const_iterator ScUserList::begin() const
|
||||
{
|
||||
return maData.begin();
|
||||
}
|
||||
|
||||
void ScUserList::clear()
|
||||
{
|
||||
maData.clear();
|
||||
|
||||
@@ -185,12 +185,11 @@ void XclExpPCItem::WriteBody( XclExpStream& rStrm )
|
||||
}
|
||||
|
||||
XclExpPCField::XclExpPCField(
|
||||
const XclExpRoot& rRoot, const XclExpPivotCache& rPCache, sal_uInt16 nFieldIdx,
|
||||
const XclExpRoot& rRoot, sal_uInt16 nFieldIdx,
|
||||
const ScDPObject& rDPObj, const ScRange& rRange ) :
|
||||
XclExpRecord( EXC_ID_SXFIELD ),
|
||||
XclPCField( EXC_PCFIELD_STANDARD, nFieldIdx ),
|
||||
XclExpRoot( rRoot ),
|
||||
mrPCache( rPCache ),
|
||||
mnTypeFlags( 0 )
|
||||
{
|
||||
// general settings for the standard field, insert all items from source range
|
||||
@@ -221,12 +220,11 @@ XclExpPCField::XclExpPCField(
|
||||
}
|
||||
|
||||
XclExpPCField::XclExpPCField(
|
||||
const XclExpRoot& rRoot, const XclExpPivotCache& rPCache, sal_uInt16 nFieldIdx,
|
||||
const XclExpRoot& rRoot, sal_uInt16 nFieldIdx,
|
||||
const ScDPObject& rDPObj, const ScDPSaveGroupDimension& rGroupDim, const XclExpPCField& rBaseField ) :
|
||||
XclExpRecord( EXC_ID_SXFIELD ),
|
||||
XclPCField( EXC_PCFIELD_STDGROUP, nFieldIdx ),
|
||||
XclExpRoot( rRoot ),
|
||||
mrPCache( rPCache ),
|
||||
mnTypeFlags( 0 )
|
||||
{
|
||||
// add base field info (always using first base field, not predecessor of this field) ***
|
||||
@@ -750,7 +748,7 @@ void XclExpPivotCache::AddStdFields( const ScDPObject& rDPObj )
|
||||
aColRange.aStart.SetCol( nScCol );
|
||||
aColRange.aEnd.SetCol( nScCol );
|
||||
maFieldList.AppendNewRecord( new XclExpPCField(
|
||||
GetRoot(), *this, GetFieldCount(), rDPObj, aColRange ) );
|
||||
GetRoot(), GetFieldCount(), rDPObj, aColRange ) );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -771,7 +769,7 @@ void XclExpPivotCache::AddGroupFields( const ScDPObject& rDPObj )
|
||||
{
|
||||
// insert the new grouping field
|
||||
XclExpPCFieldRef xNewGroupField( new XclExpPCField(
|
||||
GetRoot(), *this, GetFieldCount(), rDPObj, *pGroupDim, *pCurrStdField ) );
|
||||
GetRoot(), GetFieldCount(), rDPObj, *pGroupDim, *pCurrStdField ) );
|
||||
maFieldList.AppendRecord( xNewGroupField );
|
||||
|
||||
// register new grouping field at current grouping field, building a chain
|
||||
|
||||
@@ -781,11 +781,6 @@ static ScRange lcl_ToRange( const XclRange& rRange )
|
||||
return aRange;
|
||||
}
|
||||
|
||||
OString XclXmlUtils::ToOString( const XclRange& rRange )
|
||||
{
|
||||
return ToOString( lcl_ToRange( rRange ) );
|
||||
}
|
||||
|
||||
OString XclXmlUtils::ToOString( const XclRangeList& rRanges )
|
||||
{
|
||||
ScRangeList aRanges;
|
||||
|
||||
@@ -53,7 +53,6 @@ class ScCTB : public TBBase
|
||||
std::vector<TBVisualData> rVisualData;
|
||||
sal_uInt32 ectbid;
|
||||
std::vector< ScTBC > rTBC;
|
||||
bool ImportCustomToolBar_Impl( ScCTBWrapper&, CustomToolBarImportHelper& );
|
||||
public:
|
||||
ScCTB(sal_uInt16);
|
||||
virtual ~ScCTB(){}
|
||||
|
||||
@@ -74,13 +74,8 @@ public:
|
||||
virtual ~XclExpUserBViewList();
|
||||
|
||||
inline iterator begin () { return aViews.begin(); }
|
||||
|
||||
inline iterator end () { return aViews.end(); }
|
||||
|
||||
inline const_iterator begin () const { return aViews.begin(); }
|
||||
|
||||
inline const_iterator end () const { return aViews.end(); }
|
||||
|
||||
virtual void Save( XclExpStream& rStrm ) SAL_OVERRIDE;
|
||||
};
|
||||
|
||||
|
||||
@@ -79,8 +79,6 @@ private:
|
||||
SCTAB ReadTabNum();
|
||||
void ReadDateTime( DateTime& rDateTime );
|
||||
|
||||
inline void ReadString( OUString& rString );
|
||||
|
||||
bool CheckRecord( sal_uInt16 nOpCode );
|
||||
|
||||
void ReadFormula(
|
||||
@@ -144,11 +142,6 @@ inline void XclImpChangeTrack::Read2DRange( ScRange& rRange )
|
||||
rRange.aEnd.SetCol( static_cast<SCCOL>(pStrm->ReaduInt16()) );
|
||||
}
|
||||
|
||||
inline void XclImpChangeTrack::ReadString( OUString& rString )
|
||||
{
|
||||
rString = pStrm->ReadUniString();
|
||||
}
|
||||
|
||||
// derived class for special 3D ref handling
|
||||
|
||||
class XclImpChTrFmlConverter : public ExcelToSc8
|
||||
|
||||
@@ -137,18 +137,6 @@ struct BinRange
|
||||
inline explicit BinRange( const ::com::sun::star::table::CellAddress& rFirst, const ::com::sun::star::table::CellAddress& rLast ) : maFirst( rFirst ), maLast( rLast ) {}
|
||||
inline explicit BinRange( const ::com::sun::star::table::CellRangeAddress& rRange ) : maFirst( rRange.StartColumn, rRange.StartRow ), maLast( rRange.EndColumn, rRange.EndRow ) {}
|
||||
|
||||
inline void set( const BinAddress& rFirst, const BinAddress& rLast )
|
||||
{ maFirst = rFirst; maLast = rLast; }
|
||||
inline void set( sal_Int32 nCol1, sal_Int32 nRow1, sal_Int32 nCol2, sal_Int32 nRow2 )
|
||||
{ maFirst.set( nCol1, nRow1 ); maLast.set( nCol2, nRow2 ); }
|
||||
inline void set( const ::com::sun::star::table::CellAddress& rFirst, const ::com::sun::star::table::CellAddress& rLast )
|
||||
{ maFirst.set( rFirst ); maLast.set( rLast ); }
|
||||
inline void set( const ::com::sun::star::table::CellRangeAddress& rRange )
|
||||
{ maFirst.set( rRange.StartColumn, rRange.StartRow ); maLast.set( rRange.EndColumn, rRange.EndRow ); }
|
||||
|
||||
inline sal_Int32 getColCount() const { return maLast.mnCol - maFirst.mnCol + 1; }
|
||||
inline sal_Int32 getRowCount() const { return maLast.mnRow - maFirst.mnRow + 1; }
|
||||
|
||||
void read( SequenceInputStream& rStrm );
|
||||
void read( BiffInputStream& rStrm, bool bCol16Bit = true, bool bRow32Bit = false );
|
||||
};
|
||||
@@ -280,13 +268,6 @@ public:
|
||||
inline const ::com::sun::star::table::CellAddress&
|
||||
getMaxAddress() const { return maMaxPos; }
|
||||
|
||||
/** Returns the column overflow status. */
|
||||
inline bool isColOverflow() const { return mbColOverflow; }
|
||||
/** Returns the row overflow status. */
|
||||
inline bool isRowOverflow() const { return mbRowOverflow; }
|
||||
/** Returns the sheet overflow status. */
|
||||
inline bool isTabOverflow() const { return mbTabOverflow; }
|
||||
|
||||
/** Checks if the passed column index is valid.
|
||||
|
||||
@param nCol The column index to check.
|
||||
|
||||
@@ -172,9 +172,6 @@ public:
|
||||
inline FilterSettingsBase& createFilterSettings()
|
||||
{ mxSettings.reset( new FilterSettingsType( *this ) ); return *mxSettings; }
|
||||
|
||||
/** Returns the index of the column in the filtered range this object is related to. */
|
||||
inline sal_Int32 getColumnId() const { return mnColId; }
|
||||
|
||||
/** Returns converted UNO API filter settings representing all filter
|
||||
settings of this column. */
|
||||
ApiFilterSettings finalizeImport( sal_Int32 nMaxCount );
|
||||
|
||||
@@ -29,23 +29,19 @@
|
||||
// Stream wrapper class
|
||||
class ScBiffReader
|
||||
{
|
||||
protected:
|
||||
protected:
|
||||
sal_uInt16 mnId;
|
||||
sal_uInt16 mnLength;
|
||||
sal_uInt32 mnOffset;
|
||||
SvStream *mpStream;
|
||||
bool mbEndOfFile;
|
||||
|
||||
public:
|
||||
public:
|
||||
ScBiffReader( SfxMedium& rMedium );
|
||||
~ScBiffReader();
|
||||
bool recordsLeft() { return mpStream && !mpStream->IsEof(); }
|
||||
bool IsEndOfFile() { return mbEndOfFile; }
|
||||
void SetEof( bool bValue ){ mbEndOfFile = bValue; }
|
||||
bool nextRecord();
|
||||
sal_uInt16 getId() { return mnId; }
|
||||
sal_uInt16 getLength() { return mnLength; }
|
||||
SvStream& getStream() { return *mpStream; }
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -36,13 +36,8 @@ class BiffInputRecordBuffer
|
||||
public:
|
||||
explicit BiffInputRecordBuffer( BinaryInputStream& rInStrm );
|
||||
|
||||
/** Returns the wrapped binary base stream. */
|
||||
inline const BinaryInputStream& getBaseStream() const { return mrInStrm; }
|
||||
|
||||
/** Sets a decoder object and decrypts buffered record data. */
|
||||
void setDecoder( const BiffDecoderRef& rxDecoder );
|
||||
/** Returns the current decoder object. */
|
||||
inline BiffDecoderRef getDecoder() const { return mxDecoder; }
|
||||
/** Enables/disables usage of current decoder. */
|
||||
void enableDecoder( bool bEnable );
|
||||
|
||||
@@ -63,8 +58,6 @@ public:
|
||||
inline sal_uInt16 getRecId() const { return mnRecId; }
|
||||
/** Returns the current record size. */
|
||||
inline sal_uInt16 getRecSize() const { return mnRecSize; }
|
||||
/** Returns the current read position in the current record body. */
|
||||
inline sal_uInt16 getRecPos() const { return mnRecPos; }
|
||||
/** Returns the number of remaining bytes in the current record body. */
|
||||
inline sal_uInt16 getRecLeft() const { return mnRecSize - mnRecPos; }
|
||||
|
||||
|
||||
@@ -114,7 +114,6 @@ public:
|
||||
void createNameObject( sal_Int32 nIndex );
|
||||
/** Converts the formula string or BIFF token array for this defined name. */
|
||||
void convertFormula();
|
||||
ApiTokenSequence getTokens();
|
||||
std::unique_ptr<ScTokenArray> getScTokens();
|
||||
/** Returns true, if this defined name is global in the document. */
|
||||
inline bool isGlobalName() const { return mnCalcSheet < 0; }
|
||||
@@ -134,12 +133,6 @@ public:
|
||||
/** Tries to resolve the defined name to an absolute cell range. */
|
||||
bool getAbsoluteRange( ::com::sun::star::table::CellRangeAddress& orRange ) const;
|
||||
|
||||
private:
|
||||
/** Imports the OOXML or BIFF12 definition of the name. */
|
||||
void implImportOoxFormula();
|
||||
/** Imports the BIFF definition of the name. */
|
||||
void implImportBiffFormula();
|
||||
|
||||
private:
|
||||
typedef ::std::unique_ptr< StreamDataSequence > StreamDataSeqPtr;
|
||||
typedef ::std::unique_ptr< BiffInputStreamPos > BiffStreamPosPtr;
|
||||
@@ -150,7 +143,6 @@ private:
|
||||
sal_Unicode mcBuiltinId; /// Identifier for built-in defined names.
|
||||
StreamDataSeqPtr mxFormula; /// Formula data for BIFF12 import.
|
||||
BiffStreamPosPtr mxBiffStrm; /// Cached BIFF stream for formula import.
|
||||
sal_uInt16 mnFmlaSize; /// Cached BIFF formula size for formula import.
|
||||
};
|
||||
|
||||
typedef std::shared_ptr< DefinedName > DefinedNameRef;
|
||||
|
||||
@@ -60,18 +60,9 @@ public:
|
||||
explicit BiffDrawingBase( const WorksheetHelper& rHelper,
|
||||
const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& rxDrawPage );
|
||||
|
||||
/** Sets the object with the passed identifier to be skipped on import. */
|
||||
void setSkipObj( sal_uInt16 nObjId );
|
||||
|
||||
/** Final processing after import of the all drawing objects. */
|
||||
void finalizeImport();
|
||||
|
||||
/** Derived classes may want to know that a shape has been inserted. Will
|
||||
be called from the convertAndInsert() implementation. */
|
||||
virtual void notifyShapeInserted(
|
||||
const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& rxShape,
|
||||
const ::com::sun::star::awt::Rectangle& rShapeRect ) = 0;
|
||||
|
||||
private:
|
||||
::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >
|
||||
mxDrawPage; /// UNO draw page used to insert the shapes.
|
||||
@@ -83,10 +74,6 @@ class BiffSheetDrawing : public BiffDrawingBase
|
||||
public:
|
||||
explicit BiffSheetDrawing( const WorksheetHelper& rHelper );
|
||||
|
||||
/** Called when a new UNO shape has been inserted into the draw page. */
|
||||
virtual void notifyShapeInserted(
|
||||
const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& rxShape,
|
||||
const ::com::sun::star::awt::Rectangle& rShapeRect ) SAL_OVERRIDE;
|
||||
};
|
||||
|
||||
} // namespace xls
|
||||
|
||||
@@ -55,7 +55,6 @@ public:
|
||||
void ReadBasic(); // 0xD3
|
||||
void Labelsst(); // 0xFD
|
||||
|
||||
void Hlink(); // 0x01B8
|
||||
void FeatHdr(); // 0x0867
|
||||
void Feat(); // 0x0868
|
||||
|
||||
|
||||
@@ -360,7 +360,6 @@ public:
|
||||
~ExcFilterCondition();
|
||||
|
||||
inline bool IsEmpty() const { return (nType == EXC_AFTYPE_NOTUSED); }
|
||||
inline bool HasEqual() const { return (nOper == EXC_AFOPER_EQUAL); }
|
||||
sal_uLong GetTextBytes() const;
|
||||
|
||||
void SetCondition( sal_uInt8 nTp, sal_uInt8 nOp, double fV, OUString* pT );
|
||||
|
||||
@@ -86,9 +86,6 @@ public:
|
||||
/** Imports the DDEITEM_STRING record containing a string in a link result. */
|
||||
void importDdeItemString( SequenceInputStream& rStrm );
|
||||
|
||||
/** Returns true, if the name refers to an OLE object. */
|
||||
inline bool isOleObject() const { return maExtNameModel.mbOleObj; }
|
||||
|
||||
#if 0
|
||||
/** Returns the sheet cache index if this is a sheet-local external name. */
|
||||
sal_Int32 getSheetCacheIndex() const;
|
||||
|
||||
@@ -117,12 +117,11 @@ protected:
|
||||
sal_Int32 nBytesLeft;
|
||||
|
||||
inline void Ignore( const long nSeekRel );
|
||||
inline void Read( sal_Char& nByte );
|
||||
inline void Read( sal_uInt8& nByte );
|
||||
inline void Read( sal_uInt16& nUINT16 );
|
||||
inline void Read( sal_Int16& nINT16 );
|
||||
inline void Read( double& fDouble );
|
||||
inline void Read( sal_uInt32& nUINT32 );
|
||||
inline void Read( sal_uInt32& nUINT32 );
|
||||
|
||||
LotusConverterBase( SvStream& rStr, svl::SharedStringPool& rSPool, sal_uInt16 nNewBuffer );
|
||||
virtual ~LotusConverterBase();
|
||||
@@ -143,12 +142,6 @@ inline void LotusConverterBase::Ignore( const long nSeekRel )
|
||||
nBytesLeft -= nSeekRel;
|
||||
}
|
||||
|
||||
inline void LotusConverterBase::Read( sal_Char& nByte )
|
||||
{
|
||||
aIn.ReadChar( nByte );
|
||||
nBytesLeft--;
|
||||
}
|
||||
|
||||
inline void LotusConverterBase::Read( sal_uInt8& nByte )
|
||||
{
|
||||
aIn.ReadUChar( nByte );
|
||||
|
||||
@@ -308,7 +308,6 @@ class ApiTokenIterator
|
||||
public:
|
||||
explicit ApiTokenIterator( const ApiTokenSequence& rTokens, sal_Int32 nSpacesOpCode, bool bSkipSpaces );
|
||||
inline bool is() const { return mpToken != mpTokenEnd; }
|
||||
inline const ApiToken* get() const { return mpToken; }
|
||||
inline const ApiToken* operator->() const { return mpToken; }
|
||||
inline const ApiToken& operator*() const { return *mpToken; }
|
||||
|
||||
|
||||
@@ -116,8 +116,6 @@ public:
|
||||
@return A reference to an ScfProgressBar connected to the segment. */
|
||||
ScfProgressBar& GetSegmentProgressBar( sal_Int32 nSegment );
|
||||
|
||||
/** Returns true, if any progress segment has been started. */
|
||||
inline bool IsStarted() const { return mbInProgress; }
|
||||
/** Returns true, if the current progress segment is already full. */
|
||||
bool IsFull() const;
|
||||
|
||||
@@ -191,8 +189,6 @@ public:
|
||||
|
||||
/** Set progress bar to the specified position. */
|
||||
inline void ProgressAbs( sal_Size nPos ) { maProgress.ProgressAbs( nPos ); }
|
||||
/** Increase progress bar by 1. */
|
||||
inline void Progress( sal_Size nDelta = 1 ) { maProgress.Progress( nDelta ); }
|
||||
|
||||
private:
|
||||
/** Initializes and starts the progress bar. */
|
||||
|
||||
@@ -251,8 +251,6 @@ struct ScHTMLPos
|
||||
{ mnCol = nCol; mnRow = nRow; }
|
||||
inline void Set( const ScAddress& rAddr )
|
||||
{ Set( rAddr.Col(), rAddr.Row() ); }
|
||||
inline void Move( SCsCOL nColDiff, SCsROW nRowDiff )
|
||||
{ mnCol = mnCol + nColDiff; mnRow = mnRow + nRowDiff; }
|
||||
inline ScAddress MakeAddr() const
|
||||
{ return ScAddress( mnCol, mnRow, 0 ); }
|
||||
};
|
||||
@@ -276,13 +274,8 @@ struct ScHTMLSize
|
||||
inline explicit ScHTMLSize() : mnCols( 0 ), mnRows( 0 ) {}
|
||||
inline explicit ScHTMLSize( SCCOL nCols, SCROW nRows ) :
|
||||
mnCols( nCols ), mnRows( nRows ) {}
|
||||
|
||||
inline SCCOLROW Get( ScHTMLOrient eOrient ) const
|
||||
{ return (eOrient == tdCol) ? mnCols : mnRows; }
|
||||
inline void Set( SCCOL nCols, SCROW nRows )
|
||||
{ mnCols = nCols; mnRows = nRows; }
|
||||
inline void Expand( SCsCOL nColDiff, SCsROW nRowDiff )
|
||||
{ mnCols = mnCols + nColDiff; mnRows = mnRows + nRowDiff; }
|
||||
};
|
||||
|
||||
inline bool operator==( const ScHTMLSize& rSize1, const ScHTMLSize& rSize2 )
|
||||
@@ -363,8 +356,6 @@ public:
|
||||
inline const OUString& GetTableName() const { return maTableName; }
|
||||
/** Returns the unique identifier of the table. */
|
||||
inline ScHTMLTableId GetTableId() const { return maTableId.mnTableId; }
|
||||
/** Returns the table size. */
|
||||
inline const ScHTMLSize& GetSize() const { return maSize; }
|
||||
/** Returns the cell spanning of the specified cell. */
|
||||
ScHTMLSize GetSpan( const ScHTMLPos& rCellPos ) const;
|
||||
|
||||
|
||||
@@ -63,24 +63,12 @@ private:
|
||||
else
|
||||
pTmpName = new OUString( rNew );
|
||||
}
|
||||
inline void Font( SvxFontItem& rNew )
|
||||
{
|
||||
if( pFont )
|
||||
delete pFont;
|
||||
pFont = &rNew;
|
||||
}
|
||||
inline void Height( SvxFontHeightItem& rNew )
|
||||
{
|
||||
if( pHeight )
|
||||
delete pHeight;
|
||||
pHeight = &rNew;
|
||||
}
|
||||
inline void Color( SvxColorItem& rNew )
|
||||
{
|
||||
if( pColor )
|
||||
delete pColor;
|
||||
pColor = &rNew;
|
||||
}
|
||||
inline void Type( const sal_uInt16 nNew ) { nType = nNew; }
|
||||
};
|
||||
|
||||
|
||||
@@ -52,7 +52,6 @@ private:
|
||||
void Numbercell(); // 0x0017 23
|
||||
void Smallnumcell(); // 0x0018 24
|
||||
ScFormulaCell* Formulacell( sal_uInt16 nRecLen ); // 0x0019 25
|
||||
void Formulastring( ScFormulaCell& ); // 0x001a 26
|
||||
// 0x001b 27 special
|
||||
void NamedSheet(); // 14000
|
||||
void RowPresentation( sal_uInt16 nRecLen ); // 2007
|
||||
@@ -70,7 +69,6 @@ private:
|
||||
inline void Read( sal_uInt8& );
|
||||
inline void Read( sal_uInt16& );
|
||||
inline void Read( sal_Int16& );
|
||||
inline void Read( sal_uInt32& );
|
||||
inline void Read( double& ); // 10-Byte-IEEE lesen
|
||||
inline void Read( LotAttrWK3& );
|
||||
void Read( OUString& ); // 0-terminierten String einlesen
|
||||
@@ -123,11 +121,6 @@ inline void ImportLotus::Read( sal_Int16& r )
|
||||
pIn->ReadInt16( r );
|
||||
}
|
||||
|
||||
inline void ImportLotus::Read( sal_uInt32& r )
|
||||
{
|
||||
pIn->ReadUInt32( r );
|
||||
}
|
||||
|
||||
inline void ImportLotus::Read( double& r )
|
||||
{
|
||||
r = ScfTools::ReadLongDouble( *pIn );
|
||||
|
||||
@@ -107,10 +107,7 @@ public:
|
||||
inline sal_uInt16 GetIndex( SCCOL nCol, SCROW nRow );
|
||||
inline sal_uInt16 GetIndex( SCCOL nColS, SCROW nRowS, SCCOL nColE, SCROW nRowE );
|
||||
sal_uInt16 GetIndex( const LotusRange& );
|
||||
inline void Append( SCCOL nCol, SCROW nRow, const OUString& );
|
||||
inline void Append( SCCOL nColS, SCROW nRowS, SCCOL nColE, SCROW nRowE, const OUString& );
|
||||
void Append( LotusRange* pLR, const OUString& rName );
|
||||
inline static void SetEing( const SCCOL nCol, const SCROW nRow );
|
||||
};
|
||||
|
||||
inline LR_ID LotusRangeList::GetIndex( SCCOL nCol, SCROW nRow )
|
||||
@@ -125,22 +122,6 @@ inline LR_ID LotusRangeList::GetIndex( SCCOL nColS, SCROW nRowS, SCCOL nColE, SC
|
||||
return GetIndex( aRef );
|
||||
}
|
||||
|
||||
inline void LotusRangeList::Append( SCCOL nCol, SCROW nRow, const OUString& rName )
|
||||
{
|
||||
Append( new LotusRange( nCol, nRow ), rName );
|
||||
}
|
||||
|
||||
inline void LotusRangeList::Append( SCCOL nColS, SCROW nRowS, SCCOL nColE, SCROW nRowE, const OUString& r )
|
||||
{
|
||||
Append( new LotusRange( nColS, nRowS, nColE, nRowE ), r );
|
||||
}
|
||||
|
||||
inline void LotusRangeList::SetEing( const SCCOL nCol, const SCROW nRow )
|
||||
{
|
||||
nEingCol = nCol;
|
||||
nEingRow = nRow;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
||||
@@ -96,8 +96,6 @@ public:
|
||||
inline NameBuffer( RootData*, sal_uInt16 nNewBase );
|
||||
|
||||
virtual ~NameBuffer();
|
||||
inline const OUString* Get( sal_uInt16 nIndex ) const;
|
||||
inline sal_uInt16 GetLastIndex() const;
|
||||
inline void SetBase( sal_uInt16 nNewBase = 0 );
|
||||
void operator <<( const OUString& rNewString );
|
||||
};
|
||||
@@ -112,22 +110,9 @@ inline NameBuffer::NameBuffer( RootData* p, sal_uInt16 nNewBase ) : ExcRoot( p )
|
||||
nBase = nNewBase;
|
||||
}
|
||||
|
||||
inline const OUString* NameBuffer::Get ( sal_uInt16 n ) const
|
||||
{
|
||||
if( n < nBase || n >= maHashes.size() )
|
||||
return NULL;
|
||||
|
||||
return &(maHashes[n]->aString);
|
||||
}
|
||||
|
||||
inline sal_uInt16 NameBuffer::GetLastIndex () const
|
||||
{
|
||||
int size = maHashes.size() + nBase;
|
||||
|
||||
OSL_ENSURE( size <= 0xFFFF, "*NameBuffer::GetLastIndex(): I'm sick and tired!" );
|
||||
|
||||
return static_cast<sal_uInt16>( size );
|
||||
}
|
||||
|
||||
inline void NameBuffer::SetBase( sal_uInt16 nNewBase )
|
||||
{
|
||||
|
||||
@@ -127,7 +127,6 @@ public:
|
||||
const FontPortionModel& rModel)
|
||||
{ mvModels.insert(it, rModel); }
|
||||
|
||||
::std::vector< FontPortionModel >::const_iterator begin() const { return mvModels.begin(); }
|
||||
::std::vector< FontPortionModel >::iterator begin() { return mvModels.begin(); }
|
||||
|
||||
/** Appends a rich-string font identifier. */
|
||||
|
||||
@@ -387,8 +387,6 @@ public:
|
||||
/** Final processing after import of all style settings. */
|
||||
void finalizeImport();
|
||||
|
||||
/** Returns the protection model structure. */
|
||||
inline const ProtectionModel& getModel() const { return maModel; }
|
||||
/** Returns the converted API protection data struct. */
|
||||
inline const ApiProtectionData& getApiData() const { return maApiData; }
|
||||
|
||||
@@ -471,8 +469,6 @@ public:
|
||||
/** Final processing after import of all style settings. */
|
||||
void finalizeImport( bool bRTL );
|
||||
|
||||
/** Returns the border model structure. */
|
||||
inline const BorderModel& getModel() const { return maModel; }
|
||||
/** Returns the converted API border data struct. */
|
||||
inline const ApiBorderData& getApiData() const { return maApiData; }
|
||||
|
||||
@@ -582,10 +578,6 @@ public:
|
||||
/** Final processing after import of all style settings. */
|
||||
void finalizeImport();
|
||||
|
||||
/** Returns the fill pattern model structure, if extant. */
|
||||
inline const PatternFillModel* getPatternModel() const { return mxPatternModel.get(); }
|
||||
/** Returns the fill gradient model structure, if extant. */
|
||||
inline const GradientFillModel* getGradientModel() const { return mxGradientModel.get(); }
|
||||
/** Returns the converted API fill data struct. */
|
||||
inline const ApiSolidFillData& getApiData() const { return maApiData; }
|
||||
|
||||
@@ -667,8 +659,6 @@ public:
|
||||
FontRef getFont() const;
|
||||
/** Returns the alignment data of this style. */
|
||||
inline const Alignment& getAlignment() const { return maAlignment; }
|
||||
/** Returns the cell protection data of this style. */
|
||||
inline const Protection& getProtection() const { return maProtection; }
|
||||
|
||||
void applyPatternToAttrList(
|
||||
AttrList& rAttrs, SCROW nRow1, SCROW nRow2, sal_Int32 nForceScNumFmt );
|
||||
|
||||
@@ -202,7 +202,7 @@ public:
|
||||
|
||||
// only for Range-Names
|
||||
const TokenId Store( const sal_uInt16 nIndex );
|
||||
inline const TokenId Store( const sal_Int16 nWert );
|
||||
;
|
||||
const TokenId Store( const OUString& rString );
|
||||
const TokenId Store( const ScSingleRefData& rTr );
|
||||
const TokenId Store( const ScComplexRefData& rTr );
|
||||
@@ -216,10 +216,8 @@ public:
|
||||
const TokenId StoreExtRef( sal_uInt16 nFileId, const OUString& rTabName, const ScSingleRefData& rRef );
|
||||
const TokenId StoreExtRef( sal_uInt16 nFileId, const OUString& rTabName, const ScComplexRefData& rRef );
|
||||
|
||||
inline const TokenId LastId() const;
|
||||
inline const ScTokenArray* operator []( const TokenId& rId );
|
||||
void Reset();
|
||||
inline E_TYPE GetType( const TokenId& rId ) const;
|
||||
bool IsSingleOp( const TokenId& rId, const DefTokenId eId ) const;
|
||||
const OUString* GetExternal( const TokenId& rId ) const;
|
||||
ScMatrix* GetMatrix( unsigned int n ) const;
|
||||
@@ -350,16 +348,6 @@ inline const TokenId TokenPool::Store()
|
||||
return nId;
|
||||
}
|
||||
|
||||
inline const TokenId TokenPool::Store( const sal_Int16 nWert )
|
||||
{
|
||||
return Store( ( double ) nWert );
|
||||
}
|
||||
|
||||
inline const TokenId TokenPool::LastId() const
|
||||
{
|
||||
return static_cast<TokenId>(nElementAkt); // correct, as Ausgabe with Offset 1!
|
||||
}
|
||||
|
||||
const inline ScTokenArray* TokenPool::operator []( const TokenId& rId )
|
||||
{
|
||||
pScToken->ClearScTokenArray();
|
||||
@@ -375,19 +363,7 @@ const inline ScTokenArray* TokenPool::operator []( const TokenId& rId )
|
||||
return pScToken;
|
||||
}
|
||||
|
||||
inline E_TYPE TokenPool::GetType( const TokenId& rId ) const
|
||||
{
|
||||
E_TYPE nRet;
|
||||
|
||||
sal_uInt16 nId = (sal_uInt16) rId - 1;
|
||||
|
||||
if( nId < nElementAkt )
|
||||
nRet = pType[ nId ] ;
|
||||
else
|
||||
nRet = T_Error;
|
||||
|
||||
return nRet;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -117,10 +117,6 @@ public:
|
||||
~FormCache();
|
||||
|
||||
inline const SfxUInt32Item* GetAttr( sal_uInt8 nFormat, sal_uInt8 nSt );
|
||||
void SetDefaultFormat( sal_uInt8 nD = 0xFF )
|
||||
{
|
||||
nDefaultFormat = nD;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -274,8 +274,6 @@ public:
|
||||
@descr Row default formatting is converted directly, other settings
|
||||
are cached and converted in the finalizeWorksheetImport() call. */
|
||||
void setRowModel( const RowModel& rModel );
|
||||
/** Specifies that the passed row needs to set its height manually. */
|
||||
void setManualRowHeight( sal_Int32 nRow );
|
||||
|
||||
/** Inserts a value cell directly into the Calc sheet. */
|
||||
void putValue( const com::sun::star::table::CellAddress& rAddress, double fValue );
|
||||
|
||||
@@ -118,7 +118,6 @@ public:
|
||||
inline sal_uInt16 GetObjType() const { return mnObjType; }
|
||||
|
||||
inline void SetId( sal_uInt16 nId ) { nObjId = nId; }
|
||||
inline sal_uInt16 GetId() const { return nObjId; }
|
||||
|
||||
inline void SetTab( SCTAB nScTab ) { mnScTab = nScTab; }
|
||||
inline SCTAB GetTab() const { return mnScTab; }
|
||||
@@ -143,7 +142,6 @@ public:
|
||||
itself. The svx base code does not receive the correct shape ID after the
|
||||
EscherEx::StartShape() call, which would result in deleting the object in
|
||||
EscherEx::EndShape(). */
|
||||
inline void SetOwnEscher( bool bOwnEscher = true ) { mbOwnEscher = bOwnEscher; }
|
||||
/** Returns true, if the object has created the escher data itself.
|
||||
@descr See SetOwnEscher() for details. */
|
||||
inline bool IsOwnEscher() const { return mbOwnEscher; }
|
||||
|
||||
@@ -109,7 +109,6 @@ public:
|
||||
virtual void SaveXml( XclExpXmlStream& rStrm ) SAL_OVERRIDE;
|
||||
|
||||
void WriteEmbeddedData( XclExpStream& rStrm );
|
||||
void SetDisplay( bool bDisplay ) { mbSetDisplay = bDisplay; }
|
||||
|
||||
/** Builds file name from the passed file URL. Tries to convert to relative file name.
|
||||
@param rnLevel (out-param) The parent directory level.
|
||||
|
||||
@@ -41,8 +41,6 @@ public:
|
||||
|
||||
/** Inserts the Calc name with the passed index and returns the Excel NAME index. */
|
||||
sal_uInt16 InsertName( SCTAB nTab, sal_uInt16 nScNameIdx );
|
||||
/** Inserts the Calc database range with the passed index and returns the Excel NAME index. */
|
||||
sal_uInt16 InsertDBRange( sal_uInt16 nScDBRangeIdx );
|
||||
|
||||
/** Inserts a new built-in defined name, referring to the passed sheet range. */
|
||||
sal_uInt16 InsertBuiltInName( sal_Unicode cBuiltIn, const ScRange& rRange );
|
||||
|
||||
@@ -115,9 +115,6 @@ public:
|
||||
/** Creates all records containing the current page settings. */
|
||||
explicit XclExpChartPageSettings( const XclExpRoot& rRoot );
|
||||
|
||||
/** Returns read-only access to the page data. */
|
||||
inline const XclPageData& GetPageData() const { return maData; }
|
||||
|
||||
/** Writes all page settings records to the stream. */
|
||||
virtual void Save( XclExpStream& rStrm ) SAL_OVERRIDE;
|
||||
|
||||
|
||||
@@ -66,19 +66,17 @@ class XclExpPCField : public XclExpRecord, public XclPCField, protected XclExpRo
|
||||
public:
|
||||
/** Creates a standard pivot cache field, filled from sheet source data. */
|
||||
explicit XclExpPCField( const XclExpRoot& rRoot,
|
||||
const XclExpPivotCache& rPCache, sal_uInt16 nFieldIdx,
|
||||
sal_uInt16 nFieldIdx,
|
||||
const ScDPObject& rDPObj, const ScRange& rRange );
|
||||
/** Creates a child grouping pivot cache field, filled from the passed grouping info. */
|
||||
explicit XclExpPCField( const XclExpRoot& rRoot,
|
||||
const XclExpPivotCache& rPCache, sal_uInt16 nFieldIdx,
|
||||
sal_uInt16 nFieldIdx,
|
||||
const ScDPObject& rDPObj, const ScDPSaveGroupDimension& rGroupDim,
|
||||
const XclExpPCField& rBaseField );
|
||||
virtual ~XclExpPCField();
|
||||
|
||||
/** Sets the passed field as direct grouping child field of this field. */
|
||||
void SetGroupChildField( const XclExpPCField& rChildField );
|
||||
/** Converts this standard field into a numeric grouping field. */
|
||||
void ConvertToNumGroup( const ScDPObject& rDPObj, const ScDPSaveNumGroupDimension& rNumGroupDim );
|
||||
|
||||
/** Returns the name of this cache field. */
|
||||
inline const OUString& GetFieldName() const { return maFieldInfo.maName; }
|
||||
@@ -152,7 +150,6 @@ private:
|
||||
virtual void WriteBody( XclExpStream& rStrm ) SAL_OVERRIDE;
|
||||
|
||||
private:
|
||||
const XclExpPivotCache& mrPCache; /// Parent pivot cache containing this field.
|
||||
XclExpPCItemList maOrigItemList; /// List with original items.
|
||||
XclExpPCItemList maGroupItemList; /// List with grouping items.
|
||||
ScfUInt16Vec maIndexVec; /// Indexes into maItemList.
|
||||
@@ -171,8 +168,6 @@ public:
|
||||
/** Returns true, if the item index list will be written. */
|
||||
bool HasItemIndexList() const;
|
||||
|
||||
/** Returns the stream identifier used to create the cache stream. */
|
||||
inline sal_uInt16 GetStreamId() const { return maPCInfo.mnStrmId; }
|
||||
/** Returns the list index of the cache used in pivot table records. */
|
||||
inline sal_uInt16 GetCacheIndex() const { return mnListIdx; }
|
||||
|
||||
|
||||
@@ -238,8 +238,6 @@ public:
|
||||
|
||||
/** Returns the Boolean value of the record. */
|
||||
inline bool GetBool() const { return mbValue; }
|
||||
/** Sets a new Boolean record value. */
|
||||
inline void SetBool( bool bValue ) { mbValue = bValue; }
|
||||
|
||||
virtual void SaveXml( XclExpXmlStream& rStrm ) SAL_OVERRIDE;
|
||||
|
||||
|
||||
@@ -93,13 +93,6 @@ public:
|
||||
/** Returns the position inside of current record (starts by 0 in every CONTINUE). */
|
||||
inline sal_uInt16 GetRawRecPos() const { return mnCurrSize; }
|
||||
|
||||
/** Returns the maximum size of a record. */
|
||||
inline sal_uInt16 GetMaxRecSize() const { return mnMaxRecSize; }
|
||||
/** Sets maximum record size (valid only for current record). */
|
||||
inline void SetMaxRecSize( sal_uInt16 nMax ) { mnCurrMaxSize = nMax; }
|
||||
/** Sets maximum size of CONTINUE records (valid only for current record). */
|
||||
inline void SetMaxContSize( sal_uInt16 nMax ) { mnMaxContSize = nMax; }
|
||||
|
||||
/** Sets data slice length. 0 = no slices. */
|
||||
void SetSliceSize( sal_uInt16 nSize );
|
||||
|
||||
@@ -272,7 +265,6 @@ public:
|
||||
static OString ToOString( const ScRangeList& rRangeList );
|
||||
static OStringBuffer& ToOString( OStringBuffer& s, const XclAddress& rAddress );
|
||||
static OString ToOString( const XclExpString& s );
|
||||
static OString ToOString( const XclRange& rRange );
|
||||
static OString ToOString( const XclRangeList& rRangeList );
|
||||
|
||||
static OUString ToOUString( const char* s );
|
||||
|
||||
@@ -553,8 +553,6 @@ public:
|
||||
/** Returns true, if this record represents an Excel built-in style. */
|
||||
inline bool IsBuiltIn() const { return mnStyleId != EXC_STYLE_USERDEF; }
|
||||
|
||||
inline const OUString& GetName() const { return maName; }
|
||||
|
||||
virtual void SaveXml( XclExpXmlStream& rStrm ) SAL_OVERRIDE;
|
||||
|
||||
private:
|
||||
|
||||
@@ -309,8 +309,6 @@ protected:
|
||||
|
||||
/** Sets this record to a new column position. */
|
||||
inline void SetXclCol( sal_uInt16 nXclCol ) { maXclPos.mnCol = nXclCol; }
|
||||
/** Sets this record to a new row position. */
|
||||
inline void SetXclRow( sal_uInt32 nXclRow ) { maXclPos.mnRow = nXclRow; }
|
||||
|
||||
private:
|
||||
XclAddress maXclPos; /// Address of the cell.
|
||||
@@ -498,11 +496,6 @@ protected:
|
||||
explicit XclExpMultiCellBase( sal_uInt16 nRecId, sal_uInt16 nMulRecId,
|
||||
sal_Size nContSize, const XclAddress& rXclPos );
|
||||
|
||||
/** Sets the size of the remaining contents of one cell (without the XF index). */
|
||||
inline void SetContSize( sal_Size nContSize ) { mnContSize = nContSize; }
|
||||
/** Returns the size of the remaining contents of one cell (without the XF index). */
|
||||
inline sal_Size GetContSize() const { return mnContSize; }
|
||||
|
||||
/** Returns the number of cells this record represents. */
|
||||
sal_uInt16 GetCellCount() const;
|
||||
|
||||
@@ -887,8 +880,6 @@ public:
|
||||
inline sal_uInt32 GetXclRowRpt() const { return mnXclRowRpt; }
|
||||
inline void SetXclRowRpt( sal_uInt32 nRpt ){ mnXclRowRpt = nRpt; }
|
||||
private:
|
||||
/** Initializes the record data. Called from constructors. */
|
||||
void Init( sal_uInt16 nXclRow, XclExpRowOutlineBuffer* pOutlineBfr );
|
||||
/** Inserts a cell at the specified list position, tries to merge with neighbors. */
|
||||
void InsertCell( XclExpCellRef xCell, size_t nPos, bool bIsMergedBase );
|
||||
|
||||
|
||||
@@ -322,8 +322,6 @@ public:
|
||||
|
||||
/** Returns true, if the area format is set to automatic. */
|
||||
inline bool IsAutoArea() const { return !mxEscherFmt && (!mxAreaFmt || mxAreaFmt->IsAuto()); }
|
||||
/** Returns true, if the area style is set to something visible. */
|
||||
inline bool HasArea() const { return mxEscherFmt || IsAutoArea() || mxAreaFmt->HasArea(); }
|
||||
|
||||
protected:
|
||||
/** Converts and writes the contained line formatting to the passed property set. */
|
||||
@@ -774,12 +772,8 @@ public:
|
||||
|
||||
/** Returns the axes set identifier this series is assigned to (primary/secondary). */
|
||||
inline sal_uInt16 GetGroupIdx() const { return mnGroupIdx; }
|
||||
/** Returns the 0-based series index described by this series. */
|
||||
inline sal_uInt16 GetSeriesIdx() const { return mnSeriesIdx; }
|
||||
/** Returns the 0-based index of the parent series (e.g. of a trend line). */
|
||||
inline sal_uInt16 GetParentIdx() const { return mnParentIdx; }
|
||||
/** Returns the format index of the series used for automatic line and area colors. */
|
||||
inline sal_uInt16 GetFormatIdx() const { return mxSeriesFmt ? mxSeriesFmt->GetFormatIdx() : EXC_CHDATAFORMAT_DEFAULT; }
|
||||
/** Returns true, if the series is child of another series (e.g. trend line). */
|
||||
inline bool HasParentSeries() const { return mnParentIdx != EXC_CHSERIES_INVALID; }
|
||||
/** Returns true, if the series contains child series (e.g. trend lines). */
|
||||
@@ -985,8 +979,6 @@ public:
|
||||
inline const XclChExtTypeInfo& GetTypeInfo() const { return maTypeInfo; }
|
||||
/** Returns true, if this chart type group contains at least one valid series. */
|
||||
inline bool IsValidGroup() const { return !maSeries.empty(); }
|
||||
/** Returns true, if the series in this chart type group are stacked on each other (no percentage). */
|
||||
inline bool IsStacked() const { return maType.IsStacked(); }
|
||||
/** Returns true, if the series in this chart type group are stacked on each other as percentage. */
|
||||
inline bool IsPercent() const { return maType.IsPercent(); }
|
||||
/** Returns true, if the chart is three-dimensional. */
|
||||
@@ -1246,9 +1238,6 @@ private:
|
||||
/** Reads a CHTYPEGROUP record group containing chart type and chart settings. */
|
||||
void ReadChTypeGroup( XclImpStream& rStrm );
|
||||
|
||||
/** Updates text formatting of the passed axis title with global text formatting. */
|
||||
void UpdateAxisTitle( XclImpChTextRef xTitle );
|
||||
|
||||
/** Creates a coordinate system that contains all chart types for this axes set. */
|
||||
css::uno::Reference< css::chart2::XCoordinateSystem >
|
||||
CreateCoordSystem( css::uno::Reference< css::chart2::XDiagram > xDiagram ) const;
|
||||
|
||||
@@ -462,8 +462,6 @@ public:
|
||||
|
||||
/** Returns true, if a linked cell address is present. */
|
||||
inline bool HasCellLink() const { return mxCellLink != 0; }
|
||||
/** Returns true, if a linked source cell range is present. */
|
||||
inline bool HasSourceRange() const { return mxSrcRange != 0; }
|
||||
|
||||
/** Returns the SdrObject from the passed control shape and sets the bounding rectangle. */
|
||||
SdrObject* CreateSdrObjectFromShape(
|
||||
@@ -587,7 +585,6 @@ protected:
|
||||
virtual XclTbxEventType DoGetEventType() const SAL_OVERRIDE;
|
||||
|
||||
protected:
|
||||
void ApplyGrouping( XclImpOptionButtonObj& rLeader, sal_Int32 nRefVal );
|
||||
sal_uInt16 mnNextInGroup; /// Next option button in a group.
|
||||
sal_uInt16 mnFirstInGroup; /// 1 = Button is the first in a group.
|
||||
};
|
||||
@@ -1172,28 +1169,6 @@ public:
|
||||
associated object id. */
|
||||
OUString GetOleNameOverride( SCTAB nTab, sal_uInt16 nObjId );
|
||||
|
||||
private:
|
||||
|
||||
/** Reads and returns a bitmap from WMF/PICT format. */
|
||||
static void ReadWmf( Graphic& rGraphic, XclImpStream& rStrm );
|
||||
/** Reads and returns a bitmap from BMP format. */
|
||||
static void ReadBmp( Graphic& rGraphic, XclImpStream& rStrm );
|
||||
|
||||
/** Reads contents of an DFF record and append data to internal DFF stream. */
|
||||
void ReadDffRecord( XclImpStream& rStrm );
|
||||
/** Reads a BIFF8 OBJ record following an MSODRAWING record. */
|
||||
void ReadObj8( XclImpStream& rStrm );
|
||||
/** Reads the TXO record and following CONTINUE records containing string and formatting. */
|
||||
void ReadTxo( XclImpStream& rStrm );
|
||||
|
||||
/** Reads a BIFF3-BIFF5 NOTE record. */
|
||||
void ReadNote3( XclImpStream& rStrm );
|
||||
/** Reads a BIFF8 NOTE record. */
|
||||
void ReadNote8( XclImpStream& rStrm );
|
||||
|
||||
/** Returns the size of the progress bar shown while processing all objects. */
|
||||
sal_Size GetProgressSize() const;
|
||||
|
||||
private:
|
||||
typedef ::std::map< sal_uInt16, OUString > DefObjNameMap;
|
||||
typedef boost::shared_ptr< XclImpSheetDrawing > XclImpSheetDrawingRef;
|
||||
|
||||
@@ -307,7 +307,6 @@ public:
|
||||
sal_uInt16 GetFieldCount() const;
|
||||
const XclImpPTField* GetField( sal_uInt16 nFieldIdx ) const;
|
||||
XclImpPTField* GetFieldAcc( sal_uInt16 nFieldIdx );
|
||||
const OUString& GetFieldName( sal_uInt16 nFieldIdx ) const;
|
||||
|
||||
const XclImpPTField* GetDataField( sal_uInt16 nDataFieldIdx ) const;
|
||||
OUString GetDataFieldName( sal_uInt16 nDataFieldIdx ) const;
|
||||
|
||||
@@ -308,8 +308,6 @@ public:
|
||||
void StoreGlobalPosition();
|
||||
/** Seeks to the stored global user position. */
|
||||
void SeekGlobalPosition();
|
||||
/** Invalidates global user position. */
|
||||
inline void DeleteGlobalPosition() { mbHasGlobPos = false; }
|
||||
|
||||
/** Returns record reading state: false = record overread. */
|
||||
inline bool IsValid() const { return mbValid; }
|
||||
|
||||
@@ -44,8 +44,6 @@ public:
|
||||
inline void SetText( const OUString& rText ) { maString = rText; }
|
||||
/** Sets the passed formatting buffer. */
|
||||
inline void SetFormats( const XclFormatRunVec& rFormats ) { maFormats = rFormats; }
|
||||
/** Insert a formatting run to the format buffer. */
|
||||
inline void AppendFormat( sal_uInt16 nChar, sal_uInt16 nFontIdx ) { AppendFormat( maFormats, nChar, nFontIdx ); }
|
||||
/** Reads and appends the formatting information (run count and runs) from stream. */
|
||||
inline void ReadFormats( XclImpStream& rStrm ) { ReadFormats( rStrm, maFormats ); }
|
||||
/** Reads and appends nRunCount formatting runs from stream. */
|
||||
|
||||
@@ -98,12 +98,8 @@ public:
|
||||
/** Returns the text encoding for strings used with this font. */
|
||||
rtl_TextEncoding GetFontEncoding() const;
|
||||
|
||||
/** Returns true, if this font contains characters for Western scripts. */
|
||||
inline bool HasWesternChars() const { return mbHasWstrn; }
|
||||
/** Returns true, if this font contains characters for Asian scripts (CJK). */
|
||||
inline bool HasAsianChars() const { return mbHasAsian; }
|
||||
/** Returns true, if this font contains characters for Complex scripts (CTL). */
|
||||
inline bool HasComplexChars() const { return mbHasCmplx; }
|
||||
|
||||
/** Reads a FONT record for all BIFF versions. */
|
||||
void ReadFont( XclImpStream& rStrm );
|
||||
@@ -390,7 +386,6 @@ public:
|
||||
void ReadXF( XclImpStream& rStrm );
|
||||
|
||||
inline sal_uInt8 GetHorAlign() const { return maAlignment.mnHorAlign; }
|
||||
inline sal_uInt8 GetVerAlign() const { return maAlignment.mnVerAlign; }
|
||||
inline sal_uInt16 GetFontIndex() const { return mnXclFont; }
|
||||
|
||||
/** Creates a Calc item set containing an item set with all cell properties.
|
||||
|
||||
@@ -77,8 +77,6 @@ struct XclRange
|
||||
inline explicit XclRange( sal_uInt16 nCol1, sal_uInt32 nRow1, sal_uInt16 nCol2, sal_uInt32 nRow2 ) :
|
||||
maFirst( nCol1, nRow1 ), maLast( nCol2, nRow2 ) {}
|
||||
|
||||
inline void Set( const XclAddress& rFirst, const XclAddress& rLast )
|
||||
{ maFirst = rFirst; maLast = rLast; }
|
||||
inline void Set( sal_uInt16 nCol1, sal_uInt32 nRow1, sal_uInt16 nCol2, sal_uInt32 nRow2 )
|
||||
{ maFirst.Set( nCol1, nRow1 ); maLast.Set( nCol2, nRow2 ); }
|
||||
|
||||
|
||||
@@ -490,8 +490,6 @@ class XclTokenArrayHelper
|
||||
public:
|
||||
// token identifiers ------------------------------------------------------
|
||||
|
||||
/** Returns the base token ID of the passed (classified) token ID. */
|
||||
inline static sal_uInt8 GetBaseTokenId( sal_uInt8 nTokenId ) { return nTokenId & EXC_TOKID_MASK; }
|
||||
/** Returns the classified token ID from a base ID and the token class. */
|
||||
inline static sal_uInt8 GetTokenId( sal_uInt8 nBaseId, sal_uInt8 nTokenClass );
|
||||
|
||||
|
||||
@@ -387,8 +387,6 @@ public:
|
||||
/** Sets the item to 'boolean' type and adds the passed Boolean value. */
|
||||
void SetBool( bool bValue );
|
||||
|
||||
/** Returns the current item type. */
|
||||
inline XclPCItemType GetType() const { return meType; }
|
||||
/** Returns the text representation of the item. */
|
||||
inline const OUString& ConvertToText() const { return maText; }
|
||||
|
||||
|
||||
@@ -138,8 +138,6 @@ public:
|
||||
|
||||
XclRoot& operator=( const XclRoot& rRoot );
|
||||
|
||||
/** Returns this root instance - for code readability in derived classes. */
|
||||
inline const XclRoot& GetRoot() const { return *this; }
|
||||
/** Returns old RootData struct. Deprecated. */
|
||||
inline RootData& GetOldRoot() const { return *mrData.mxRD; }
|
||||
|
||||
@@ -149,8 +147,6 @@ public:
|
||||
inline XclOutput GetOutput() const { return mrData.meOutput; }
|
||||
/** Returns true, if currently a document is imported. */
|
||||
inline bool IsImport() const { return !mrData.mbExport; }
|
||||
/** Returns true, if currently a document is exported. */
|
||||
inline bool IsExport() const { return mrData.mbExport; }
|
||||
/** Returns the text encoding to import/export byte strings. */
|
||||
inline rtl_TextEncoding GetTextEncoding() const { return mrData.meTextEnc; }
|
||||
/** Returns the system language, i.e. for number formats. */
|
||||
|
||||
@@ -251,8 +251,7 @@ DefinedName::DefinedName( const WorkbookHelper& rHelper ) :
|
||||
mpScRangeData(NULL),
|
||||
mnTokenIndex( -1 ),
|
||||
mnCalcSheet( 0 ),
|
||||
mcBuiltinId( BIFF_DEFNAME_UNKNOWN ),
|
||||
mnFmlaSize( 0 )
|
||||
mcBuiltinId( BIFF_DEFNAME_UNKNOWN )
|
||||
{
|
||||
}
|
||||
|
||||
@@ -345,42 +344,6 @@ void DefinedName::createNameObject( sal_Int32 nIndex )
|
||||
mnTokenIndex = nIndex;
|
||||
}
|
||||
|
||||
ApiTokenSequence
|
||||
DefinedName::getTokens()
|
||||
{
|
||||
// convert and set formula of the defined name
|
||||
ApiTokenSequence aTokens;
|
||||
switch( getFilterType() )
|
||||
{
|
||||
case FILTER_OOXML:
|
||||
{
|
||||
if( mxFormula.get() )
|
||||
{
|
||||
SequenceInputStream aStrm( *mxFormula );
|
||||
aTokens = importBiff12Formula( mnCalcSheet, aStrm );
|
||||
}
|
||||
else
|
||||
aTokens = importOoxFormula( mnCalcSheet );
|
||||
}
|
||||
break;
|
||||
case FILTER_BIFF:
|
||||
{
|
||||
OSL_ENSURE( mxBiffStrm.get(), "DefinedName::convertFormula - missing BIFF stream" );
|
||||
if( mxBiffStrm.get() )
|
||||
{
|
||||
BiffInputStream& rStrm = mxBiffStrm->getStream();
|
||||
BiffInputStreamPosGuard aStrmGuard( rStrm );
|
||||
if( mxBiffStrm->restorePosition() )
|
||||
aTokens = importBiffFormula( mnCalcSheet, rStrm, &mnFmlaSize );
|
||||
}
|
||||
}
|
||||
break;
|
||||
case FILTER_UNKNOWN:
|
||||
break;
|
||||
}
|
||||
return aTokens;
|
||||
}
|
||||
|
||||
std::unique_ptr<ScTokenArray> DefinedName::getScTokens()
|
||||
{
|
||||
ScTokenArray aTokenArray;
|
||||
|
||||
@@ -63,12 +63,6 @@ BiffSheetDrawing::BiffSheetDrawing( const WorksheetHelper& rHelper ) :
|
||||
{
|
||||
}
|
||||
|
||||
void BiffSheetDrawing::notifyShapeInserted( const Reference< XShape >& /*rxShape*/, const css::awt::Rectangle& rShapeRect )
|
||||
{
|
||||
// collect all shape positions in the WorksheetHelper base class
|
||||
extendShapeBoundingBox( rShapeRect );
|
||||
}
|
||||
|
||||
} // namespace xls
|
||||
} // namespace oox
|
||||
|
||||
|
||||
@@ -69,7 +69,6 @@ class ScChangeTrackingExportHelper
|
||||
void AddInsertionAttributes(const ScChangeAction* pAction);
|
||||
void WriteInsertion(ScChangeAction* pAction);
|
||||
void AddDeletionAttributes(const ScChangeActionDel* pAction, const ScChangeActionDel* pLastAction);
|
||||
void WriteDeletionCells(ScChangeActionDel* pAction);
|
||||
void WriteCutOffs(const ScChangeActionDel* pAction);
|
||||
void WriteDeletion(ScChangeAction* pAction);
|
||||
void WriteMovement(ScChangeAction* pAction);
|
||||
|
||||
@@ -111,9 +111,8 @@ public:
|
||||
ScMyNoteShapesContainer();
|
||||
virtual ~ScMyNoteShapesContainer();
|
||||
|
||||
using ScMyIteratorBase::UpdateAddress;
|
||||
using ScMyIteratorBase::UpdateAddress;
|
||||
void AddNewNote(const ScMyNoteShape& aNote);
|
||||
bool HasNotes() { return !aNoteShapeList.empty(); }
|
||||
const ScMyNoteShapeList& GetNotes() const { return aNoteShapeList; }
|
||||
virtual void SetCellData( ScMyCell& rMyCell ) SAL_OVERRIDE;
|
||||
virtual void Sort() SAL_OVERRIDE;
|
||||
|
||||
@@ -1095,12 +1095,6 @@ void ScColumnStyles::AddFieldStyleName(const sal_Int32 nTable, const sal_Int32 n
|
||||
aTables[nTable][nField] = aStyle;
|
||||
}
|
||||
|
||||
OUString* ScColumnStyles::GetStyleName(const sal_Int32 nTable, const sal_Int32 nField)
|
||||
{
|
||||
bool bTemp;
|
||||
return GetStyleNameByIndex(GetStyleNameIndex(nTable, nField, bTemp));
|
||||
}
|
||||
|
||||
ScRowStyles::Cache::Cache() :
|
||||
mnTable(-1), mnStart(-1), mnEnd(-1), mnStyle(-1) {}
|
||||
|
||||
@@ -1173,9 +1167,4 @@ void ScRowStyles::AddFieldStyleName(const sal_Int32 nTable, const sal_Int32 nSta
|
||||
r.insert_back(nStartField, nEndField+1, nStringIndex);
|
||||
}
|
||||
|
||||
OUString* ScRowStyles::GetStyleName(const sal_Int32 nTable, const sal_Int32 nField)
|
||||
{
|
||||
return GetStyleNameByIndex(GetStyleNameIndex(nTable, nField));
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
||||
@@ -221,7 +221,6 @@ public:
|
||||
virtual void AddNewTable(const sal_Int32 nTable, const sal_Int32 nFields) = 0;
|
||||
sal_Int32 AddStyleName(OUString* pString);
|
||||
sal_Int32 GetIndexOfStyleName(const OUString& rString, const OUString& rPrefix);
|
||||
virtual OUString* GetStyleName(const sal_Int32 nTable, const sal_Int32 nField) = 0;
|
||||
OUString* GetStyleNameByIndex(const sal_Int32 nIndex);
|
||||
};
|
||||
|
||||
@@ -247,7 +246,6 @@ public:
|
||||
sal_Int32 GetStyleNameIndex(const sal_Int32 nTable, const sal_Int32 nField,
|
||||
bool& bIsVisible);
|
||||
void AddFieldStyleName(const sal_Int32 nTable, const sal_Int32 nField, const sal_Int32 nStringIndex, const bool bIsVisible);
|
||||
virtual OUString* GetStyleName(const sal_Int32 nTable, const sal_Int32 nField) SAL_OVERRIDE;
|
||||
};
|
||||
|
||||
class ScRowStyles : public ScColumnRowStylesBase
|
||||
@@ -274,7 +272,6 @@ public:
|
||||
sal_Int32 GetStyleNameIndex(const sal_Int32 nTable, const sal_Int32 nField);
|
||||
void AddFieldStyleName(const sal_Int32 nTable, const sal_Int32 nField, const sal_Int32 nStringIndex);
|
||||
void AddFieldStyleName(const sal_Int32 nTable, const sal_Int32 nStartField, const sal_Int32 nStringIndex, const sal_Int32 nEndField);
|
||||
virtual OUString* GetStyleName(const sal_Int32 nTable, const sal_Int32 nField) SAL_OVERRIDE;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -158,7 +158,6 @@ ScXMLTableRowCellContext::ScXMLTableRowCellContext( ScXMLImport& rImport,
|
||||
bIsEmpty(true),
|
||||
mbNewValueType(false),
|
||||
mbErrorValue(false),
|
||||
bIsFirstTextImport(false),
|
||||
bSolarMutexLocked(false),
|
||||
bFormulaTextResult(false),
|
||||
mbPossibleErrorCell(false),
|
||||
|
||||
@@ -87,7 +87,6 @@ class ScXMLTableRowCellContext : public ScXMLImportContext
|
||||
bool bIsEmpty;
|
||||
bool mbNewValueType;
|
||||
bool mbErrorValue;
|
||||
bool bIsFirstTextImport;
|
||||
bool bSolarMutexLocked;
|
||||
bool bFormulaTextResult;
|
||||
bool mbPossibleErrorCell;
|
||||
@@ -96,8 +95,6 @@ class ScXMLTableRowCellContext : public ScXMLImportContext
|
||||
bool mbHasFormatRuns;
|
||||
bool mbHasStyle;
|
||||
|
||||
sal_Int16 GetCellType(const OUString& sOUValue) const;
|
||||
|
||||
void DoMerge(const ScAddress& rScCellPos, const SCCOL nCols, const SCROW nRows);
|
||||
|
||||
void SetContentValidation( const ScRange& rScRange );
|
||||
|
||||
@@ -494,9 +494,6 @@ class ScXMLDataPilotSubTotalsContext : public SvXMLImportContext
|
||||
ScXMLImport& GetScImport() { return static_cast<ScXMLImport&>(GetImport()); }
|
||||
|
||||
public:
|
||||
|
||||
ScXMLDataPilotFieldContext* GetDataPilotField() { return pDataPilotField; }
|
||||
|
||||
ScXMLDataPilotSubTotalsContext( ScXMLImport& rImport, sal_uInt16 nPrfx,
|
||||
const OUString& rLName,
|
||||
const ::com::sun::star::uno::Reference<
|
||||
|
||||
@@ -135,8 +135,6 @@ class ScXMLExport : public SvXMLExport
|
||||
sal_Int32 GetNumberFormatStyleIndex(sal_Int32 nNumFmt) const;
|
||||
void CollectSharedData(SCTAB& nTableCount, sal_Int32& nShapesCount);
|
||||
void CollectShapesAutoStyles(SCTAB nTableCount);
|
||||
void WriteTablesView(const com::sun::star::uno::Any& aTableView);
|
||||
void WriteView(const com::sun::star::uno::Any& aView);
|
||||
virtual void _ExportFontDecls() SAL_OVERRIDE;
|
||||
virtual void _ExportStyles( bool bUsed ) SAL_OVERRIDE;
|
||||
virtual void _ExportAutoStyles() SAL_OVERRIDE;
|
||||
|
||||
@@ -2093,7 +2093,6 @@ ScXMLImport::ScXMLImport(
|
||||
sPrevCurrency(),
|
||||
nSolarMutexLocked(0),
|
||||
nProgressCount(0),
|
||||
nStyleFamilyMask( 0 ),
|
||||
nPrevCellType(0),
|
||||
bLoadDoc( true ),
|
||||
bRemoveLastChar(false),
|
||||
|
||||
@@ -962,7 +962,6 @@ class ScXMLImport: public SvXMLImport, boost::noncopyable
|
||||
OUString sPrevCurrency;
|
||||
sal_uInt32 nSolarMutexLocked;
|
||||
sal_Int32 nProgressCount;
|
||||
sal_uInt16 nStyleFamilyMask;// Mask of styles to load
|
||||
sal_Int16 nPrevCellType;
|
||||
bool bLoadDoc; // Load doc or styles only
|
||||
bool bRemoveLastChar;
|
||||
@@ -1019,7 +1018,6 @@ public:
|
||||
|
||||
ScMyTables& GetTables() { return aTables; }
|
||||
|
||||
sal_uInt16 GetStyleFamilyMask() const { return nStyleFamilyMask; }
|
||||
bool IsStylesOnlyMode() const { return !bLoadDoc; }
|
||||
|
||||
sal_Int16 GetCellType(const OUString& rStrValue) const;
|
||||
@@ -1144,10 +1142,8 @@ public:
|
||||
ScMyImpDetectiveOpArray* GetDetectiveOpArray();
|
||||
|
||||
void SetRemoveLastChar(bool bValue) { bRemoveLastChar = bValue; }
|
||||
bool GetRemoveLastChar() { return bRemoveLastChar; }
|
||||
|
||||
ScXMLChangeTrackingImportHelper* GetChangeTrackingImportHelper();
|
||||
void AddViewContext(SvXMLImportContext* pContext) { aViewContextList.push_back(pContext); }
|
||||
void InsertStyles();
|
||||
|
||||
void SetChangeTrackingViewSettings(const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& rChangeProps);
|
||||
@@ -1155,7 +1151,6 @@ public:
|
||||
virtual void SetConfigurationSettings(const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aConfigProps) SAL_OVERRIDE;
|
||||
|
||||
void SetTableStyle(const OUString& rValue) { aTableStyles.push_back(rValue); }
|
||||
std::vector<OUString> GetTableStyle() { return aTableStyles; }
|
||||
ScMyStylesImportHelper* GetStylesImportHelper() { return pStylesImportHelper; }
|
||||
sal_Int32 SetCurrencySymbol(const sal_Int32 nKey, const OUString& rCurrency);
|
||||
bool IsCurrencySymbol(const sal_Int32 nNumberFormat, const OUString& sCurrencySymbol, const OUString& sBankSymbol);
|
||||
@@ -1218,7 +1213,6 @@ public:
|
||||
void SetNamedRanges();
|
||||
void SetSheetNamedRanges();
|
||||
void SetLabelRanges();
|
||||
void AddDefaultNote( const com::sun::star::table::CellAddress& aCell );
|
||||
|
||||
/** Extracts the formula string, the formula grammar namespace URL, and a
|
||||
grammar enum value from the passed formula attribute value.
|
||||
|
||||
@@ -66,9 +66,6 @@ private:
|
||||
sal_Int16 nCurrentDrawPage;
|
||||
sal_Int16 nCurrentXShapes;
|
||||
|
||||
void NewRow();
|
||||
void NewColumn(bool bIsCovered);
|
||||
|
||||
void SetTableStyle(const OUString& sStyleName);
|
||||
public:
|
||||
ScMyTables(ScXMLImport& rImport);
|
||||
@@ -91,8 +88,6 @@ public:
|
||||
SCROW GetCurrentRow() const { return (maCurrentCellPos.Row() >= 0) ? maCurrentCellPos.Row() : 0; }
|
||||
::com::sun::star::uno::Reference< ::com::sun::star::sheet::XSpreadsheet >
|
||||
GetCurrentXSheet() const { return xCurrentSheet; }
|
||||
::com::sun::star::uno::Reference< ::com::sun::star::table::XCellRange >
|
||||
GetCurrentXCellRange() const { return xCurrentCellRange; }
|
||||
::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >
|
||||
GetCurrentXDrawPage();
|
||||
::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShapes >
|
||||
|
||||
@@ -2500,14 +2500,6 @@ com::sun::star::uno::Sequence< com::sun::star::uno::Any > ScAccessibleDocument::
|
||||
return aEmpty;
|
||||
}
|
||||
|
||||
void ScAccessibleDocument::SwitchViewFireFocus()
|
||||
{
|
||||
if (mpAccessibleSpreadsheet)
|
||||
{
|
||||
mpAccessibleSpreadsheet->FireFirstCellFocus();
|
||||
}
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL ScAccessibleDocument::getForeground( )
|
||||
throw (uno::RuntimeException, std::exception)
|
||||
{
|
||||
|
||||
@@ -36,9 +36,4 @@ ScAccessibleDocumentBase::~ScAccessibleDocumentBase()
|
||||
{
|
||||
}
|
||||
|
||||
void ScAccessibleDocumentBase::SwitchViewFireFocus()
|
||||
{
|
||||
CommitFocusGained();
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
||||
@@ -470,11 +470,6 @@ void AbstractScMoveTableDlg_Impl::SetForceCopyTable()
|
||||
return pDlg->SetForceCopyTable();
|
||||
}
|
||||
|
||||
void AbstractScMoveTableDlg_Impl::EnableCopyTable(bool bFlag)
|
||||
{
|
||||
return pDlg->EnableCopyTable( bFlag);
|
||||
}
|
||||
|
||||
void AbstractScMoveTableDlg_Impl::EnableRenameTable(bool bFlag)
|
||||
{
|
||||
return pDlg->EnableRenameTable( bFlag);
|
||||
@@ -490,11 +485,6 @@ std::vector<OUString> AbstractScNamePasteDlg_Impl::GetSelectedNames() const
|
||||
return pDlg->GetSelectedNames();
|
||||
}
|
||||
|
||||
bool AbstractScNamePasteDlg_Impl::IsAllSelected() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
const ScQueryItem& AbstractScPivotFilterDlg_Impl::GetOutputItem()
|
||||
{
|
||||
return pDlg->GetOutputItem();
|
||||
|
||||
@@ -268,7 +268,6 @@ class AbstractScMoveTableDlg_Impl : public AbstractScMoveTableDlg
|
||||
virtual bool GetRenameTable () const SAL_OVERRIDE;
|
||||
virtual void GetTabNameString( OUString& rString ) const SAL_OVERRIDE;
|
||||
virtual void SetForceCopyTable () SAL_OVERRIDE;
|
||||
virtual void EnableCopyTable (bool bFlag=true) SAL_OVERRIDE;
|
||||
virtual void EnableRenameTable (bool bFlag=true) SAL_OVERRIDE;
|
||||
};
|
||||
|
||||
@@ -282,7 +281,6 @@ class AbstractScNamePasteDlg_Impl : public AbstractScNamePasteDlg
|
||||
{
|
||||
DECL_ABSTDLG_BASE( AbstractScNamePasteDlg_Impl, ScNamePasteDlg )
|
||||
virtual std::vector<OUString> GetSelectedNames() const SAL_OVERRIDE;
|
||||
virtual bool IsAllSelected() const SAL_OVERRIDE;
|
||||
};
|
||||
|
||||
class AbstractScPivotFilterDlg_Impl : public AbstractScPivotFilterDlg
|
||||
|
||||
@@ -669,13 +669,6 @@ bool FuDraw::KeyInput(const KeyEvent& rKEvt)
|
||||
return bReturn;
|
||||
}
|
||||
|
||||
// II
|
||||
void FuDraw::SelectionHasChanged()
|
||||
{
|
||||
const SdrHdlList& rHdlList = pView->GetHdlList();
|
||||
((SdrHdlList&)rHdlList).ResetFocusHdl();
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
|*
|
||||
|* enable function
|
||||
|
||||
@@ -617,58 +617,6 @@ void FuText::Deactivate()
|
||||
StopEditMode();
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
|*
|
||||
|* Selektion hat sich geaendert
|
||||
|*
|
||||
\************************************************************************/
|
||||
|
||||
void FuText::SelectionHasChanged()
|
||||
{
|
||||
pView->SetDragMode(SDRDRAG_MOVE);
|
||||
SfxBindings& rBindings = pViewShell->GetViewFrame()->GetBindings();
|
||||
rBindings.Invalidate( SID_OBJECT_ROTATE );
|
||||
rBindings.Invalidate( SID_OBJECT_MIRROR );
|
||||
|
||||
pTextObj = NULL;
|
||||
|
||||
if ( pView->AreObjectsMarked() )
|
||||
{
|
||||
const SdrMarkList& rMarkList = pView->GetMarkedObjectList();
|
||||
|
||||
if (rMarkList.GetMarkCount() == 1)
|
||||
{
|
||||
SdrMark* pMark = rMarkList.GetMark(0);
|
||||
SdrObject* pObj = pMark->GetMarkedSdrObj();
|
||||
|
||||
sal_uInt16 nSdrObjKind = pObj->GetObjIdentifier();
|
||||
|
||||
if (nSdrObjKind == OBJ_TEXT ||
|
||||
nSdrObjKind == OBJ_TITLETEXT ||
|
||||
nSdrObjKind == OBJ_OUTLINETEXT /* ||
|
||||
pObj->ISA(SdrTextObj) */ )
|
||||
{
|
||||
pTextObj = static_cast<SdrTextObj*>(pObj);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!pTextObj)
|
||||
{
|
||||
/**********************************************************************
|
||||
* Kein Textobjekt im EditMode, daher CreateMode setzen
|
||||
**********************************************************************/
|
||||
sal_uInt16 nObj = OBJ_TEXT;
|
||||
sal_uInt16 nIdent;
|
||||
sal_uInt32 nInvent;
|
||||
pView->TakeCurrentObj(nIdent, nInvent);
|
||||
|
||||
pView->SetCurrentObj(nObj);
|
||||
|
||||
pView->SetCreateMode();
|
||||
}
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
|*
|
||||
|* Objekt in Edit-Mode setzen
|
||||
|
||||
@@ -235,24 +235,6 @@ void ScPrivatSplit::SetYRange(Range cRgeY)
|
||||
aYMovingRange=cRgeY;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
#* Member: GetDeltaY
|
||||
#*------------------------------------------------------------------------
|
||||
#*
|
||||
#* Klasse: ScPrivatSplit
|
||||
#*
|
||||
#* Funktion: Liefert die relative x-Verschiebung zurueck
|
||||
#*
|
||||
#* Input: ---
|
||||
#*
|
||||
#* Output: ---
|
||||
#*
|
||||
#************************************************************************/
|
||||
short ScPrivatSplit::GetDeltaX()
|
||||
{
|
||||
return nDeltaX;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
#* Member: GetDeltaY
|
||||
#*------------------------------------------------------------------------
|
||||
|
||||
@@ -42,9 +42,6 @@ public:
|
||||
ScAccWinFocusLostHint(
|
||||
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xOld );
|
||||
virtual ~ScAccWinFocusLostHint();
|
||||
|
||||
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
|
||||
GetOldAccessible() const { return xOldAccessible; }
|
||||
};
|
||||
|
||||
class ScAccWinFocusGotHint : public SfxHint
|
||||
@@ -55,9 +52,6 @@ public:
|
||||
ScAccWinFocusGotHint(
|
||||
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xNew );
|
||||
virtual ~ScAccWinFocusGotHint();
|
||||
|
||||
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
|
||||
GetNewAccessible() const { return xNewAccessible; }
|
||||
};
|
||||
|
||||
class ScAccGridWinFocusLostHint : public ScAccWinFocusLostHint
|
||||
|
||||
@@ -148,7 +148,6 @@ protected:
|
||||
throw (::com::sun::star::uno::RuntimeException, std::exception);
|
||||
public:
|
||||
const ScAddress& GetCellAddress() const { return maCellAddress; }
|
||||
bool IsCellInChangeTrack(const ScAddress &cell,Color *pColCellBoder);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -298,8 +298,6 @@ public:
|
||||
|
||||
virtual sal_Int32 SAL_CALL getBackground( )
|
||||
throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
||||
protected:
|
||||
void SwitchViewFireFocus() SAL_OVERRIDE;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -30,7 +30,6 @@ public:
|
||||
ScAccessibleDocumentBase(
|
||||
const ::com::sun::star::uno::Reference<
|
||||
::com::sun::star::accessibility::XAccessible>& rxParent);
|
||||
virtual void SwitchViewFireFocus();
|
||||
protected:
|
||||
virtual ~ScAccessibleDocumentBase();
|
||||
};
|
||||
|
||||
@@ -73,9 +73,6 @@ public:
|
||||
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
|
||||
throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
||||
|
||||
//===== internal ========================================================
|
||||
void SetCurrentIndexInParent(sal_Int32 nNew) { mnIndex = nNew; }
|
||||
|
||||
protected:
|
||||
virtual OUString SAL_CALL createAccessibleDescription() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
||||
virtual OUString SAL_CALL createAccessibleName() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
||||
|
||||
@@ -166,9 +166,6 @@ public:
|
||||
virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId()
|
||||
throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
||||
|
||||
//===== internal ========================================================
|
||||
void SetCurrentIndexInParent(sal_Int32 nNew) { mnIndex = nNew; }
|
||||
|
||||
protected:
|
||||
virtual OUString SAL_CALL createAccessibleDescription() throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
||||
virtual OUString SAL_CALL createAccessibleName()
|
||||
|
||||
@@ -288,8 +288,6 @@ private:
|
||||
bool IsCompleteSheetSelected();
|
||||
|
||||
void SelectCell(sal_Int32 nRow, sal_Int32 nCol, bool bDeselect);
|
||||
void CreateSortedMarkedCells();
|
||||
void AddMarkedRange(const ScRange& rRange);
|
||||
|
||||
static ScDocument* GetDocument(ScTabViewShell* pViewShell);
|
||||
static Rectangle GetVisArea(ScTabViewShell* pViewShell, ScSplitPos eSplitPos);
|
||||
|
||||
@@ -54,8 +54,6 @@ public:
|
||||
SfxBroadcaster& GetBroadcaster() const { return maBroadcaster; }
|
||||
|
||||
virtual void UpdateData() = 0;
|
||||
virtual void SetDoUpdate(bool bValue) = 0;
|
||||
virtual bool IsDirty() const = 0;
|
||||
DECL_LINK( NotifyHdl, EENotify* );
|
||||
|
||||
private:
|
||||
@@ -74,8 +72,6 @@ public:
|
||||
virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) SAL_OVERRIDE { ScCellTextData::Notify(rBC, rHint); }
|
||||
|
||||
virtual void UpdateData() SAL_OVERRIDE { ScCellTextData::UpdateData(); }
|
||||
virtual void SetDoUpdate(bool bValue) SAL_OVERRIDE { ScCellTextData::SetDoUpdate(bValue); }
|
||||
virtual bool IsDirty() const SAL_OVERRIDE { return ScCellTextData::IsDirty(); }
|
||||
};
|
||||
|
||||
// ScAccessibleCellTextData: shared data between sub objects of a accessible cell text object
|
||||
@@ -124,8 +120,6 @@ public:
|
||||
virtual SvxEditViewForwarder* GetEditViewForwarder( bool bCreate ) SAL_OVERRIDE;
|
||||
|
||||
virtual void UpdateData() SAL_OVERRIDE { }
|
||||
virtual void SetDoUpdate(bool /* bValue */) SAL_OVERRIDE { }
|
||||
virtual bool IsDirty() const SAL_OVERRIDE { return false; }
|
||||
|
||||
DECL_LINK( NotifyHdl, EENotify* );
|
||||
protected:
|
||||
@@ -224,8 +218,6 @@ public:
|
||||
virtual SvxEditViewForwarder* GetEditViewForwarder( bool /* bCreate */ ) SAL_OVERRIDE { return NULL; }
|
||||
|
||||
virtual void UpdateData() SAL_OVERRIDE { }
|
||||
virtual void SetDoUpdate(bool /* bValue */) SAL_OVERRIDE { }
|
||||
virtual bool IsDirty() const SAL_OVERRIDE { return false; }
|
||||
private:
|
||||
ScPreviewViewForwarder* mpViewForwarder;
|
||||
ScPreviewShell* mpViewShell;
|
||||
@@ -254,8 +246,6 @@ public:
|
||||
virtual SvxEditViewForwarder* GetEditViewForwarder( bool /* bCreate */ ) SAL_OVERRIDE { return NULL; }
|
||||
|
||||
virtual void UpdateData() SAL_OVERRIDE { }
|
||||
virtual void SetDoUpdate(bool /* bValue */) SAL_OVERRIDE { }
|
||||
virtual bool IsDirty() const SAL_OVERRIDE { return false; }
|
||||
private:
|
||||
ScPreviewViewForwarder* mpViewForwarder;
|
||||
ScPreviewShell* mpViewShell;
|
||||
@@ -300,8 +290,6 @@ public:
|
||||
virtual SvxEditViewForwarder* GetEditViewForwarder( bool bCreate ) SAL_OVERRIDE;
|
||||
|
||||
virtual void UpdateData() SAL_OVERRIDE {}
|
||||
virtual void SetDoUpdate( bool /* bValue */ ) SAL_OVERRIDE {}
|
||||
virtual bool IsDirty() const SAL_OVERRIDE { return false; }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -45,37 +45,9 @@ class ScDocument;
|
||||
#define FLT_DATE_BETWEEN 4
|
||||
#define FLT_DATE_SAVE 5
|
||||
|
||||
class ScViewEntryPtr
|
||||
{
|
||||
private:
|
||||
OUString* pAction;
|
||||
OUString* pPos;
|
||||
OUString* pAuthor;
|
||||
OUString* pDate;
|
||||
OUString* pComment;
|
||||
void* pData;
|
||||
|
||||
public:
|
||||
|
||||
OUString* GetpAction() {return pAction; }
|
||||
OUString* GetpPos() {return pPos; }
|
||||
OUString* GetpAuthor() {return pAuthor; }
|
||||
OUString* GetpDate() {return pDate; }
|
||||
OUString* GetpComment() {return pComment;}
|
||||
void* GetpData() {return pData; }
|
||||
|
||||
void SetpAction (OUString* pString) {pAction= pString;}
|
||||
void SetpPos (OUString* pString) {pPos = pString;}
|
||||
void SetpAuthor (OUString* pString) {pAuthor= pString;}
|
||||
void SetpDate (OUString* pString) {pDate = pString;}
|
||||
void SetpComment(OUString* pString) {pComment=pString;}
|
||||
void SetpData (void* pdata) {pData =pdata;}
|
||||
};
|
||||
|
||||
class ScRedlinData : public RedlinData
|
||||
{
|
||||
public:
|
||||
|
||||
ScRedlinData();
|
||||
virtual ~ScRedlinData();
|
||||
SCTAB nTable;
|
||||
|
||||
@@ -96,9 +96,6 @@ public:
|
||||
|
||||
static void enableInput(bool _bInput);
|
||||
|
||||
protected:
|
||||
vcl::Window* GetWindow(){ return m_pWindow; }
|
||||
|
||||
public:
|
||||
static bool CanInputStart( const formula::RefEdit *pEdit ){ return !!pEdit; }
|
||||
bool CanInputDone( bool bForced ){ return pRefEdit && (bForced || !pRefBtn); }
|
||||
@@ -135,8 +132,6 @@ protected:
|
||||
|
||||
virtual void RefInputStart( formula::RefEdit* pEdit, formula::RefButton* pButton = NULL ) SAL_OVERRIDE;
|
||||
virtual void RefInputDone( bool bForced = false ) SAL_OVERRIDE;
|
||||
void ShowSimpleReference(const OUString& rStr);
|
||||
void ShowFormulaReference(const OUString& rStr);
|
||||
|
||||
bool ParseWithNames( ScRangeList& rRanges, const OUString& rStr, ScDocument* pDoc );
|
||||
|
||||
|
||||
@@ -62,10 +62,7 @@ public:
|
||||
void ReadFromString( const OUString& rString );
|
||||
OUString WriteToString() const;
|
||||
|
||||
void InterpretColumnList( const OUString& rString );
|
||||
|
||||
rtl_TextEncoding GetCharSet() const { return eCharSet; }
|
||||
bool GetCharSetSystem() const { return bCharSetSystem; }
|
||||
const OUString& GetFieldSeps() const { return aFieldSeps; }
|
||||
bool IsMergeSeps() const { return bMergeFieldSeps; }
|
||||
bool IsQuotedAsText() const { return bQuotedFieldAsText; }
|
||||
|
||||
@@ -38,12 +38,6 @@ public:
|
||||
const Size& rSize,
|
||||
bool bState,
|
||||
bool bBtnIn = false );
|
||||
|
||||
void Draw( const Point& rAt,
|
||||
bool bState,
|
||||
bool bBtnIn = false )
|
||||
{ Draw( rAt, aBtnSize, bState, bBtnIn ); }
|
||||
|
||||
void Draw( bool bState,
|
||||
bool bBtnIn = false )
|
||||
{ Draw( aBtnPos, aBtnSize, bState, bBtnIn ); }
|
||||
|
||||
@@ -93,9 +93,6 @@ public:
|
||||
void ExecuteDB( SfxRequest& rReq );
|
||||
void GetDBState( SfxItemSet& rSet );
|
||||
|
||||
void ExecImageMap(SfxRequest& rReq); // ImageMap
|
||||
void GetImageMapState(SfxItemSet& rSet);
|
||||
|
||||
void GetClipState( SfxItemSet& rSet );
|
||||
void GetHLinkState( SfxItemSet& rSet );
|
||||
|
||||
|
||||
@@ -334,8 +334,6 @@ private:
|
||||
DECL_LINK( EdModifyHdl, void* );
|
||||
|
||||
private:
|
||||
SvTreeListEntry* findEntry( SvTreeListEntry* pParent, const OUString& rText );
|
||||
|
||||
VclPtr<Edit> maEdSearch;
|
||||
VclPtr<ScCheckListBox> maChecks;
|
||||
|
||||
|
||||
@@ -41,7 +41,6 @@ public:
|
||||
ScClient( ScTabViewShell* pViewShell, vcl::Window* pDraw, SdrModel* pSdrModel, SdrOle2Obj* pObj );
|
||||
virtual ~ScClient();
|
||||
|
||||
SdrGrafObj* GetGrafEdit() const { return pGrafEdit; }
|
||||
void SetGrafEdit(SdrGrafObj* pNew) { pGrafEdit = pNew; }
|
||||
SdrOle2Obj* GetDrawObj();
|
||||
};
|
||||
|
||||
@@ -73,7 +73,6 @@ public:
|
||||
|
||||
bool IsSelected() const { return mbActive;}
|
||||
void SetIndex(sal_Int32 nIndex);
|
||||
sal_Int32 GetIndex() const { return mnIndex; }
|
||||
void SetHeight();
|
||||
|
||||
virtual ScFormatEntry* GetEntry() const = 0;
|
||||
|
||||
@@ -59,8 +59,6 @@ public:
|
||||
|
||||
virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) SAL_OVERRIDE;
|
||||
|
||||
static ScCondFormatsObj* getImplementation( uno::Reference< com::sun::star::sheet::XConditionalFormats > xCondFormat );
|
||||
|
||||
// XConditionalFormats
|
||||
virtual sal_Int32 SAL_CALL createByRange(const uno::Reference<sheet::XSheetCellRanges>& xRanges)
|
||||
throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
||||
@@ -92,7 +90,6 @@ public:
|
||||
|
||||
virtual ~ScCondFormatObj();
|
||||
|
||||
static ScCondFormatObj* getImplementation( uno::Reference<sheet::XConditionalFormat> XCondFormat);
|
||||
ScDocShell* getDocShell();
|
||||
|
||||
// XConditionalFormat
|
||||
@@ -180,8 +177,6 @@ public:
|
||||
const ScCondFormatEntry* pFormat);
|
||||
virtual ~ScConditionEntryObj();
|
||||
|
||||
static ScConditionEntryObj* getImplementation(uno::Reference<sheet::XConditionEntry> xCondition);
|
||||
|
||||
ScCondFormatEntry* getCoreObject();
|
||||
|
||||
// XConditionEntry
|
||||
@@ -244,8 +239,6 @@ public:
|
||||
ScColorScaleFormatObj(rtl::Reference<ScCondFormatObj> xParent, const ScColorScaleFormat* pFormat);
|
||||
virtual ~ScColorScaleFormatObj();
|
||||
|
||||
static ScColorScaleFormatObj* getImplementation(uno::Reference<beans::XPropertySet> xPropSet);
|
||||
|
||||
// XConditionEntry
|
||||
virtual sal_Int32 SAL_CALL getType()
|
||||
throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
||||
@@ -341,8 +334,6 @@ public:
|
||||
const ScDataBarFormat* pFormat);
|
||||
virtual ~ScDataBarFormatObj();
|
||||
|
||||
static ScDataBarFormatObj* getImplementation(uno::Reference<beans::XPropertySet> xPropSet);
|
||||
|
||||
ScDataBarFormat* getCoreObject();
|
||||
|
||||
// XConditionEntry
|
||||
@@ -431,8 +422,6 @@ public:
|
||||
const ScIconSetFormat* pFormat);
|
||||
virtual ~ScIconSetFormatObj();
|
||||
|
||||
static ScIconSetFormatObj* getImplementation(uno::Reference<beans::XPropertySet> xPropSet);
|
||||
|
||||
ScIconSetFormat* getCoreObject();
|
||||
|
||||
// XConditionEntry
|
||||
|
||||
@@ -155,8 +155,6 @@ public:
|
||||
void ApplyNavigatorSettings();
|
||||
/** Stores the current listbox state in the navigator settings. */
|
||||
void StoreNavigatorSettings() const;
|
||||
|
||||
static bool IsInDrag() { return bIsInDrag; }
|
||||
};
|
||||
|
||||
#endif // INCLUDED_SC_SOURCE_UI_INC_CONTENT_HXX
|
||||
|
||||
@@ -286,8 +286,6 @@ public:
|
||||
|
||||
/** Sets a new command handler. */
|
||||
inline void SetCmdHdl( const Link<>& rHdl ) { maCmdHdl = rHdl; }
|
||||
/** Returns the current command handler. */
|
||||
inline const Link<>& GetCmdHdl() const { return maCmdHdl; }
|
||||
/** Returns data of the last command. */
|
||||
inline const ScCsvCmd& GetCmd() const { return maCmd; }
|
||||
|
||||
|
||||
@@ -220,9 +220,6 @@ public:
|
||||
sal_uInt32 GetFirstSelected() const;
|
||||
/** Returns index of the first selected column really after nFromIndex. */
|
||||
sal_uInt32 GetNextSelected( sal_uInt32 nFromIndex ) const;
|
||||
/** Returns true, if at least one column is selected. */
|
||||
inline bool HasSelection() const { return GetFirstSelected() != CSV_COLUMN_INVALID; }
|
||||
|
||||
/** Selects or deselects the specified column. */
|
||||
void Select( sal_uInt32 nColIndex, bool bSelect = true );
|
||||
/** Toggles selection of the specified column. */
|
||||
|
||||
@@ -114,12 +114,8 @@ public:
|
||||
public:
|
||||
/** Sets a new handler for "update cell texts" requests. */
|
||||
inline void SetUpdateTextHdl( const Link<>& rHdl ) { maUpdateTextHdl = rHdl; }
|
||||
/** Returns the handler for "update cell texts" requests. */
|
||||
inline const Link<>& GetUpdateTextHdl() const { return maUpdateTextHdl; }
|
||||
/** Sets a new handler for "column selection changed" events. */
|
||||
inline void SetColTypeHdl( const Link<>& rHdl ) { maColTypeHdl = rHdl; }
|
||||
/** Returns the handler for "column selection changed" events. */
|
||||
inline const Link<>& GetColTypeHdl() const { return maColTypeHdl; }
|
||||
|
||||
protected:
|
||||
virtual void Resize() SAL_OVERRIDE;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user