LibreOffice Module sc (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | Friends | List of all members
ScDBDocFunc Class Reference

#include <dbdocfun.hxx>

Collaboration diagram for ScDBDocFunc:
[legend]

Public Member Functions

 ScDBDocFunc (ScDocShell &rDocSh)
 
void UpdateImport (const OUString &rTarget, const svx::ODataAccessDescriptor &rDescriptor)
 
bool DoImport (SCTAB nTab, const ScImportParam &rParam, const svx::ODataAccessDescriptor *pDescriptor)
 
void DoImportUno (const ScAddress &rPos, const css::uno::Sequence< css::beans::PropertyValue > &aArgs)
 
SC_DLLPUBLIC bool Sort (SCTAB nTab, const ScSortParam &rSortParam, bool bRecord, bool bPaint, bool bApi)
 
SC_DLLPUBLIC bool Query (SCTAB nTab, const ScQueryParam &rQueryParam, const ScRange *pAdvSource, bool bRecord, bool bApi)
 
void DoSubTotals (SCTAB nTab, const ScSubTotalParam &rParam, bool bRecord, bool bApi)
 
bool AddDBRange (const OUString &rName, const ScRange &rRange)
 
bool DeleteDBRange (const OUString &rName)
 
bool RenameDBRange (const OUString &rOld, const OUString &rNew)
 
void ModifyDBData (const ScDBData &rNewData)
 
void ModifyAllDBData (const ScDBCollection &rNewColl, const std::vector< ScRange > &rDelAreaList)
 
bool RepeatDB (const OUString &rDBName, bool bApi, bool bIsUnnamed, SCTAB aTab=0)
 
bool DataPilotUpdate (ScDPObject *pOldObj, const ScDPObject *pNewObj, bool bRecord, bool bApi, bool bAllowMove=false)
 
bool RemovePivotTable (const ScDPObject &rDPObj, bool bRecord, bool bApi)
 
bool CreatePivotTable (const ScDPObject &rDPObj, bool bRecord, bool bApi)
 
bool UpdatePivotTable (ScDPObject &rDPObj, bool bRecord, bool bApi)
 
void RefreshPivotTables (const ScDPObject *pDPObj, bool bApi)
 Reload the referenced pivot cache, and refresh all pivot tables that reference the cache. More...
 
void RefreshPivotTableGroups (ScDPObject *pDPObj)
 Refresh the group dimensions of all pivot tables referencing the same cache. More...
 

Static Public Member Functions

static void ShowInBeamer (const ScImportParam &rParam, const SfxViewFrame *pFrame)
 

Private Attributes

ScDocShellrDocShell
 

Friends

class ScDBFunc
 

Detailed Description

Definition at line 43 of file dbdocfun.hxx.

Constructor & Destructor Documentation

◆ ScDBDocFunc()

ScDBDocFunc::ScDBDocFunc ( ScDocShell rDocSh)
inline

Definition at line 51 of file dbdocfun.hxx.

Member Function Documentation

◆ AddDBRange()

bool ScDBDocFunc::AddDBRange ( const OUString &  rName,
const ScRange rRange 
)

◆ CreatePivotTable()

bool ScDBDocFunc::CreatePivotTable ( const ScDPObject rDPObj,
bool  bRecord,
bool  bApi 
)

◆ DataPilotUpdate()

bool ScDBDocFunc::DataPilotUpdate ( ScDPObject pOldObj,
const ScDPObject pNewObj,
bool  bRecord,
bool  bApi,
bool  bAllowMove = false 
)

◆ DeleteDBRange()

bool ScDBDocFunc::DeleteDBRange ( const OUString &  rName)

◆ DoImport()

bool ScDBDocFunc::DoImport ( SCTAB  nTab,
const ScImportParam rParam,
const svx::ODataAccessDescriptor pDescriptor 
)

error message

Definition at line 121 of file dbdocimp.cxx.

References ScImportParam::aDBName, SfxUndoManager::AddUndoAction(), ALL, ScChangeTrack::AppendInsert(), ScImportParam::aStatement, ATTRIB, svx::BookmarkSelection, ScDocument::BroadcastUno(), ScImportParam::bSql, ScDocument::CanFitBlock(), CELLTYPE_FORMULA, ScDocument::CompileDBFormula(), CONTENTS, ScDocument::CopyToDocument(), createInstance(), Application::CreateMessageDialog(), svx::Cursor, ScDocument::DeleteArea(), ScDocument::DeleteAreaTab(), ScDocument::Fill(), FILL_SIMPLE, FILL_TO_BOTTOM, ScDocument::FitBlock(), ScDocShell::GetActiveDialogParent(), ScDocument::GetAutoCalc(), ScUnoHelpFunctions::GetBoolFromAny(), ScDocument::GetCellType(), ScDocument::GetChangeTrack(), ScDocument::GetDBAtArea(), ScDocShell::GetDocument(), ScDocument::GetDocumentShell(), ScPatternAttr::GetItemSet(), ScEditableTester::GetMessageId(), ScDocument::GetPattern(), comphelper::getProcessComponentContext(), comphelper::getProcessServiceFactory(), ScDocument::GetSheetLimits(), ScPatternAttr::GetStyleSheet(), ScDocShell::GetUndoManager(), Grid, ErrorHandler::HandleError(), svx::ODataAccessDescriptor::has(), i, ScDBData::IsDoSize(), ScEditableTester::IsEditable(), ScDBData::IsKeepFmt(), ScDocument::IsTabProtected(), ScDocument::IsUndoEnabled(), ScDocument::MaxCol(), ScDocument::MaxRow(), ScImportParam::nCol1, ScImportParam::nCol2, NOTE, ScImportParam::nRow1, ScImportParam::nRow2, ScImportParam::nType, nType, ScDocShell::PostPaint(), SfxItemSet::Put(), ScDatabaseDocUtil::PutData(), QUERY, rDocShell, SAL_WARN, SC_DBPROP_COMMAND, SC_DBPROP_COMMANDTYPE, SC_DBPROP_DATASOURCENAME, SC_SERVICE_ROWSET, ScDbQuery, SCDOCMODE_UNDO, ScResId(), SCWARN_IMPORT_RANGE_OVERFLOW, svx::Selection, ScMarkData::SelectOneTable(), ScDocument::SetAllFormulasDirty(), ScDBData::SetArea(), ScDocument::SetAutoCalc(), ScDBData::SetByRow(), ScDocShellModificator::SetDocumentModified(), ScDBData::SetHeader(), ScDBData::SetImportParam(), ScDBData::SetImportSelection(), ScProgress::SetState(), TABLE, ScEditableTester::TestBlock(), TOOLS_WARN_EXCEPTION, and ScDocument::ValidRow().

Referenced by ScCellRangeObj::doImport(), IMPL_LINK(), ScDBFunc::ImportData(), ScDatabaseRangeObj::refresh(), and UpdateImport().

◆ DoImportUno()

void ScDBDocFunc::DoImportUno ( const ScAddress rPos,
const css::uno::Sequence< css::beans::PropertyValue > &  aArgs 
)

◆ DoSubTotals()

void ScDBDocFunc::DoSubTotals ( SCTAB  nTab,
const ScSubTotalParam rParam,
bool  bRecord,
bool  bApi 
)

◆ ModifyAllDBData()

void ScDBDocFunc::ModifyAllDBData ( const ScDBCollection rNewColl,
const std::vector< ScRange > &  rDelAreaList 
)

◆ ModifyDBData()

void ScDBDocFunc::ModifyDBData ( const ScDBData rNewData)

◆ Query()

bool ScDBDocFunc::Query ( SCTAB  nTab,
const ScQueryParam rQueryParam,
const ScRange pAdvSource,
bool  bRecord,
bool  bApi 
)

Undo (Query and Repeat) !!!

???

Definition at line 678 of file dbdocfun.cxx.

References SfxUndoManager::AddUndoAction(), ScRange::aEnd, ALL, ScDocument::ApplyPatternAreaTab(), ScDocument::ApplyStyleAreaTab(), ScRange::aStart, ATTRIB, ScQueryParam::bDestPers, ScQueryEntry::bDoQuery, ScQueryParamBase::bDuplicate, ScDocument::BeginDrawUndo(), ScSubTotalParam::bGroupActive, ScQueryParamBase::bHasHeader, ScQueryParamBase::bInplace, ScSubTotalParam::bRemoveOnly, ScDBData::CalcSaveFilteredCount(), ScDocument::CanFitBlock(), CELLTYPE_FORMULA, ScAddress::Col(), ScDocument::CopyToDocument(), ScDocShell::DBAreaDeleted(), ScDocument::DeleteAreaTab(), ScDBCollection::empty(), ScDocShell::ErrorMessage(), ScDocument::Fill(), FILL_SIMPLE, FILL_TO_BOTTOM, ScDocument::FitBlock(), ForceMark, ScDocShell::GetActiveDialogParent(), ScDBData::GetArea(), ScDocShell::GetBestViewShell(), ScDocument::GetCellType(), ScDocument::GetDBAtArea(), ScDocument::GetDBAtCursor(), ScDocument::GetDBCollection(), ScDocShell::GetDBData(), ScDocShell::GetDocument(), ScDocument::GetDocumentShell(), ScQueryParamBase::GetEntry(), ScQueryParamBase::GetEntryCount(), ScEditableTester::GetMessageId(), ScDBData::GetQueryParam(), ScDocument::GetSheetLimits(), ScPatternAttr::GetStyleSheet(), ScDBData::GetSubTotalParam(), ScDocShell::GetUndoManager(), Grid, ScDBData::HasQueryParam(), i, ScDocument::InvalidatePageBreaks(), ScTabViewShell::isAnyEditViewInRange(), ScDBData::IsDoSize(), ScEditableTester::IsEditable(), ScDBData::IsKeepFmt(), ScDocument::IsUndoEnabled(), Left, ScDocument::MaxCol(), ScDocument::MaxRow(), ScQueryParam::MoveToDest(), ScQueryParamTable::nCol1, ScQueryParamTable::nCol2, nCount, ScQueryParam::nDestCol, ScQueryParam::nDestRow, ScQueryParam::nDestTab, NONE, ScQueryParamTable::nRow1, ScQueryParamTable::nRow2, ScDBFunc::OnLOKShowHideColRow(), ScDocShell::PostPaint(), ScDocument::Query(), Query(), rDocShell, ScAddress::Row(), SC_DB_MAKE, SCDOCMODE_UNDO, ScResId(), ScMarkData::SelectOneTable(), ScDBData::SetAdvancedQuerySource(), ScDBData::SetArea(), ScAddress::SetCol(), ScDocShellModificator::SetDocumentModified(), ScDBData::SetHeader(), ScDBData::SetQueryParam(), ScAddress::SetRow(), ScDocument::SetSubTotalCellsDirty(), TOP_LEFT, ScDocument::UpdatePageBreaks(), and ScDocument::ValidColRow().

Referenced by ScCellRangeObj::filter(), ScDBFunc::Query(), Query(), and RepeatDB().

◆ RefreshPivotTableGroups()

void ScDBDocFunc::RefreshPivotTableGroups ( ScDPObject pDPObj)

◆ RefreshPivotTables()

void ScDBDocFunc::RefreshPivotTables ( const ScDPObject pDPObj,
bool  bApi 
)

Reload the referenced pivot cache, and refresh all pivot tables that reference the cache.

Definition at line 1666 of file dbdocfun.cxx.

References ScDocShell::GetDocument(), ScDocument::GetDPCollection(), rDocShell, ScDPCollection::ReloadCache(), and UpdatePivotTable().

Referenced by ScDBFunc::RecalcPivotTable(), and ScDataPilotTableObj::refresh().

◆ RemovePivotTable()

bool ScDBDocFunc::RemovePivotTable ( const ScDPObject rDPObj,
bool  bRecord,
bool  bApi 
)

◆ RenameDBRange()

bool ScDBDocFunc::RenameDBRange ( const OUString &  rOld,
const OUString &  rNew 
)

◆ RepeatDB()

bool ScDBDocFunc::RepeatDB ( const OUString &  rDBName,
bool  bApi,
bool  bIsUnnamed,
SCTAB  aTab = 0 
)

◆ ShowInBeamer()

void ScDBDocFunc::ShowInBeamer ( const ScImportParam rParam,
const SfxViewFrame pFrame 
)
static

◆ Sort()

bool ScDBDocFunc::Sort ( SCTAB  nTab,
const ScSortParam rSortParam,
bool  bRecord,
bool  bPaint,
bool  bApi 
)

Definition at line 466 of file dbdocfun.cxx.

References ScSortParam::aDataAreaExtras, SfxUndoManager::AddUndoAction(), ScDocShell::AdjustRowHeight(), ScDataAreaExtras::anyExtrasWanted(), ScSortParam::bByRow, ScQueryEntry::bDoQuery, ScSortParam::bHasHeader, ScSortParam::bInplace, ScDataAreaExtras::Col, ScDocShell::ErrorMessage(), ScDocShell::GetActiveDialogParent(), ScDBCollection::getAnonDBs(), ScDocument::GetAnonymousDBData(), ScDocShell::GetBestViewShell(), ScDocument::GetDBAtArea(), ScDocument::GetDBCollection(), ScDocShell::GetDocFunc(), SfxViewShell::GetDocId(), ScDocShell::GetDocument(), ScQueryParamBase::GetEntry(), SfxViewShell::GetFirst(), ScViewData::GetLOKHeightHelper(), ScEditableTester::GetMessageId(), SfxViewShell::GetNext(), ScDataAreaExtras::GetOverallRange(), ScDBData::GetQueryParam(), ScSortParam::GetSortKeyCount(), ScInputOptions::GetSortRefUpdate(), ScDocShell::GetUndoManager(), ScTabView::GetViewData(), Grid, ScDBCollection::AnonDBs::has(), ScDocument::HasAttrib(), ScDocument::HasHiddenRows(), ScDocument::HasUniformRowHeight(), comphelper::LibreOfficeKit::isActive(), ScEditableTester::IsEditable(), ScDocument::IsUndoEnabled(), Left, ScSortParam::maKeyState, ScDocument::MaxCol(), ScDataAreaExtras::mbCellFormats, Merged, ScDocFunc::MoveBlock(), ScSortParam::MoveToDest(), ScSortParam::nCol1, ScSortParam::nCol2, ScSortParam::nDestCol, ScSortParam::nDestRow, ScSortParam::nDestTab, ScTabViewShell::notifyAllViewsSheetGeomInvalidation(), ScSortParam::nRow1, ScSortParam::nRow2, Overlapped, ScDocShell::PostPaint(), rDocShell, ScDataAreaExtras::resetArea(), ScDataAreaExtras::Row, SC_MOD, ScResId(), ScDocument::SetDirty(), ScDocShellModificator::SetDocumentModified(), ScDataAreaExtras::SetOverallRange(), ScDBData::SetSortParam(), ScDocument::ShrinkToUsedDataArea(), ScDocument::Sort(), ScDBData::UpdateFromSortParam(), and ScDocument::UpdateScriptTypes().

Referenced by DoSubTotals(), RepeatDB(), ScCellRangeObj::sort(), and ScDBFunc::Sort().

◆ UpdateImport()

void ScDBDocFunc::UpdateImport ( const OUString &  rTarget,
const svx::ODataAccessDescriptor rDescriptor 
)

◆ UpdatePivotTable()

bool ScDBDocFunc::UpdatePivotTable ( ScDPObject rDPObj,
bool  bRecord,
bool  bApi 
)

Friends And Related Function Documentation

◆ ScDBFunc

friend class ScDBFunc
friend

Definition at line 45 of file dbdocfun.hxx.

Member Data Documentation

◆ rDocShell

ScDocShell& ScDBDocFunc::rDocShell
private

The documentation for this class was generated from the following files: