LibreOffice Module dbaccess (master) 1
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
dbaui::OCopyTableWizard Class Reference

#include <WCopyTable.hxx>

Inheritance diagram for dbaui::OCopyTableWizard:
[legend]
Collaboration diagram for dbaui::OCopyTableWizard:
[legend]

Public Types

enum  Wizard_Button_Style {
  WIZARD_NEXT ,
  WIZARD_PREV ,
  WIZARD_FINISH ,
  WIZARD_NONE
}
 
typedef std::map< OUString, OUString, ::comphelper::UStringMixLessTNameMapping
 

Public Member Functions

 OCopyTableWizard (weld::Window *pParent, const OUString &_rDefaultName, sal_Int16 _nOperation, const ICopyTableSourceObject &_rSourceObject, const css::uno::Reference< css::sdbc::XConnection > &_xSourceConnection, const css::uno::Reference< css::sdbc::XConnection > &_xConnection, const css::uno::Reference< css::uno::XComponentContext > &_rxContext, const css::uno::Reference< css::task::XInteractionHandler > &_xInteractionHandler)
 
 OCopyTableWizard (weld::Window *pParent, OUString _sDefaultName, sal_Int16 _nOperation, ODatabaseExport::TColumns &&_rDestColumns, const ODatabaseExport::TColumnVector &_rSourceColVec, const css::uno::Reference< css::sdbc::XConnection > &_xConnection, const css::uno::Reference< css::util::XNumberFormatter > &_xFormatter, TypeSelectionPageFactory _pTypeSelectionPageFactory, SvStream &_rTypeSelectionPageArg, const css::uno::Reference< css::uno::XComponentContext > &_rxContext)
 
virtual ~OCopyTableWizard () override
 
virtual bool DeactivatePage () override
 
weld::ButtonGetOKButton ()
 
Wizard_Button_Style GetPressedButton () const
 
void EnableNextButton (bool bEnable)
 
void AddWizardPage (std::unique_ptr< OWizardPage > xPage)
 
void CheckButtons ()
 
const ODatabaseExport::TPositionsGetColumnPositions () const
 
const std::vector< sal_Int32 > & GetColumnTypes () const
 
bool UseHeaderLine () const
 
void setUseHeaderLine (bool _bUseHeaderLine)
 
void insertColumn (sal_Int32 _nPos, OFieldDescription *_pField)
 
void replaceColumn (sal_Int32 _nPos, OFieldDescription *_pField, const OUString &_sOldName)
 replaces a field description with another one. More...
 
bool shouldCreatePrimaryKey () const
 returns whether a primary key should be created in the target database More...
 
void setCreatePrimaryKey (bool _bDoCreate, const OUString &_rSuggestedName)
 
bool supportsPrimaryKey () const
 
bool supportsViews () const
 
const OUString & getPrimaryKeyName () const
 returns the name of the primary key More...
 
const OTypeInfoMapgetTypeInfo () const
 
TOTypeInfoSP const & getDestTypeInfo (sal_Int32 _nPos) const
 
const OTypeInfoMapgetDestTypeInfo () const
 
const css::lang::Locale & GetLocale () const
 
const css::uno::Reference< css::util::XNumberFormatter > & GetFormatter () const
 
const css::uno::Reference< css::uno::XComponentContext > & GetComponentContext () const
 
const ODatabaseExport::TColumnsgetSourceColumns () const
 
const ODatabaseExport::TColumnVectorgetSrcVector () const
 
ODatabaseExport::TColumnsgetDestColumns ()
 
const ODatabaseExport::TColumnVectorgetDestVector () const
 
const OUString & getName () const
 
void clearDestColumns ()
 clears the dest vectors More...
 
css::uno::Reference< css::beans::XPropertySetreturnTable ()
 
css::uno::Reference< css::beans::XPropertySetgetTable () const
 
css::uno::Reference< css::beans::XPropertySetcreateTable ()
 
css::uno::Reference< css::beans::XPropertySetcreateView () const
 
sal_Int32 getMaxColumnNameLength () const
 
void setOperation (const sal_Int16 _nOperation)
 
sal_Int16 getOperation () const
 
OUString convertColumnName (const TColumnFindFunctor &_rCmpFunctor, const OUString &_sColumnName, std::u16string_view _sExtraChars, sal_Int32 _nMaxNameLen)
 
TOTypeInfoSP convertType (const TOTypeInfoSP &_pType, bool &_bNotConvert)
 
OUString createUniqueName (const OUString &_sName)
 
void showColumnTypeNotSupported (std::u16string_view _rColumnName)
 
void removeColumnNameFromNameMap (const OUString &_sName)
 
void showError (const OUString &_sErrorMessage)
 
void showError (const css::uno::Any &_aError)
 
- Public Member Functions inherited from vcl::RoadmapWizardMachine
 RoadmapWizardMachine (weld::Window *_pParent)
 
virtual ~RoadmapWizardMachine () override
 
void SetRoadmapHelpId (const OUString &_rId)
 
bool isStateEnabled (WizardTypes::WizardState nState) const
 
virtual bool canAdvance () const override
 
virtual void updateTravelUI () override
 
- Public Member Functions inherited from vcl::WizardMachine
 WizardMachine (weld::Window *_pParent, WizardButtonFlags _nButtonFlags)
 
virtual ~WizardMachine () override
 
bool Finish (short nResult=RET_CANCEL)
 
bool ShowPage (WizardTypes::WizardState nState)
 
bool ShowNextPage ()
 
bool ShowPrevPage ()
 
void AddPage (std::unique_ptr< BuilderPage > xPage)
 
void RemovePage (const BuilderPage *pPage)
 
void SetPage (WizardTypes::WizardState nLevel, std::unique_ptr< BuilderPage > xPage)
 
BuilderPageGetPage (WizardTypes::WizardState eState) const
 
void enableButtons (WizardButtonFlags _nWizardButtonFlags, bool _bEnable)
 
void defaultButton (WizardButtonFlags _nWizardButtonFlags)
 
void defaultButton (weld::Button *_pNewDefButton)
 
void setTitleBase (const OUString &_rTitleBase)
 
virtual bool canAdvance () const
 
virtual void updateTravelUI ()
 
void suspendTraveling (AccessGuard)
 
void resumeTraveling (AccessGuard)
 
bool isTravelingSuspended () const
 
- Public Member Functions inherited from weld::AssistantController
 AssistantController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId)
 
virtual DialoggetDialog () override
 
virtual ~AssistantController () override
 
- Public Member Functions inherited from weld::DialogController
virtual DialoggetDialog ()=0
 
const DialoggetConstDialog () const
 
virtual short run ()
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OUString &rHelpId)
 
OUString get_help_id () const
 
void response (int nResponse)
 
virtual ~DialogController () COVERITY_NOEXCEPT_FALSE
 

Static Public Member Functions

static bool supportsPrimaryKey (const css::uno::Reference< css::sdbc::XConnection > &_rxConnection)
 
static bool supportsViews (const css::uno::Reference< css::sdbc::XConnection > &_rxConnection)
 
- Static Public Member Functions inherited from weld::DialogController
static bool runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
 

Private Member Functions

 DECL_LINK (ImplPrevHdl, weld::Button &, void)
 
 DECL_LINK (ImplNextHdl, weld::Button &, void)
 
 DECL_LINK (ImplOKHdl, weld::Button &, void)
 
bool CheckColumns (sal_Int32 &_rnBreakPos)
 
void loadData (const ICopyTableSourceObject &_rSourceObject, ODatabaseExport::TColumns &_rColumns, ODatabaseExport::TColumnVector &_rColVector)
 
void construct ()
 
bool supportsType (sal_Int32 _nDataType, sal_Int32 &_rNewDataType)
 
virtual std::unique_ptr< BuilderPagecreatePage (vcl::WizardTypes::WizardState) override
 
virtual void ActivatePage () override
 
sal_uInt16 GetCurLevel () const
 
weld::ContainerCreatePageContainer ()
 

Static Private Member Functions

static void appendColumns (css::uno::Reference< css::sdbcx::XColumnsSupplier > const &_rxColSup, const ODatabaseExport::TColumnVector *_pVec, bool _bKeyColumns=false)
 
static void appendKey (css::uno::Reference< css::sdbcx::XKeysSupplier > const &_rxSup, const ODatabaseExport::TColumnVector *_pVec)
 

Private Attributes

ODatabaseExport::TColumns m_vDestColumns
 
ODatabaseExport::TColumnVector m_aDestVec
 
ODatabaseExport::TColumns m_vSourceColumns
 
ODatabaseExport::TColumnVector m_vSourceVec
 
OTypeInfoMap m_aTypeInfo
 
std::vector< OTypeInfoMap::iterator > m_aTypeInfoIndex
 
OTypeInfoMap m_aDestTypeInfo
 
std::vector< OTypeInfoMap::iterator > m_aDestTypeInfoIndex
 
TNameMapping m_mNameMapping
 
ODatabaseExport::TPositions m_vColumnPositions
 
std::vector< sal_Int32 > m_vColumnTypes
 
css::uno::Reference< css::sdbc::XConnection > m_xDestConnection
 
const ICopyTableSourceObjectm_rSourceObject
 
css::uno::Reference< css::util::XNumberFormatter > m_xFormatter
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
css::uno::Reference< css::task::XInteractionHandler > m_xInteractionHandler
 
OUString m_sTypeNames
 
sal_uInt32 m_nPageCount
 
bool m_bDeleteSourceColumns
 
bool m_bInterConnectionCopy
 
css::lang::Locale m_aLocale
 
OUString m_sName
 
OUString m_sSourceName
 
OUString m_aKeyName
 
TOTypeInfoSP m_pTypeInfo
 
bool m_bAddPKFirstTime
 
sal_Int16 m_nOperation
 
Wizard_Button_Style m_ePressed
 
bool m_bCreatePrimaryKeyColumn
 
bool m_bUseHeaderLine
 

Friends

class OWizColumnSelect
 
class OWizTypeSelect
 
class OWizTypeSelectControl
 
class OCopyTable
 
class OWizNameMatching
 

Additional Inherited Members

- Protected Member Functions inherited from vcl::RoadmapWizardMachine
void declarePath (RoadmapWizardTypes::PathId _nPathId, const RoadmapWizardTypes::WizardPath &_lWizardStates)
 
void activatePath (RoadmapWizardTypes::PathId _nPathId, bool _bDecideForIt=false)
 
virtual WizardTypes::WizardState determineNextState (WizardTypes::WizardState nCurrentState) const override
 
void enableState (WizardTypes::WizardState nState, bool _bEnable=true)
 
bool knowsState (WizardTypes::WizardState nState) const
 
virtual void enterState (WizardTypes::WizardState nState) override
 
virtual OUString getStateDisplayName (WizardTypes::WizardState nState) const
 
- Protected Member Functions inherited from vcl::WizardMachine
virtual void ActivatePage ()
 
virtual bool DeactivatePage ()
 
virtual std::unique_ptr< BuilderPagecreatePage (WizardTypes::WizardState _nState)=0
 
virtual void enterState (WizardTypes::WizardState _nState)
 
virtual bool prepareLeaveCurrentState (WizardTypes::CommitPageReason eReason)
 
virtual bool leaveState (WizardTypes::WizardState nState)
 
virtual WizardTypes::WizardState determineNextState (WizardTypes::WizardState nCurrentState) const
 
virtual bool onFinish ()
 
bool travelNext ()
 
bool travelPrevious ()
 
void enableAutomaticNextButtonState ()
 
bool isAutomaticNextButtonStateEnabled () const
 
void removePageFromHistory (WizardTypes::WizardState nToRemove)
 
void skip ()
 
bool skipUntil (WizardTypes::WizardState nTargetState)
 
bool skipBackwardUntil (WizardTypes::WizardState nTargetState)
 
WizardTypes::WizardState getCurrentState () const
 
virtual IWizardPageController * getPageController (BuilderPage *pCurrentPage) const
 
void getStateHistory (std::vector< WizardTypes::WizardState > &out_rHistory)
 
virtual OUString getPageIdentForState (WizardTypes::WizardState nState) const
 
virtual WizardTypes::WizardState getStateFromPageIdent (const OUString &rIdent) const
 
BuilderPageGetOrCreatePage (const WizardTypes::WizardState i_nState)
 
- Protected Attributes inherited from vcl::WizardMachine
BuilderPagem_pCurTabPage
 
std::unique_ptr< weld::Buttonm_xFinish
 
std::unique_ptr< weld::Buttonm_xCancel
 
std::unique_ptr< weld::Buttonm_xNextPage
 
std::unique_ptr< weld::Buttonm_xPrevPage
 
std::unique_ptr< weld::Buttonm_xHelp
 
- Protected Attributes inherited from weld::AssistantController
std::unique_ptr< weld::Builderm_xBuilder
 
std::unique_ptr< weld::Assistantm_xAssistant
 

Detailed Description

Definition at line 210 of file WCopyTable.hxx.

Member Typedef Documentation

◆ TNameMapping

Definition at line 219 of file WCopyTable.hxx.

Member Enumeration Documentation

◆ Wizard_Button_Style

Enumerator
WIZARD_NEXT 
WIZARD_PREV 
WIZARD_FINISH 
WIZARD_NONE 

Definition at line 221 of file WCopyTable.hxx.

Constructor & Destructor Documentation

◆ OCopyTableWizard() [1/2]

dbaui::OCopyTableWizard::OCopyTableWizard ( weld::Window pParent,
const OUString &  _rDefaultName,
sal_Int16  _nOperation,
const ICopyTableSourceObject _rSourceObject,
const css::uno::Reference< css::sdbc::XConnection > &  _xSourceConnection,
const css::uno::Reference< css::sdbc::XConnection > &  _xConnection,
const css::uno::Reference< css::uno::XComponentContext > &  _rxContext,
const css::uno::Reference< css::task::XInteractionHandler > &  _xInteractionHandler 
)

◆ OCopyTableWizard() [2/2]

dbaui::OCopyTableWizard::OCopyTableWizard ( weld::Window pParent,
OUString  _sDefaultName,
sal_Int16  _nOperation,
ODatabaseExport::TColumns &&  _rDestColumns,
const ODatabaseExport::TColumnVector _rSourceColVec,
const css::uno::Reference< css::sdbc::XConnection > &  _xConnection,
const css::uno::Reference< css::util::XNumberFormatter > &  _xFormatter,
TypeSelectionPageFactory  _pTypeSelectionPageFactory,
SvStream _rTypeSelectionPageArg,
const css::uno::Reference< css::uno::XComponentContext > &  _rxContext 
)

◆ ~OCopyTableWizard()

OCopyTableWizard::~OCopyTableWizard ( )
overridevirtual

Member Function Documentation

◆ ActivatePage()

void OCopyTableWizard::ActivatePage ( )
overrideprivatevirtual

◆ AddWizardPage()

void OCopyTableWizard::AddWizardPage ( std::unique_ptr< OWizardPage xPage)

Definition at line 950 of file WCopyTable.cxx.

References vcl::WizardMachine::AddPage(), and m_nPageCount.

◆ appendColumns()

void OCopyTableWizard::appendColumns ( css::uno::Reference< css::sdbcx::XColumnsSupplier > const &  _rxColSup,
const ODatabaseExport::TColumnVector _pVec,
bool  _bKeyColumns = false 
)
staticprivate

◆ appendKey()

void OCopyTableWizard::appendKey ( css::uno::Reference< css::sdbcx::XKeysSupplier > const &  _rxSup,
const ODatabaseExport::TColumnVector _pVec 
)
staticprivate

Definition at line 1099 of file WCopyTable.cxx.

References Any, appendColumns(), and PROPERTY_TYPE().

Referenced by createTable().

◆ CheckButtons()

void OCopyTableWizard::CheckButtons ( )

◆ CheckColumns()

bool OCopyTableWizard::CheckColumns ( sal_Int32 &  _rnBreakPos)
private

◆ clearDestColumns()

void OCopyTableWizard::clearDestColumns ( )

clears the dest vectors

Definition at line 1044 of file WCopyTable.cxx.

References m_aDestVec, m_bAddPKFirstTime, m_mNameMapping, and m_vDestColumns.

◆ construct()

void OCopyTableWizard::construct ( )
private

◆ convertColumnName()

OUString OCopyTableWizard::convertColumnName ( const TColumnFindFunctor _rCmpFunctor,
const OUString &  _sColumnName,
std::u16string_view  _sExtraChars,
sal_Int32  _nMaxNameLen 
)

Definition at line 1360 of file WCopyTable.cxx.

References dbaui::isSQL92CheckEnabled(), m_mNameMapping, m_xDestConnection, nPos, and sName.

Referenced by CheckColumns().

◆ convertType()

TOTypeInfoSP OCopyTableWizard::convertType ( const TOTypeInfoSP _pType,
bool &  _bNotConvert 
)

◆ createPage()

virtual std::unique_ptr< BuilderPage > dbaui::OCopyTableWizard::createPage ( vcl::WizardTypes::WizardState  )
inlineoverrideprivatevirtual

Implements vcl::WizardMachine.

Definition at line 284 of file WCopyTable.hxx.

◆ CreatePageContainer()

weld::Container * OCopyTableWizard::CreatePageContainer ( )
private

Definition at line 579 of file WCopyTable.cxx.

References m_nPageCount, and weld::AssistantController::m_xAssistant.

◆ createTable()

