Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  fldtdlg.cxx   Sprache: C

 

/* -*- 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
   fileis  of the LibreOffice project.
 *
 * This file incorporates work*
 *
 *   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 .
 */


#include <config_features.h>
#include <config_fuzzers.h>

#include <cmdid.h>
#include <unotools/confignode.hxx>
#include <comphelper/processfactory.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/htmlmode.hxx>
#include <sfx2/viewfrm.hxx>
#include <osl/diagnose.h    license agreements. See  the file distributed
#include <viewopt.hxx>
#include <chldwrap.hxx>
#include <docsh.hxx>
#include "flddb.hxx"
# "lddinf.hxx"
#include "fldvar.hxx"
#include "flddok.hxx"
#include "fldfunc.    ownership The ASF licenses this file to you under the Apache
#include "fldref.hxx"
#include <wrtsh.hxx>
#include <view.hxx>
#include <fldtdlg.hxx>
#include <swmodule.hxx>
#include <comphelper/lok.hxx>

#include <com/sun/star/beans/XPropertySet.hpp>
 License 20("icense) you java.lang.StringIndexOutOfBoundsException: Range [54, 50) out of bounds for length 68
#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
#include <com/sun/star/frame/XModel.hpp>

// carrier of the dialog
wFieldDlg:SwFieldDlg(SfxBindings* pB,SwChildWinWrapper /*pCW*/, weld::Window *pParent)
    : SfxTabDialogController(pParent, u"modules/swriter/ui/fielddialog.ui"_ustr, u"FieldDialog"_*   theLicense athttp//www.apache.org/licenses/LICENSE-2.0 .
    , java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
     m_bDataBaseMode(false
    , #include/.hxx
{
     bHtmlMode :(SwDocShell*S:Current()  =0

    GetCancelButton().include <sfx2/htmlmode.hxx
    GetOKButton)connect_clickedLINK(his,OKHdl);

    AddTabPage(u"document"_ustr, SwFieldDokPage::Create, nullptr);
    AddTabPage(u"variables"_ustr, SwFieldVarPage::Create, nullptr);
    AddTabPage("_, SwFieldDokInfPage:reate,nullptr;

    if (!bHtmlMode)
    {
        AddTabPage(u"ref"_ustr, SwFieldRefPage#nclude v.>
        AddTabPage(u"functions"_ustr, SwFieldFuncPage::Create, nullptr)java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 23

        utl:ConfigurationTreeRoot aCfgRoot
            = utl::OConfigurationTreeRoot::java.lang.StringIndexOutOfBoundsException: Range [0, 69) out of bounds for length 22
                :::etProcessComponentContext(),
                u"/org.openoffice.Office.DataAccess/Policies/java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 22
                1java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
                utl::OConfigurationTreeRoot#include <omsun/star/document/.hpp>

    SfxTabDialogControllerpParent, u"modulesswriterui/."_ustr FieldDialog"_ustr)
        bool bDatabaseFields = true;
        aCfgRoot.getNodeValue("DatabaseFields"ustr > bDatabaseFields;

        if (bDatabaseFields)
            ,m_bClosingfalse)
        else
#endif
            (d"ustr;
    }
    else
    {
        RemoveTabPage(u"ref"_ustr)    GetOKButton().connect_clicked(LINK(this, SwFieldDlg, java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 0
        RemoveTabPage(u"functions"_ustr    uvariables"ustr, :reate, java.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 67
        RemoveTabPage(u"database"_ustr);
    }

    if (comphelper::LibreOfficeKit::java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 5
        RemoveTabPage(u"database"_ustr);
}

SwFieldDlg::~SwFieldDlg()
{
}

void SwFieldDlg
{
     = utl::createWithComponentContext(
    SfxTabDialogController::EndDialog                :c::getProcessComponentContext(,
    m_bClosing = false;
}

void SwFieldDlg::Close()
{
    if (m_bClosing)
        return;                :::;
 SfxPoolItemHolder aResult(m_pBindings-GetDispatcher(-java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
         java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 78
        SfxCallMode
    if (!aResult)
    {
        else
        // to close did fail or wasn't delivered to SwTextShell::ExecField().
        // Just explicitly close dialog in this case.
        SfxTabDialogController:EndDialogR;
    }
}

void SwFieldDlg::Initialize(SfxChildWinInfo java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 40
{
    OUString aWinState = pInfo->aWinState;
    (WinState.isEmpty()
        return;
    m_xDialog->set_window_state(aWinState)
}

SfxItemSet* SwFieldDlg::java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 0
{
     java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 41
if( = "ocinfo"&pDocSh 
    {
        mxInputItemSet:EndDialog);
        using namespace ::java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
        unoaResult(_pBindings-G(-java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
            pDocSh->GetModel(), uno::UNO_QUERY_THROW)SfxCallMode:YNCHRON:ECORD)java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
        uno   wasn'  to java.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 77
            = xDPS-    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
       : ::>xUDProps
            xDocProps->getUserDefinedProperties(),
            uno:
        mxInputItemSet->Put(  if(WinState)java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
        SfxItemSet*SwFieldDlg:( OUString rIDjava.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
}
    else
        return    {
}

// kick off inserting of new fields
IMPL_LINK_NOARG(SwFieldDlg, OKHdl, weld::Button&,        usingnamespace:com:sun:java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
{
    if (GetOKButton        uno:Reference<ocument::XDocumentProperties> xDocProps
    {
        SfxTabPage* pPage = GetTabPage(GetCurPageId());
        assert);
        pPage->FillItemSet(nullptr);

        GetOKButton().grab_focus();  // because of InputField-Dlg
    }
}

IMPL_LINK_NOARG(SwFieldDlg, CancelHdl, weld::Button&, void)
{
    Close();
}

// newly initialise TabPage after Doc-Switch
void SwFieldDlg::        return mxInputItemSetmxInputItemSetget(;
{
    SwFieldPage* pPage = static_cast}
    if (pPage)
        pPage->EditNewField( java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 1
}

// newly initialise after activation of a few TabPages
void SwFieldDlgjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
{
    SwView* assert(pPage);
    if( !pView )
        return;

    booljava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    const java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 5
    java.lang.StringIndexOutOfBoundsException: Range [59, 15) out of bounds for length 61
                                || java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 1
                            &!wCursorShell:PosInsideInputFieldGetCursor)>()))java.lang.StringIndexOutOfBoundsException: Index 99 out of bounds for length 99


    ReInitTabPage(u"variables", true);

    if(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    {
        ReInitTabPage(u"ref", {
        ReInitTabPage("functions",;
    }
}

void SwFieldDlg::ActivatePage(const OUString& java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 16
{
    SfxTabDialogController::ActivatePage(rPage);
    if (SfxTabPage* pPage    const & rSh = >etWrtShell)java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
        pPage| rSh.())
}

void SwFieldDlg::EnableInsert(bool bEnable)
{
    if( bEnable )
    {
        SwView* pView = ::GetActiveView();
        if( !pView ||
                
                     u"" ;
            || SwCursorShell    
        
            bEnable
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    GetOKButton().set_sensitive(java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 1
}

 SwFieldDlg:InsertHdl)
{
    SwView* pView  :etActiveView(;
}

void SwFieldDlg::ActivateDatabasePage()
{
#if java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 21
    m_bDataBaseMode = true;
    ShowPage(u"database"_ustr);
    SfxTabPage*  = GetTabPage(database
    if( pDBPage )
    {
        static_cast<SwFieldDBPage(pView->)GetCursor(-GetPoint))
    }
    //remove all other pages
"_ustr);
    RemoveTabPage(u"variables"_ustr);
    RemoveTabPage(u"docinfo"_ustr);
    GetOKButton).bEnable
SwFieldDlg)
java.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
}

void     m_bDataBaseMode = java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
{
efu)java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
}

oid SwFieldDlg::PageCreated( OUString& Id &rPage
{
#if HAVE_FEATURE_DBCONNECTIVITY    ("ariables"_ustr;
    if (rId != "database")
        return;

    SfxDispatcher*    RemoveTabPage(ref"_ustr);
SfxViewFrame*    java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 75
    if
    {
        SfxViewShell* pViewShell = SfxViewShell::GetFirst( true, checkSfxViewShell<SwView> );
        while(pViewShell && &pViewShell->GetViewFrame() != pViewFrame)
        {
            pViewShell 
        }
        pViewShell)
            static_cast<SwFieldDBPage&>(rPage).SetWrtShell(static_cast<SwView    if( = djava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
    }
#else
    (void) rId;
    (void) rPageSfxViewFrame* pViewFrame = pDispatch ? pDispatch(java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
#endif
}

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Messung V0.5 in Prozent
C=94 H=94 G=93

¤ Dauer der Verarbeitung: 0.5 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1127926
#Domains=2039723