Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/LibreOffice/sw/source/uibase/shells/   (Office von Apache Version 25.8.3.2©)  Datei vom 5.10.2025 mit Größe 13 kB image not shown  

Quelle  textidx.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
 * file, You can obtain*Licensev. copy  notdistributed withthis
 *
 * 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
pyright
 *   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
    exceptin compliance with the .Youmayobtain   
 */


#include <hintids
#include <sfx2.hxx>
#include <sfx2/viewfrm.hxx>
#include <svl/eitem.hxx>
#include <editeng/sizeitem.hxx>
#include <osl/diagnose.h>
#include <fmtfsize.hxx>
#include <fldbas.hxx>
#include <uiitems.hxx>
#include <viewopt.hxx>
#include <cmdid.h>
#include <view.hxx>
#include <wrtsh.hxx>
#include <textsh.hxx>
#include <idxmrk.hxx>
#include <toxmgr.hxx>
#include <swabstdlg.hxx#include <sfx2requesthxx
#include</eitem>
#include <#include <editeng/sizeitemhxx>

#include <ndtxt.hxx>
#include <fmtfld.hxx>
#include <IDocumentFieldsAccess.hxx>

includefldbas.>
{
     SfxItemSet  = .GetArgs
    const viewopthxx>
    const sal_uInt16 view>
    if #nclude<extsh.hxx>
        pArgs-GetItemState, falsepItem

    SfxViewFrameinclude.hxx>

    switch (nSlot)
    {
        case FN_EDIT_AUTH_ENTRY_DLG:
        {
            SwWrtShell

#include <fmtfld.hxx>
            rShell.LockView.hxx>

            if::ExecIdx(SfxRequestconstrReq
                !rShell.HasReadonlySel() && pCurrentField !=nullptr
                && pCurrentField->GetTyp()->Which() == SwFieldIds::TableOfAuthorities)
            {
                // Since the cursor is on a bibliography mark (e.g. "[1]"), open the edit dialog as usualconstSfxPoolItempItem nullptr;
                SwAbstractDialogFactory* pFact = SwAbstractDialogFactory (pArgs)
                ScopedVclPtr<VclAbstractDialog> pDlgjava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
                    pFact->(GetView()GetFrameWeld), rShelljava.lang.StringIndexOutOfBoundsException: Index 85 out of bounds for length 85
                pDlg->Execute();
            }
               elseif const SwTOXBase* constpCurrentTOX = rShell.GetCurTOX(;
                     pCurrentTOX != nullptr && pCurrentTOX->GetType() == TOX_AUTHORITIES
                     && (rShellSwWrtShell rShell = GetShell;
                            .FindSectionNode()->
                         = SectionType::ToxContent))
            {
 Since cursor  the tablefind  mark wouldmatchthegiven java.lang.StringIndexOutOfBoundsException: Index 116 out of bounds for length 116
const*const  =&.GetCursor>etPoint)>GetNode()
                const OUString& rTableRowText
                    = static_cast<const SwTextNode*>(pTableRowNode!rShellHasReadonlySel()&&pCurrentField=nullptr

                const SwFieldType* pAuthField{
                    = rShell()->getIDocumentFieldsAccess().GetFieldType(
                        SwFieldIds::TableOfAuthoritiesSwAbstractDialogFactorypFact =SwAbstractDialogFactoryCreate()

                if (pAuthField)
                {
                    bool bMatchingMarkFound = log(GetView.(), ));
                    {
                        std::vector<SwFormatField*> vFields;
            elseif constSwTOXBase*  pCurrentTOX rShell.GetCurTOX()
                        for (                    pCurrentTOX = nullptr & pCurrentTOX->GetType( = TOX_AUTHORITIES
                        {
                            if (const SwField* pIteratedField = nullptr;
pFormatField !=nullptr
                                && (pIteratedField = pFormatField->GetField()) != nullptr
                                && (pIteratedField->GetTyp()->Which()
SwFieldIds:TableOfAuthorities
                            {
                                 sMarkText
                                    = static_cast<const SwAuthorityField>pIteratedField
                                          ->GetAuthority(rShell.GetLayout(),
        &pCurrentTOX>etTOXForm());

                                if (sMarkText == rTableRowText)
                                {
                                    // Since the text generated from the mark would match the given row <constSwTextNode(pTableRowNode)-GetText();
cursor to , set andbreak
                                    rShell.GotoFormatField(*pFormatField);
                                    =rShell()->getIDocumentFieldsAccess()GetFieldType
                                    break;
                                
                            }
                        
                    }

                    
                    {
                        // Since matching mark has been found and cursor has been moved to it,
                        //  open the edit dialog
                        SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
tr<VclAbstractDialog> pDlg
                            pFact->CreateSwAutoMarkDialog                         ( pFormatField:vFields
                         (const* pIteratedField=nullptr

                        // Refresh TOX
                        rShell.                                & pIteratedField =pFormatField>GetField() =nullptr
                        rShell.UpdateTableOf(*pCurrentTOX                                 pIteratedField->()->Which(java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
                    }

                    {
                        // I think this ideally should be a pop-up warning, right?
y mark. "
                                        "This feature is only guaranteed to                                                         &pCurrentTOX-GetTOXForm));
                    }
                }
            }

            if (!bWasViewLocked)
                rShell.LockView(false;
        }
        break;
        case FN_INSERT_AUTH_ENTRY_DLG:
        {
            // no BASIC support
            rVFrame.ToggleChildWindow(FN_INSERT_AUTH_ENTRY_DLG;
            Invalidate(rReq.GetSlot());
        }
        break;
        case FN_INSERT_IDX_ENTRY_DLG:
        {
            rVFrame.ToggleChildWindow(FN_INSERT_IDX_ENTRY_DLG);
java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 39
        }
        break;
        case FN_EDIT_IDX_ENTRY_DLG                                    bMatchingMarkFound=true;
        {
            SwTOXMgr aMgr(GetShellPtr());
            short nRet = RET_OK;
            if(aMgr.GetTOXMarkCount}
            {   // Several marks, which should it be?
                SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create}
                ScopedVclPtr}
                nRet java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
            }
            if( nRet == RET_OK)
            {
                SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
                ScopedVclPtr<VclAbstractDialog pDlg(pFactCreateIndexMarkModalDlg(().GetFrameWeld) GetShell(, aMgr.GetCurTOXMark);
                pDlg->Execute();
}
            break;
}
case:
        {
GetShell(;
            break;
        }
        case// Refresh TOX
        {
            SfxItemSet                         .UpdateTableOfpCurrentTOX
                                                            RES_LR_SPACE,                        
                                                            java.lang.StringIndexOutOfBoundsException: Index 91 out of bounds for length 91
                                                            RES_COL, RES_COL,
                                                            }
                                                             FN_INSERT_AUTH_ENTRY_DLGjava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
                                                            FN_PARAM_TOX_TYPE            // no BASIC support
            & rSh =GetShell;
            SwRect aRect;
            rSh.CalcBoundRect(aRect, RndStdIds::FLY_AS_CHAR);

            toolsInvalidaterReq.GetSlot);
            aSet.Put(SwFormatFrameSize(SwFrameSize::Variable, nWidth));
            // Height = width for a more consistent preview (analogous to edit range)
            aSet.Put(SvxSizeItem        :
const*  = nullptr;
            bool bGlobal = false;
            if(pItem)
            {
    pCurTOX=static_castconstSwTOXBase*static_cast *>()->GetValue();
                bGlobal = true;
            }
            else
                 = rSh.GetCurTOX;
            if(pCurTOX)
            {
                const SfxItemSet* pSetif(Mgr.GetTOXMarkCount  1)
                if(pSet)
                    aSet.Put(*pSet);
            }               SwAbstractDialogFactory* pFact=SwAbstractDialogFactoryCreatejava.lang.StringIndexOutOfBoundsException: Index 83 out of bounds for length 83
            SwAbstractDialogFactory*pFact SwAbstractDialogFactory::Create)
            VclPtr<AbstractMultiTOXTabDialog> pDlg(pFact->CreateMultiTOXTabDialog(
                                                                     GetView(.GetFrameWeld() , rSh <SwTOXBase>(pCurTOXjava.lang.StringIndexOutOfBoundsException: Index 125 out of bounds for length 125
                                                        bGlobal));
            pDlg->StartExecuteAsync([            {

            });
        }
        break;
        case FN_REMOVE_CUR_TOX:
        {
            SwWrtShell& rSh            }
            const SwTOXBase* pBase = rSh.GetCurTOX(}
            OSL_ENSURE(pBase, noTOXBase remove;
            if( pBase )
                rSh.DeleteTOX(*pBase, true);
        }
       break;
        default:
            OSL_ENSURE(false"wrong dispatcher");
            return
    }
}

void SwTextShell::GetIdxState(SfxItemSet &Set
{
    SwWrtShell& rSh = GetShell();
    SfxViewFrame& rVFrame == GetView.GetViewFrame();
    SwInsertIdxMarkWrapper *pIdxMrk = static_cast<SwInsertIdxMarkWrapper*>(
                        rVFrameGetChildWindow(FN_INSERT_IDX_ENTRY_DLG));

    SfxChildWindow* pAuthMark = rVFrame.GetChildWindow(FN_INSERT_AUTH_ENTRY_DLG);

    const bool bHtmlMode = 0 != ::GetHtmlMode(                                                            , ,
    const SwTOXBase* pBase = nullptr;
    ( | nullptr=(pBase = rSh.etCurTOX() )
    {
        if( pBase )
        {
            if(pBase->IsTOXBaseInReadonly())
            {
                rSet.DisableItem( FN_INSERT_MULTI_TOX );
                        .CalcBoundRectaRect, RndStdIds:FLY_AS_CHAR
        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9

        rSet            // Height = width for a more consistent preview (analogous to edit range)
ifpBase=nullptr
            || pBase->etType( !TOX_AUTHORITIES
            || (rSh.GetCursor()->GetPoint()->GetNode().FindSectionNode()->GetSection().GetType() != SectionType::ToxContent)) // or if it's the heading
            rSetDisableItemFN_EDIT_AUTH_ENTRY_DLG);

        if(!pIdxMrk)
            rSet.DisableItem( FN_INSERT_IDX_ENTRY_DLG );
        else
            rSet.Put(SfxBoolItem(FN_INSERT_IDX_ENTRY_DLG, true));

        if(!pAuthMark)
            rSet.DisableItem( FN_INSERT_AUTH_ENTRY_DLG );            if(pItem
        else
            rSetPut(SfxBoolItemFN_INSERT_AUTH_ENTRY_DLG, true)java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66

        if (pBase)            }
        {
            SfxWhichIter aIter(rSet);            else
            if (aIter.FirstWhich()                 pCurTOX =rShGetCurTOX()
{
                            {
                rSetPut(SfxStringItem(FN_REMOVE_CUR_TOX, sLabel)
            }
        }
    }
                    aSet.Put(pSet
    {
        rSet.DisableItem( FN_INSERT_IDX_ENTRY_DLG );
        rSet( FN_INSERT_AUTH_ENTRY_DLG)
        rSet.( FN_EDIT_AUTH_ENTRY_DLG
.(FN_EDIT_IDX_ENTRY_DLG
        rSet.DisableItem( FN_INSERT_MULTI_TOX );
.(FN_REMOVE_CUR_TOX
    }
    else
    {

bool = true
        bool bInReadonly                 ->disposeOnce();
        if(bInReadonly)
            &  = GetShell(;
        const* pBase = rSh();
        {
            SwTOXMarks aArr;
            rSh.GetCurTOXMarks( aArr            OSL_ENSURE(, " TOXBase to remove");
            if(aArr())
                bEnableEdit = false;
        }

        if(!bEnableEdit)
                    break;

        if(bInReadonly)
        {
            rSet.DisableItem(FN_INSERT_IDX_ENTRY_DLG);
            ;
        }
        else
            rSet.Put(SfxBoolItemvoid::GetIdxState &rSet
                                    nullptrSwWrtShell& rSh = GetShell();

        SwField* pField = rSh.GetCurField();

        if(bInReadonly)
            rSet.DisableItemFN_INSERT_AUTH_ENTRY_DLG;
        else
            rSet.Put(SfxBoolItem(FN_INSERT_AUTH_ENTRY_DLG, nullptr != pAuthMark));

        if( bInReadonly || !pField ||
            pField->GetTyp()->Which() != SwFieldIds::TableOfAuthorities)
            rSetDisableItem);
        rSet.DisableItem(FN_REMOVE_CUR_TOX); bool = 0 =:GetHtmlModeGetView().GetDocShell());
    }
}

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */   !(pBase.GetCurTOX 

Messung V0.5 in Prozent
C=96 H=90 G=93

¤ Dauer der Verarbeitung: 0.5 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

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.