summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/dlg/tablespage.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/ui/dlg/tablespage.cxx')
-rw-r--r--dbaccess/source/ui/dlg/tablespage.cxx48
1 files changed, 24 insertions, 24 deletions
diff --git a/dbaccess/source/ui/dlg/tablespage.cxx b/dbaccess/source/ui/dlg/tablespage.cxx
index 441aa6c6f846..99857a2c8249 100644
--- a/dbaccess/source/ui/dlg/tablespage.cxx
+++ b/dbaccess/source/ui/dlg/tablespage.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -86,11 +86,11 @@ DBG_NAME(OTableSubscriptionPage)
//------------------------------------------------------------------------
OTableSubscriptionPage::OTableSubscriptionPage( Window* pParent, const SfxItemSet& _rCoreAttrs,OTableSubscriptionDialog* _pTablesDlg )
:OGenericAdministrationPage( pParent, ModuleRes(PAGE_TABLESUBSCRIPTION), _rCoreAttrs )
- ,m_aTables (this, ModuleRes(FL_SEPARATOR1))
- ,m_aTablesList (this, NULL,ModuleRes(CTL_TABLESUBSCRIPTION),sal_True)
- ,m_aExplanation (this, ModuleRes(FT_FILTER_EXPLANATION))
- ,m_bCheckedAll ( sal_False )
- ,m_bCatalogAtStart ( sal_True )
+ ,m_aTables (this, ModuleRes(FL_SEPARATOR1))
+ ,m_aTablesList (this, NULL,ModuleRes(CTL_TABLESUBSCRIPTION),sal_True)
+ ,m_aExplanation (this, ModuleRes(FT_FILTER_EXPLANATION))
+ ,m_bCheckedAll ( sal_False )
+ ,m_bCatalogAtStart ( sal_True )
,m_pTablesDlg(_pTablesDlg)
{
DBG_CTOR(OTableSubscriptionPage,NULL);
@@ -140,9 +140,9 @@ DBG_NAME(OTableSubscriptionPage)
{
OGenericAdministrationPage::DataChanged( rDCEvt );
- if ((( rDCEvt.GetType() == DATACHANGED_SETTINGS ) ||
- ( rDCEvt.GetType() == DATACHANGED_DISPLAY )) &&
- ( rDCEvt.GetFlags() & SETTINGS_STYLE ))
+ if ((( rDCEvt.GetType() == DATACHANGED_SETTINGS ) ||
+ ( rDCEvt.GetType() == DATACHANGED_DISPLAY )) &&
+ ( rDCEvt.GetFlags() & SETTINGS_STYLE ))
{
// Check if we need to get new images for normal/high contrast mode
m_aTablesList.notifyHiContrastChanged();
@@ -233,13 +233,13 @@ DBG_NAME(OTableSubscriptionPage)
void OTableSubscriptionPage::implCompleteTablesCheck( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& _rTableFilter )
{
if (!_rTableFilter.getLength())
- { // no tables visible
+ { // no tables visible
CheckAll(sal_False);
}
else
{
if ((1 == _rTableFilter.getLength()) && _rTableFilter[0].equalsAsciiL("%", 1))
- { // all tables visible
+ { // all tables visible
CheckAll(sal_True);
}
else
@@ -260,7 +260,7 @@ DBG_NAME(OTableSubscriptionPage)
String sDSName = pNameItem->GetValue();
if (bValid && sDSName.Len() && !m_xCurrentConnection.is() )
- { // get the current table list from the connection for the current settings
+ { // get the current table list from the connection for the current settings
// the PropertyValues for the current dialog settings
Sequence< PropertyValue > aConnectionParams;
@@ -313,7 +313,7 @@ DBG_NAME(OTableSubscriptionPage)
Any aTableTypeFilter = xProp->getPropertyValue(PROPERTY_TABLETYPEFILTER);
Reference<XModifiable> xModi(getDataSourceOrModel(xProp),UNO_QUERY);
- sal_Bool bModified = ( xModi.is() && xModi->isModified() );
+ sal_Bool bModified = ( xModi.is() && xModi->isModified() );
Sequence< ::rtl::OUString > aNewTableFilter(1);
aNewTableFilter[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("%"));
@@ -330,7 +330,7 @@ DBG_NAME(OTableSubscriptionPage)
xModi->setModified(sal_False);
}
-
+
if ( m_xCurrentConnection.is() )
{
m_aTablesList.UpdateTableList( m_xCurrentConnection );
@@ -362,8 +362,8 @@ DBG_NAME(OTableSubscriptionPage)
else
{
// in addition, we need some infos about the connection used
- m_sCatalogSeparator = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(".")); // (default)
- m_bCatalogAtStart = sal_True; // (default)
+ m_sCatalogSeparator = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(".")); // (default)
+ m_bCatalogAtStart = sal_True; // (default)
try
{
Reference< XDatabaseMetaData > xMeta;
@@ -459,7 +459,7 @@ DBG_NAME(OTableSubscriptionPage)
String sLeftText = pLeftTextItem->GetText();
String sRightText = pRightTextItem->GetText();
- sal_Int32 nCompareResult = 0; // equal by default
+ sal_Int32 nCompareResult = 0; // equal by default
if (m_xCollator.is())
{
@@ -492,13 +492,13 @@ DBG_NAME(OTableSubscriptionPage)
SvLBoxEntry* pEntry = m_aTablesList.GetModel()->Next(const_cast<SvLBoxEntry*>(pAllObjectsEntry));
while(pEntry)
{
- sal_Bool bCatalogWildcard = sal_False;
- sal_Bool bSchemaWildcard = sal_False;
+ sal_Bool bCatalogWildcard = sal_False;
+ sal_Bool bSchemaWildcard = sal_False;
SvLBoxEntry* pSchema = NULL;
SvLBoxEntry* pCatalog = NULL;
if (m_aTablesList.GetCheckButtonState(pEntry) == SV_BUTTON_CHECKED && !m_aTablesList.GetModel()->HasChilds(pEntry))
- { // checked and a leaf, which means it's no catalog, no schema, but a real table
+ { // checked and a leaf, which means it's no catalog, no schema, but a real table
::rtl::OUString sCatalog;
if(m_aTablesList.GetModel()->HasParent(pEntry))
{
@@ -508,7 +508,7 @@ DBG_NAME(OTableSubscriptionPage)
pSchema = NULL;
if (pSchema)
- { // it's a real schema entry, not the "all objects" root
+ { // it's a real schema entry, not the "all objects" root
if(m_aTablesList.GetModel()->HasParent(pSchema))
{
pCatalog = m_aTablesList.GetModel()->GetParent(pSchema);
@@ -517,7 +517,7 @@ DBG_NAME(OTableSubscriptionPage)
pCatalog = NULL;
if (pCatalog)
- { // it's a real catalog entry, not the "all objects" root
+ { // it's a real catalog entry, not the "all objects" root
bCatalogWildcard = m_aTablesList.isWildcardChecked(pCatalog);
if (m_bCatalogAtStart)
{
@@ -598,7 +598,7 @@ DBG_NAME(OTableSubscriptionPage)
/////////////////////////////////////////////////////////////////////////
// create the output string which contains all the table names
if ( m_xCurrentConnection.is() )
- { // collect the table filter data only if we have a connection - else no tables are displayed at all
+ { // collect the table filter data only if we have a connection - else no tables are displayed at all
Sequence< ::rtl::OUString > aTableFilter;
if (m_aTablesList.isWildcardChecked(m_aTablesList.getAllObjectsEntry()))
{
@@ -628,7 +628,7 @@ DBG_NAME(OTableSubscriptionPage)
}
// -----------------------------------------------------------------------
//.........................................................................
-} // namespace dbaui
+} // namespace dbaui
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */