/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
void BibView::dispose()
{
VclPtr<BibGeneralPage> pGeneralPage = m_pGeneralPage;
m_pGeneralPage.reset();
pGeneralPage.disposeAndClear(); // dispose will commit any uncommitted weld::Entry changes
if ( m_aFormControlContainer.isFormConnected() )
m_aFormControlContainer.disconnectForm();
BibWindow::dispose();
}
void BibView::UpdatePages()
{ // TODO: // this is _strange_: Why not updating the existent general page? // I consider the current behaviour a HACK. if ( m_pGeneralPage )
{
m_pGeneralPage->Hide();
m_pGeneralPage.disposeAndClear();
}
if( HasFocus() ) // "delayed" GetFocus() because GetFocus() is initially called before GeneralPage is created
m_pGeneralPage->GrabFocus();
OUString sErrorString( m_pGeneralPage->GetErrorString() ); if ( sErrorString.isEmpty() ) return;
bool bExecute = BibModul::GetConfig()->IsShowColumnAssignmentWarning(); if(!m_pDatMan->HasActiveConnection())
{ //no connection is available -> the data base has to be assigned
m_pDatMan->DispatchDBChangeDialog();
bExecute = false;
} elseif(bExecute)
{
sErrorString += "\n" + BibResId(RID_MAP_QUESTION);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.