Reference< XPropertySet > OCopyTableWizard::createTable ( )

◆ createUniqueName()

OUString OCopyTableWizard::createUniqueName ( const OUString &  _sName)

◆ createView()

Reference< XPropertySet > OCopyTableWizard::createView ( ) const

◆ DeactivatePage()

bool OCopyTableWizard::DeactivatePage ( )
overridevirtual

Reimplemented from vcl::WizardMachine.

Definition at line 944 of file WCopyTable.cxx.

References GetCurLevel(), and vcl::WizardMachine::GetPage().

◆ DECL_LINK() [1/3]

dbaui::OCopyTableWizard::DECL_LINK ( ImplNextHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/3]

dbaui::OCopyTableWizard::DECL_LINK ( ImplOKHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [3/3]

dbaui::OCopyTableWizard::DECL_LINK ( ImplPrevHdl  ,
weld::Button ,
void   
)
private

◆ EnableNextButton()

void OCopyTableWizard::EnableNextButton ( bool  bEnable)

Definition at line 939 of file WCopyTable.cxx.

References vcl::WizardMachine::m_xNextPage.

◆ GetColumnPositions()

const ODatabaseExport::TPositions & dbaui::OCopyTableWizard::GetColumnPositions ( ) const
inline

Definition at line 334 of file WCopyTable.hxx.

References m_vColumnPositions.

Referenced by dbaui::ODatabaseExport::executeWizard().

◆ GetColumnTypes()

const std::vector< sal_Int32 > & dbaui::OCopyTableWizard::GetColumnTypes ( ) const
inline

Definition at line 335 of file WCopyTable.hxx.

References m_vColumnTypes.

Referenced by dbaui::ODatabaseExport::executeWizard().

◆ GetComponentContext()

const css::uno::Reference< css::uno::XComponentContext > & dbaui::OCopyTableWizard::GetComponentContext ( ) const
inline

Definition at line 375 of file WCopyTable.hxx.

References m_xContext.

Referenced by createTable().

◆ GetCurLevel()

sal_uInt16 dbaui::OCopyTableWizard::GetCurLevel ( ) const
inlineprivate

Definition at line 292 of file WCopyTable.hxx.

References vcl::WizardMachine::getCurrentState().

Referenced by ActivatePage(), CheckButtons(), and DeactivatePage().

◆ getDestColumns()

ODatabaseExport::TColumns & dbaui::OCopyTableWizard::getDestColumns ( )
inline

Definition at line 379 of file WCopyTable.hxx.

References m_vDestColumns.

◆ getDestTypeInfo() [1/2]

const OTypeInfoMap & dbaui::OCopyTableWizard::getDestTypeInfo ( ) const
inline

Definition at line 371 of file WCopyTable.hxx.

References m_aDestTypeInfo.

◆ getDestTypeInfo() [2/2]

TOTypeInfoSP const & dbaui::OCopyTableWizard::getDestTypeInfo ( sal_Int32  _nPos) const
inline

Definition at line 370 of file WCopyTable.hxx.

References _nPos, and m_aDestTypeInfoIndex.

◆ getDestVector()

const ODatabaseExport::TColumnVector & dbaui::OCopyTableWizard::getDestVector ( ) const
inline

Definition at line 380 of file WCopyTable.hxx.

References m_aDestVec.

Referenced by createTable().

◆ GetFormatter()

const css::uno::Reference< css::util::XNumberFormatter > & dbaui::OCopyTableWizard::GetFormatter ( ) const
inline

Definition at line 374 of file WCopyTable.hxx.

References m_xFormatter.

◆ GetLocale()

const css::lang::Locale & dbaui::OCopyTableWizard::GetLocale ( ) const
inline

Definition at line 373 of file WCopyTable.hxx.

References m_aLocale.

◆ getMaxColumnNameLength()

sal_Int32 OCopyTableWizard::getMaxColumnNameLength ( ) const

Definition at line 1336 of file WCopyTable.cxx.

References DBG_UNHANDLED_EXCEPTION, Exception, and m_xDestConnection.

Referenced by CheckColumns().

◆ getName()

const OUString & dbaui::OCopyTableWizard::getName ( ) const
inline

Definition at line 381 of file WCopyTable.hxx.

References m_sName.

◆ GetOKButton()

weld::Button & dbaui::OCopyTableWizard::GetOKButton ( )
inline

Definition at line 326 of file WCopyTable.hxx.

References vcl::WizardMachine::m_xFinish.

◆ getOperation()

sal_Int16 dbaui::OCopyTableWizard::getOperation ( ) const
inline

Definition at line 394 of file WCopyTable.hxx.

References m_nOperation.

Referenced by dbaui::ODatabaseExport::executeWizard(), and returnTable().

◆ GetPressedButton()

Wizard_Button_Style dbaui::OCopyTableWizard::GetPressedButton ( ) const
inline

Definition at line 327 of file WCopyTable.hxx.

References m_ePressed.

◆ getPrimaryKeyName()

const OUString & dbaui::OCopyTableWizard::getPrimaryKeyName ( ) const
inline

returns the name of the primary key

Returns
The name of the primary key.

Definition at line 366 of file WCopyTable.hxx.

References m_aKeyName.

Referenced by dbaui::OWizTypeSelectControl::CellModified().

◆ getSourceColumns()

const ODatabaseExport::TColumns & dbaui::OCopyTableWizard::getSourceColumns ( ) const
inline

Definition at line 377 of file WCopyTable.hxx.

References m_vSourceColumns.

◆ getSrcVector()

const ODatabaseExport::TColumnVector & dbaui::OCopyTableWizard::getSrcVector ( ) const
inline

Definition at line 378 of file WCopyTable.hxx.

References m_vSourceVec.

◆ getTable()

Reference< XPropertySet > OCopyTableWizard::getTable ( ) const

Definition at line 1143 of file WCopyTable.cxx.

References m_sName, and m_xDestConnection.

Referenced by returnTable().

◆ getTypeInfo()

const OTypeInfoMap & dbaui::OCopyTableWizard::getTypeInfo ( ) const
inline

Definition at line 368 of file WCopyTable.hxx.

References m_aTypeInfo.

◆ insertColumn()

void OCopyTableWizard::insertColumn ( sal_Int32  _nPos,
OFieldDescription _pField 
)

◆ loadData()

void OCopyTableWizard::loadData ( const ICopyTableSourceObject _rSourceObject,
ODatabaseExport::TColumns _rColumns,
ODatabaseExport::TColumnVector _rColVector 
)
private

◆ removeColumnNameFromNameMap()

void OCopyTableWizard::removeColumnNameFromNameMap ( const OUString &  _sName)

Definition at line 1395 of file WCopyTable.cxx.

References m_mNameMapping.

◆ replaceColumn()

void OCopyTableWizard::replaceColumn ( sal_Int32  _nPos,
OFieldDescription _pField,
const OUString &  _sOldName 
)

replaces a field description with another one.

The name must not be known so far.

Parameters
_nPosThe pos inside the vector, 0 based.
_pFieldThe field to set.
_sOldNameThe name of column to be replaced.

Definition at line 974 of file WCopyTable.cxx.

References _nPos, dbaui::OFieldDescription::GetName(), m_aDestVec, and m_vDestColumns.

Referenced by dbaui::OWizTypeSelectControl::CellModified().

◆ returnTable()

Reference< XPropertySet > OCopyTableWizard::returnTable ( )

Definition at line 1135 of file WCopyTable.cxx.

References createTable(), getOperation(), and getTable().

Referenced by dbaui::ODatabaseExport::executeWizard().

◆ setCreatePrimaryKey()

void OCopyTableWizard::setCreatePrimaryKey ( bool  _bDoCreate,
const OUString &  _rSuggestedName 
)

◆ setOperation()

void OCopyTableWizard::setOperation ( const sal_Int16  _nOperation)

Definition at line 1354 of file WCopyTable.cxx.

References m_nOperation.

◆ setUseHeaderLine()

void dbaui::OCopyTableWizard::setUseHeaderLine ( bool  _bUseHeaderLine)
inline

Definition at line 337 of file WCopyTable.hxx.

References m_bUseHeaderLine.

◆ shouldCreatePrimaryKey()

bool dbaui::OCopyTableWizard::shouldCreatePrimaryKey ( ) const
inline

returns whether a primary key should be created in the target database

Definition at line 353 of file WCopyTable.hxx.

References m_bCreatePrimaryKeyColumn.

Referenced by dbaui::OWizTypeSelectControl::CellModified(), CheckColumns(), and dbaui::ODatabaseExport::executeWizard().

◆ showColumnTypeNotSupported()

void OCopyTableWizard::showColumnTypeNotSupported ( std::u16string_view  _rColumnName)

Definition at line 1525 of file WCopyTable.cxx.

References DBA_RES, showError(), and sMessage.

◆ showError() [1/2]

void dbaui::OCopyTableWizard::showError ( const css::uno::Any &  _aError)

◆ showError() [2/2]

void OCopyTableWizard::showError ( const OUString &  _sErrorMessage)

◆ supportsPrimaryKey() [1/2]

bool dbaui::OCopyTableWizard::supportsPrimaryKey ( ) const
inline

Definition at line 357 of file WCopyTable.hxx.

References m_xDestConnection, and supportsPrimaryKey().

Referenced by CheckColumns(), and supportsPrimaryKey().

◆ supportsPrimaryKey() [2/2]

static bool dbaui::OCopyTableWizard::supportsPrimaryKey ( const css::uno::Reference< css::sdbc::XConnection > &  _rxConnection)
static

◆ supportsType()

bool OCopyTableWizard::supportsType ( sal_Int32  _nDataType,
sal_Int32 &  _rNewDataType 
)
private

Definition at line 1400 of file WCopyTable.cxx.

References m_aDestTypeInfo.

Referenced by convertType().

◆ supportsViews() [1/2]

bool dbaui::OCopyTableWizard::supportsViews ( ) const
inline

Definition at line 360 of file WCopyTable.hxx.

References m_xDestConnection, and supportsViews().

Referenced by supportsViews().

◆ supportsViews() [2/2]

static bool dbaui::OCopyTableWizard::supportsViews ( const css::uno::Reference< css::sdbc::XConnection > &  _rxConnection)
static

◆ UseHeaderLine()

bool dbaui::OCopyTableWizard::UseHeaderLine ( ) const
inline

Definition at line 336 of file WCopyTable.hxx.

References m_bUseHeaderLine.

Referenced by dbaui::ODatabaseExport::executeWizard().

Friends And Related Function Documentation

◆ OCopyTable

friend class OCopyTable
friend

Definition at line 215 of file WCopyTable.hxx.

◆ OWizColumnSelect

friend class OWizColumnSelect
friend

Definition at line 212 of file WCopyTable.hxx.

◆ OWizNameMatching

friend class OWizNameMatching
friend

Definition at line 216 of file WCopyTable.hxx.

◆ OWizTypeSelect

friend class OWizTypeSelect
friend

Definition at line 213 of file WCopyTable.hxx.

◆ OWizTypeSelectControl

friend class OWizTypeSelectControl
friend

Definition at line 214 of file WCopyTable.hxx.

Member Data Documentation

◆ m_aDestTypeInfo

OTypeInfoMap dbaui::OCopyTableWizard::m_aDestTypeInfo
private

◆ m_aDestTypeInfoIndex

std::vector<OTypeInfoMap::iterator> dbaui::OCopyTableWizard::m_aDestTypeInfoIndex
private

Definition at line 239 of file WCopyTable.hxx.

Referenced by getDestTypeInfo(), and ~OCopyTableWizard().

◆ m_aDestVec

ODatabaseExport::TColumnVector dbaui::OCopyTableWizard::m_aDestVec
private

◆ m_aKeyName

OUString dbaui::OCopyTableWizard::m_aKeyName
private

Definition at line 261 of file WCopyTable.hxx.

Referenced by CheckColumns(), getPrimaryKeyName(), and setCreatePrimaryKey().

◆ m_aLocale

css::lang::Locale dbaui::OCopyTableWizard::m_aLocale
private

Definition at line 258 of file WCopyTable.hxx.

Referenced by GetLocale().

◆ m_aTypeInfo

OTypeInfoMap dbaui::OCopyTableWizard::m_aTypeInfo
private

Definition at line 236 of file WCopyTable.hxx.

Referenced by getTypeInfo(), loadData(), and ~OCopyTableWizard().

◆ m_aTypeInfoIndex

std::vector<OTypeInfoMap::iterator> dbaui::OCopyTableWizard::m_aTypeInfoIndex
private

Definition at line 237 of file WCopyTable.hxx.

Referenced by ~OCopyTableWizard().

◆ m_bAddPKFirstTime

bool dbaui::OCopyTableWizard::m_bAddPKFirstTime
private

Definition at line 263 of file WCopyTable.hxx.

Referenced by CheckColumns(), clearDestColumns(), and construct().

◆ m_bCreatePrimaryKeyColumn

bool dbaui::OCopyTableWizard::m_bCreatePrimaryKeyColumn
private

Definition at line 266 of file WCopyTable.hxx.

Referenced by setCreatePrimaryKey(), and shouldCreatePrimaryKey().

◆ m_bDeleteSourceColumns

bool dbaui::OCopyTableWizard::m_bDeleteSourceColumns
private

Definition at line 255 of file WCopyTable.hxx.

Referenced by ~OCopyTableWizard().

◆ m_bInterConnectionCopy

bool dbaui::OCopyTableWizard::m_bInterConnectionCopy
private

Definition at line 256 of file WCopyTable.hxx.

Referenced by convertType().

◆ m_bUseHeaderLine

bool dbaui::OCopyTableWizard::m_bUseHeaderLine
private

Definition at line 267 of file WCopyTable.hxx.

Referenced by setUseHeaderLine(), and UseHeaderLine().

◆ m_ePressed

Wizard_Button_Style dbaui::OCopyTableWizard::m_ePressed
private

Definition at line 265 of file WCopyTable.hxx.

Referenced by GetPressedButton().

◆ m_mNameMapping

TNameMapping dbaui::OCopyTableWizard::m_mNameMapping
private

◆ m_nOperation

sal_Int16 dbaui::OCopyTableWizard::m_nOperation
private

Definition at line 264 of file WCopyTable.hxx.

Referenced by getOperation(), and setOperation().

◆ m_nPageCount

sal_uInt32 dbaui::OCopyTableWizard::m_nPageCount
private

Definition at line 254 of file WCopyTable.hxx.

Referenced by AddWizardPage(), CheckButtons(), and CreatePageContainer().

◆ m_pTypeInfo

TOTypeInfoSP dbaui::OCopyTableWizard::m_pTypeInfo
private

Definition at line 262 of file WCopyTable.hxx.

Referenced by construct(), convertType(), and loadData().

◆ m_rSourceObject

const ICopyTableSourceObject& dbaui::OCopyTableWizard::m_rSourceObject
private

Definition at line 247 of file WCopyTable.hxx.

Referenced by createTable(), createUniqueName(), and createView().

◆ m_sName

OUString dbaui::OCopyTableWizard::m_sName
private

Definition at line 259 of file WCopyTable.hxx.

Referenced by createTable(), createView(), getName(), and getTable().

◆ m_sSourceName

OUString dbaui::OCopyTableWizard::m_sSourceName
private

Definition at line 260 of file WCopyTable.hxx.

◆ m_sTypeNames

OUString dbaui::OCopyTableWizard::m_sTypeNames
private

Definition at line 253 of file WCopyTable.hxx.

Referenced by construct().

◆ m_vColumnPositions

ODatabaseExport::TPositions dbaui::OCopyTableWizard::m_vColumnPositions
private

Definition at line 242 of file WCopyTable.hxx.

Referenced by CheckColumns(), createTable(), and GetColumnPositions().

◆ m_vColumnTypes

std::vector<sal_Int32> dbaui::OCopyTableWizard::m_vColumnTypes
private

Definition at line 243 of file WCopyTable.hxx.

Referenced by CheckColumns(), createTable(), and GetColumnTypes().

◆ m_vDestColumns

ODatabaseExport::TColumns dbaui::OCopyTableWizard::m_vDestColumns
private

◆ m_vSourceColumns

ODatabaseExport::TColumns dbaui::OCopyTableWizard::m_vSourceColumns
private

Definition at line 233 of file WCopyTable.hxx.

Referenced by createUniqueName(), getSourceColumns(), and ~OCopyTableWizard().

◆ m_vSourceVec

ODatabaseExport::TColumnVector dbaui::OCopyTableWizard::m_vSourceVec
private

Definition at line 234 of file WCopyTable.hxx.

Referenced by CheckColumns(), getSrcVector(), and ~OCopyTableWizard().

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext> dbaui::OCopyTableWizard::m_xContext
private

Definition at line 250 of file WCopyTable.hxx.

Referenced by GetComponentContext().

◆ m_xDestConnection

css::uno::Reference< css::sdbc::XConnection > dbaui::OCopyTableWizard::m_xDestConnection
private

◆ m_xFormatter

css::uno::Reference< css::util::XNumberFormatter > dbaui::OCopyTableWizard::m_xFormatter
private

Definition at line 249 of file WCopyTable.hxx.

Referenced by GetFormatter().

◆ m_xInteractionHandler

css::uno::Reference< css::task::XInteractionHandler> dbaui::OCopyTableWizard::m_xInteractionHandler
private

Definition at line 251 of file WCopyTable.hxx.


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