diff options
Diffstat (limited to 'sw/source/ui/dbui/dbtree.cxx')
-rw-r--r-- | sw/source/ui/dbui/dbtree.cxx | 59 |
1 files changed, 1 insertions, 58 deletions
diff --git a/sw/source/ui/dbui/dbtree.cxx b/sw/source/ui/dbui/dbtree.cxx index 2e4e2cb50370..e145b63c0c40 100644 --- a/sw/source/ui/dbui/dbtree.cxx +++ b/sw/source/ui/dbui/dbtree.cxx @@ -71,9 +71,6 @@ using namespace ::com::sun::star::sdbcx; using namespace ::com::sun::star::task; using namespace ::com::sun::star::beans; -/* -----------------------------17.07.01 13:10-------------------------------- - - ---------------------------------------------------------------------------*/ struct SwConnectionData { ::rtl::OUString sSourceName; @@ -83,9 +80,7 @@ struct SwConnectionData typedef SwConnectionData* SwConnectionDataPtr; SV_DECL_PTRARR_DEL( SwConnectionArr, SwConnectionDataPtr, 32, 32 ) SV_IMPL_PTRARR( SwConnectionArr, SwConnectionDataPtr ) -/* -----------------------------17.07.01 13:24-------------------------------- - ---------------------------------------------------------------------------*/ class SwDBTreeList_Impl : public cppu::WeakImplHelper1 < XContainerListener > { Reference< XNameAccess > xDBContext; @@ -108,9 +103,7 @@ class SwDBTreeList_Impl : public cppu::WeakImplHelper1 < XContainerListener > Reference< XNameAccess > GetContext() {return xDBContext;} Reference<XConnection> GetConnection(const rtl::OUString& rSourceName); }; -/* -----------------------------17.07.01 13:24-------------------------------- - ---------------------------------------------------------------------------*/ SwDBTreeList_Impl::~SwDBTreeList_Impl() { Reference<XContainer> xContainer(xDBContext, UNO_QUERY); @@ -125,16 +118,12 @@ SwDBTreeList_Impl::~SwDBTreeList_Impl() m_refCount--; } } -/* -----------------------------17.07.01 13:24-------------------------------- - ---------------------------------------------------------------------------*/ void SwDBTreeList_Impl::elementInserted( const ContainerEvent& ) throw (RuntimeException) { // information not needed } -/* -----------------------------17.07.01 13:24-------------------------------- - ---------------------------------------------------------------------------*/ void SwDBTreeList_Impl::elementRemoved( const ContainerEvent& rEvent ) throw (RuntimeException) { vos::OGuard aGuard(Application::GetSolarMutex()); @@ -154,23 +143,17 @@ void SwDBTreeList_Impl::elementRemoved( const ContainerEvent& rEvent ) throw (Ru } } } -/* -----------------------------17.07.01 13:24-------------------------------- - ---------------------------------------------------------------------------*/ void SwDBTreeList_Impl::disposing( const EventObject& ) throw (RuntimeException) { xDBContext = 0; } -/* -----------------------------17.07.01 13:24-------------------------------- - ---------------------------------------------------------------------------*/ void SwDBTreeList_Impl::elementReplaced( const ContainerEvent& rEvent ) throw (RuntimeException) { elementRemoved(rEvent); } -/* -----------------------------17.07.01 13:24-------------------------------- - ---------------------------------------------------------------------------*/ BOOL SwDBTreeList_Impl::HasContext() { if(!xDBContext.is()) @@ -189,9 +172,7 @@ BOOL SwDBTreeList_Impl::HasContext() } return xDBContext.is(); } -/* -----------------------------17.07.01 13:24-------------------------------- - ---------------------------------------------------------------------------*/ Reference<XConnection> SwDBTreeList_Impl::GetConnection(const rtl::OUString& rSourceName) { Reference<XConnection> xRet; @@ -213,9 +194,7 @@ Reference<XConnection> SwDBTreeList_Impl::GetConnection(const rtl::OUString& rS } return xRet; } -/*------------------------------------------------------------------------ - Beschreibung: -------------------------------------------------------------------------*/ + SwDBTreeList::SwDBTreeList(Window *pParent, const ResId& rResId, SwWrtShell* pSh, const String& rDefDBName, const BOOL bShowCol): @@ -234,19 +213,11 @@ SwDBTreeList::SwDBTreeList(Window *pParent, const ResId& rResId, InitTreeList(); } -/*------------------------------------------------------------------------ - Beschreibung: -------------------------------------------------------------------------*/ SwDBTreeList::~SwDBTreeList() { delete pImpl; } -/*------------------------------------------------------------------------ - Beschreibung: -------------------------------------------------------------------------*/ - - void SwDBTreeList::InitTreeList() { if(!pImpl->HasContext() && pImpl->GetWrtShell()) @@ -285,9 +256,7 @@ void SwDBTreeList::InitTreeList() bInitialized = TRUE; } -/*-- 27.05.2004 09:19:09--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwDBTreeList::AddDataSource(const String& rSource) { Image aImg = aImageList.GetImage(IMG_DB); @@ -297,9 +266,6 @@ void SwDBTreeList::AddDataSource(const String& rSource) SetCollapsedEntryBmp(pEntry, aHCImg, BMP_COLOR_HIGHCONTRAST); SvTreeListBox::Select(pEntry); } -/*------------------------------------------------------------------------ - Beschreibung: -------------------------------------------------------------------------*/ void SwDBTreeList::ShowColumns(BOOL bShowCol) { @@ -333,10 +299,6 @@ void SwDBTreeList::ShowColumns(BOOL bShowCol) } } -/*------------------------------------------------------------------------ - Beschreibung: -------------------------------------------------------------------------*/ - void SwDBTreeList::RequestingChilds(SvLBoxEntry* pParent) { if (!pParent->HasChilds()) @@ -470,10 +432,6 @@ void SwDBTreeList::RequestingChilds(SvLBoxEntry* pParent) } } -/*------------------------------------------------------------------------ - Beschreibung: -------------------------------------------------------------------------*/ - IMPL_LINK( SwDBTreeList, DBCompare, SvSortData*, pData ) { SvLBoxEntry* pRight = (SvLBoxEntry*)(pData->pRight ); @@ -484,10 +442,6 @@ IMPL_LINK( SwDBTreeList, DBCompare, SvSortData*, pData ) return DefaultCompare(pData); // Sonst Basisklasse rufen } -/*------------------------------------------------------------------------ - Beschreibung: -------------------------------------------------------------------------*/ - String SwDBTreeList::GetDBName(String& rTableName, String& rColumnName, BOOL* pbIsTable) { String sDBName; @@ -513,8 +467,6 @@ String SwDBTreeList::GetDBName(String& rTableName, String& rColumnName, BOOL* p /*------------------------------------------------------------------------ Beschreibung: Format: Datenbank.Tabelle ------------------------------------------------------------------------*/ - - void SwDBTreeList::Select(const String& rDBName, const String& rTableName, const String& rColumnName) { SvLBoxEntry* pParent; @@ -557,10 +509,6 @@ void SwDBTreeList::Select(const String& rDBName, const String& rTableName, const } } -/*------------------------------------------------------------------------ - Beschreibung: -------------------------------------------------------------------------*/ - void SwDBTreeList::StartDrag( sal_Int8 /*nAction*/, const Point& /*rPosPixel*/ ) { String sTableName, sColumnName; @@ -596,16 +544,11 @@ void SwDBTreeList::StartDrag( sal_Int8 /*nAction*/, const Point& /*rPosPixel*/ ) } } -/*------------------------------------------------------------------------ - Beschreibung: -------------------------------------------------------------------------*/ sal_Int8 SwDBTreeList::AcceptDrop( const AcceptDropEvent& /*rEvt*/ ) { return DND_ACTION_NONE; } -/*-- 07.10.2003 13:28:22--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwDBTreeList::SetWrtShell(SwWrtShell& rSh) { pImpl->SetWrtShell(rSh); |