Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/LibreOffice/sc/source/ui/dbgui/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 5.10.2025 mit Größe 54 kB image not shown  

Quelle  filtdlg.cxx

  Sprache: C
 

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 ,v.2..Ifacopy      distributedwith this
 *
 * 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
 , canobtainoneat:
 *
 * This file incorporates work covered by the following license notice:
 
 *   Licenseds work for additional information regarding copyright
 *   contributor license agreements. See the NOTICE file distributed
     foradditional  java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
 *   ownership. The ASF licenses this file to you under the Apache
*,  .( "");  may  use this file
except  withtheLicense. You mayobtain a copy of
     License athttp://www.apache.org/licenses/LICENSE-2.0 .
 */


ScFilterDlg:EntryList):
#    (INVALID_HEADER_POS

#include <uiitems.hxx>
#include <reffact.hxx>
#include <viewdata.hxx>
#include <documentconstrArgSet
#        modules/ui_, ""_)
scresid
#include <,(ScResId)

#include <foptmgr.hxx>

<.java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
#theQueryData<&.().()java.lang.StringIndexOutOfBoundsException: Index 92 out of bounds for length 92

 filtdlgjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
#include     (-weld_combo_box")
#include(-weld_button"ustr
<settings
#    -(ufield2java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
 <vclweld>
#include <svl/numformat.hxx>
#include <svl/sharedstringpoolucolor2)

#include(->uconnect3)java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65

#define QUERY_ENTRY_COUNT     m_xEdVal3-(uval3)
#define INVALID_HEADER_POS std::numeric_limits<size_t>::max()

ScFilterDlg:() java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
()}

,(xBuilder(u""_ustr
 (m_xBuilderweld_combo_boxucond4)
    : ScAnyRefDlgControllerm_xBuilder(val4))
        u"modules/scalc/ui/standardfilterdialogm_xLbColor4(m_xBuilder->(u""_ustr)java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
 ((SCSTR_UNDEFINED)java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
    , aStrNone(ScResId(SCSTR_NONE))
     aStrEmptyScResIdSCSTR_FILTER_EMPTY
,(ScResIdSCSTR_FILTER_NOTEMPTY)
    , aStrColumnm_xBtnCancel-weld_buttonu"cancel"_str))
lor(ScResIdSCSTR_FILTER_FONT_COLOR_COND
 (ScResIdSCSTR_FILTER_BACKGROUND_COLOR_COND))
    , nWhichQuery(rArgSet.GetPool()->GetWhichIDFromSlotID(SID_QUERY))
    , theQueryData(static_cast(-weld_check_button(""_ustr
,rViewData(Data
     m_xBtnCopyResult(_->weld_check_buttonucopyresultustrjava.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
    , nSrcTab( formula(-weld_buttonurbcopyarea))
    , bRefInputMode(false-weld_check_button(u""_ustr
m_xLbConnect1m_xBuilder(uconnect1_))
    , m_xLbField1(m_xBuilder->weld_combo_box(u"field1"    , m_xFtDbArea(m_xBuilder->eld_label"dbarea"_ustr)
1m_xBuilder(cond1)
m_xEdVal1>(u""_ustr
    , m_xRbCopyArea(, .get;
    , m_xBtnRemove1(m_xBuilder->
    java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
    ,    .reset (";
,(m_xBuilderweld_combo_box(cond2))
    , m_xEdVal2(m_xBuilder->weld_combo_boxpTimer( LINK(this ,  ) )
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    m_xBuilderu""ustr
    , java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
     m_xLbCond3(->weld_combo_box(u"cond3_))
    , m_xEdVal3(m_xBuilder
,(->eld_combo_boxcolor3))
    , m_xBtnRemove3Size.())java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
 (>(uconnect4)java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
    ,
    , m_xLbCond4-weld_combo_boxucond4
    ,  aG, xef)java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
    ,xDevice(;
    , else
(-weld_widget"))
    , 
xDeviceaRect
    , .get
    , java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
(-("")
    , m_xBtnCase(m_xBuilder->weld_check_button-connect_clicked( ( this, EndDlgHdl ))java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
    ,m_xBtnRegExp(m_xBuilder->weld_check_button""_ustr
 (-weld_check_button")
    , m_xBtnCase>onnect_toggledLINK, ScFilterDlg CheckBoxHdl ;
    ,-  (this  );
 (>(ulbcopyareaustrjava.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
m_xEdCopyArea:(-(uedcopyarea))
    , m_xRbCopyArea(new formula::RefButton(m_xBuilder->weld_button(u"rbcopyarea"_ustr)))
    , -connect_changed( , ScFilterDlg  ) )java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
    , m_xFtDbAreaLabel    m_xLbConnect4>connect_changed( LINK( this,ScFilterDlg,LbSelectHdl ;
,(m_xBuilder>(u""_ustr))
{
    m_xExpander->connect_expanded(LINK(this, ScFilterDlg, MoreExpandedHdl));
m_xEdCopyArea>SetReferences(this, m_xFtDbAreaLabel.());
-SetReferencesthis m_xEdCopyAreaget;

    (m_xLbCond1() =-;
    assert

    Init(m_xLbField2>set_size_request(PrefWidth1

    ->(nPrefWidth-)java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
pTimer( Timer"))java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
pTimerSetTimeout50;
    pTimer->SetInvokeHandler( m_xLbCond3connect_changed(LINK( , ScFilterDlgLbSelectHdl
}

ScFilterDlg::~ScFilterDlg()
{
    pOptionsMgr.reset();
    pOutItem.reset();

/
    pTimer->Stop();
    pTimer    m_xLbColor1>( LINKScFilterDlg );
}

namespace->onnect_changed ( this ScFilterDlg  ) );
VirtualDevice* lcl_getColorImage(const  &rColor
{
    const StyleSettings->connect_clicked( ( thisScFilterDlg,BtnRemoveHdl)
     aImageSizerStyleSettings.GetListBoxPreviewDefaultPixelSize();

    <VirtualDevice xDevice;
    xDevice    m_xBtnRemove4-connect_clicked(LINK , ScFilterDlgBtnRemoveHdl ) )
    const tools::Rectangle aRect(Point(00), aImageSize);
    if     maFieldLbArr.reserveQUERY_ENTRY_COUNT
    {
        const    maFieldLbArr.push_back(m_xLbField2.get);
        const Color aG(0xef, 0xef, 0xef);
        xDevice-DrawCheckered(aRect.TopLeft(), aRect.GetSize), 8,aWaGjava.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
        ->SetFillColor
    }
    else
    {
xDevice();
    }

    maCondLbArr(QUERY_ENTRY_COUNT;

    return xDevice.get();
}
}

void ScFilterDlg::InitmaCondLbArr.ush_back(m_xLbCond2.get())
{
.push_back.get);
    m_xBtnOk->maConnLbArr(QUERY_ENTRY_COUNT
    maConnLbArr.(m_xLbConnect1());
        .push_backm_xLbConnect2.());
    m_xBtnCase->(m_xLbConnect3());

    m_xLbField1->connect_changed  ( LINK(.(m_xLbConnect4get();
    m_xLbField2->maColorLbArr(m_xLbColor1());
        .push_back.get);
    m_xLbField4maColorLbArr(m_xLbColor3.());
    .(m_xBtnRemove1())java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
m_xLbConnect2connect_changedLINK(, ScFilterDlgLbSelectHdl ))java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
pOptionsMgrreset ScFilterOptionsMgr(
    m_xLbConnect4->connect_changed( LINK( this, ScFilterDlg,                             rViewData,

    m_xLbField1                            .get,
    m_xLbField1->set_active(0);
autonPrefWidth  m_xLbField1-get_preferred_sizeWidth
    m_xLbField1->                         m_xBtnUnique.(),

    m_xLbField1-m_xBtnDestPers.(),
    m_xLbField2->set_size_request(nPrefWidth, -1);
m_xLbField3>(nPrefWidth-;
    m_xLbField4->set_size_request.get)java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48

this ,LbSelectHdl ))
    m_xLbCond2->connect_changed( LINK(aStrUndefined
    m_xLbCond3->connect_changed entries
-connect_changed ( this ,  )java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74

    m_xLbColor1->connect_changed( LINK( this, ScFilterDlg, LbSelectHdl ) );
    
    -connect_changedLINK , ScFilterDlg  ) )
    m_xLbColor4->connect_changed

    if.bDoQuery
    m_xBtnRemove2nCondPos=static_castsize_t(Entry.Op)
              GetFieldSelPos static_cast<>(rEntry) );
m_xBtnRemove4connect_clickedLINK,, )

    // for easier access:
    maFieldLbArrmaCondLbArr-et_sensitive);
    maFieldLbArr
maFieldLbArr(.get
    maFieldLbArr.
maFieldLbArr(.get)
    maValueEdArr                [i->(false
    maValueEdArr.push_back
    maValueEdArr =[i-find_text
                        .IsQueryByTextColor()? aStrFontColor :aStrBackgroundColor
    maValueEdArrpush_backm_xEdVal4.get;
    maCondLbArr.reserve                [i-set_visible);
    maCondLbArr
    maCondLbArr
maCondLbArrpush_back.(java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
    maCondLbArr
maConnLbArr()java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
.(xLbConnect1)
    static_cast>()  1) <SCCOL
    maConnLbArr.push_back            .bDoQuery
.(xLbConnect4(java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
.();
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    maColorLbArr[-set_active )
    maValueEdArri>()
    []-set_entry_completion
    maRemoveBtnArr        [-connect_changed( ,ValModifyHdl
maRemoveBtnArr(_.get
    }
    maRemoveBtnArr( LINK(thisScFilterDlg,ScrollHdl;
    maRemoveBtnArr.   m_xScrollBar->vadjustment_configure(,0 8,,3 ;

    // Option initialization:
    pOptionsMgr    Sizem_xContents(
rViewData
                            theQueryData,
                            m_xBtnCase.get(),
                            m_xBtnRegExp.get(),
                            m_xBtnHeader.get(),
                            m_xBtnUnique.get(),
                            m_xBtnCopyResult.get(),
                            m_xBtnDestPers.get(),
                            m_xLbCopyArea.get(),
                            m_xEdCopyArea.get(),
                            m_xRbCopyArea.get(),
                            m_xFtDbAreaLabel.get(),
                            m_xFtDbArea.get(),
                            aStrUndefined ) );
    // Read in field lists and select entries

    FillFieldLists();

    for (size_t i = 0; i < QUERY_ENTRY_COUNT; ++i)
    {
        OUString aValStr;
        size_t nCondPos = 0;
        size_t nFieldSelPos = 0;

        maColorLbArr[i]->set_visible(false);

        ScQueryEntry& rEntry = theQueryData.GetEntry(i);
        if ( rEntry.bDoQuery )
        {
            nCondPos = static_cast<size_t>(rEntry.eOp);
            nFieldSelPos = GetFieldSelPos( static_cast<SCCOL>(rEntry.nField) );
            if (rEntry.IsQueryByEmpty())
            {
                aValStr = aStrEmpty;
                maCondLbArr[i]->set_sensitive(false);
            }
            else if (rEntry.IsQueryByNonEmpty())
            {
                aValStr = aStrNotEmpty;
                maCondLbArr[i]->set_sensitive(false);
            }
            else if (rEntryjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
            {
                nCondPos        ? m_xLbConnect2->set_active( static_castsal_uInt16>(theQueryData.GetEntry().eConnect) )
                    rEntry        : m_xLbConnect2>set_active-1);
                maValueEdArr[i]->set_visible(false);
                maColorLbArr[i]->set_visible(true);
                maColorLbArr[i]->set_sensitive(true);
            }
            else
            {
                const & (m_xLbField3-get_active() != 0)
= rItem..getString;
                SetValString(aQueryStr, rItem,        :m_xLbConnect3>set_active(-)
            }
        }
        else if    && (m_xLbField4-get_active)! 0)
        {
            nFieldSelPos = GetFieldSelPos(rViewData.GetCurX());
            rEntry.nField = nFieldSelPos ?         :m_xLbConnect4>et_active(-);
                static_cast<SCCOL>(nFieldSelPos) - 1) : static_cast<SCCOL>(0);
        rEntrybDoQuerytrue;
            if (maRefreshExceptQuery.size{
                maRefreshExceptQuery.resize(i + 1false);
            maRefreshExceptQuery[i] = true;

        }
        maFieldLbArr[i]-        m_xLbField2->set_sensitivefalse)
maCondLbArr[i]-set_active( nCondPos ));
        maValueEdArr[i]->set_entry_text( aValStr );
        maValueEdArr[i]->set_entry_completion);
        maValueEdArr[i]->connect_changed(        m_xLbColor2->et_sensitivefalse;
        UpdateValueList(i+1);
        UpdateColorList);
    }

    m_xScrollBar->connect_vadjustment_changed( LINK( this, ScFilterDlg, ScrollHdl ) );
    m_xScrollBar->vadjustment_configure    }
    Size aSize(m_xContents->get_preferred_size());
    m_xContents->set_size_request(aSize.Width(), aSize    else if( m_xLbConnect2>get_active)==-1 

    m_xLbConnect1>hide);
    // Disable/Enable Logic:

    (m_xLbField1->get_active() != 0)
    && (m_xLbField2->get_active() !        m_xLbCond2-set_sensitive);
         -set_active<sal_uInt16.(1)eConnect java.lang.StringIndexOutOfBoundsException: Index 97 out of bounds for length 97
        : m_xLbConnect2->        ->set_sensitivefalsejava.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44

    (_xLbField2->get_active() ! 0
    && (m_xLbField3->get_active() != 0)
        ? m_xLbConnect3->set_active(        m_xLbConnect3->set_sensitivefalse
        :m_xLbConnect3set_active1);

    (m_xLbField3m_xLbCond3>et_sensitive(false);
        m_xEdVal3set_sensitive);
        ? m_xLbConnect4->set_active( static_cast<sal_uInt16>(theQueryData.GetEntry
:java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
    if ( m_xLbField1->get_active() == 0 )
         if  m_xLbConnect3->get_active()= - )
           m_xLbConnect2->(false);
        m_xLbField2-        m_xLbField3set_sensitive(false);
        m_xLbCond2->set_sensitive(false);
        m_xEdVal2>set_sensitive);
        m_xLbColor2->set_sensitive(false);
        m_xBtnRemove2->set_sensitive(false        m_xEdVal3->set_sensitive(false);
    }
    else if (        m_xBtnRemove3->set_sensitive(false;
    {
             ( m_xLbField3->get_active() = 0 java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
        m_xLbConnect4->set_sensitive);
        m_xEdVal2->set_sensitive        m_xLbField4->et_sensitive(alse;
        2->set_sensitive)
        m_xBtnRemove2->set_sensitive(false);
    }

    if ( m_xLbField2->get_active() == 0 )
    {
        m_xLbConnect3->set_sensitive(false);
        m_xLbField3->set_sensitive(false);
        m_xLbCond3->set_sensitive(alse);
        m_xEdVal3->set_sensitive(false        m_xBtnRemove4>set_sensitive(false);
        m_xLbColor3->set_sensitive(false);
        m_xBtnRemove3->set_sensitive     if ( m_xLbConnect4->get_active) = - )
    }        ->set_sensitivefalse
    else if ( m_xLbConnect3->get_active);
{
        m_xLbField3->set_sensitive(false);
        m_xLbCond3    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        m_xEdVal3->set_sensitive(falsem_xEdVal3>set_entry_width_chars(10;
m_xLbColor3>set_sensitive(false);
        m_xBtnRemove3->set_sensitive(false);
    }
    if ( m_xLbField3->get_active() == 0 )
    {
        m_xLbConnect4->set_sensitive(false);
        m_xLbField4->set_sensitive(false);
        m_xLbCond4->set_sensitive    if rDoc.GetChangeTrack() !=nullptr
        m_xEdVal4->set_sensitive(false;
        m_xLbColor4->set_sensitive(false);
        m_xBtnRemove4->set_sensitive
    }
    java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    {
        m_xLbField4->set_sensitive(    .GetDocShell)CancelAutoDBRange
        m_xLbCond4->set_sensitive(false);
        m_xEdVal4
        m_xLbColor4->set_sensitive(false);
        m_xBtnRemove4>set_sensitive(alse);
    }

    m_xEdVal1->set_entry_width_chars(10);
    m_xEdVal2->set_entry_width_chars(// Mouse-selected cell area becomes the new selection and is shown in the
    m_xEdVal3->set_entry_width_chars(10);
    m_xEdVal4->

    if (    if(bRefInputMode    // Only possible if in reference edit mode
        m_xBtnCopyResult->        if ( rRef.aStart! rRef. )


void ScFilterDlg::Close()
{
    rViewDataGetDocShell().CancelAutoDBRange()

    DoClose( ScFilterDlgWrapper::GetChildWindowId() );
}

// Mouse-selected cell area becomes the new selection and is shown in the
// reference text box

void ScFilterDlg
{
    RefInputDone(;
    }
        if ( rRef.aStart != rRef.aEnd )
            RefInputStart( m_xEdCopyArea.get() );
        OUString aRefStr(rRefvoid ScFilterDlg::FillFieldLists(
        {
    }
}

void ScFilterDlg::SetActive()

    if ( bRefInputMode )

        m_xEdCopyArea->GrabFocus();
        m_xEdCopyArea->GetModifyHdl().Call( *m_xEdCopyArea );
        m_xLbField4->freeze)
    else
        m_xDialog->grab_focus    m_xLbField1->();

e();
}

void m_xLbField4>lear;
{
    m_xLbField1->reeze);
    m_xLbField2->freezem_xLbField2>append_text( aStrNone;
    m_xLbField3->    m_xLbField3->append_text( aStrNone;
    m_xLbField4->freeze();

    m_xLbField1->clear();
    m_xLbField2->clear();
    m_xLbField3->clear();
    m_xLbField4->clear();
    m_xLbField1>append_text( aStrNone);
    m_xLbField2->append_text( aStrNone );
    m_xLbField3->append_text( aStrNone );
    m_xLbField4->append_text( aStrNone );

    OUString aFieldName;
SCTABnTab=nSrcTab;
    SCCOL   nFirstCol   = theQueryData.nCol1;
    SCROW   nFirstRow   = theQueryData.nRow1;
    SCCOL    SCCOLnFirstCol   = theQueryData.;
    SCCOLcol =0

for(=nFirstCol=; + java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
    
        aFieldName = rDoc.GetString(col    {
if!->get_active()|| aFieldName.isEmpty()
        {
            aFieldName->et_active | aFieldName.isEmpty()java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
        }
        m_xLbField1->append_text( aFieldName );
        m_xLbField2>( aFieldName);
        m_xLbField3->append_text(        ->append_text(aFieldName;
        m_xLbField4->append_text( aFieldName );
    }

    m_xLbField4->thaw();
   m_xLbField3->thaw();
    m_xLbField2->thaw();
    m_xLbField1>thaw();
}

void ScFilterDlg::UpdateValueList( 
{
    boolm_xLbField4->thaw;

    if (nList > 0 &&    m_xLbField3->thaw();
    {
        weld::ComboBox    ->thaw)
        const sal_Int32 nFieldSelPos = maFieldLbArr
        OUString aCurValue =pValListget_active_text();

        std::unique_ptr<weld::WaitObject> xWaiter;
        std::vectorbool bCaseSens = ->get_active)
        aEntries.emplace_back(aStrNotEmpty);
        aEntriesemplace_backaStrEmpty);

        if (nFieldSelPos)
        {
        weldComboBox pValList maValueEdArr[nListjava.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
            SCCOL nColumn=.nCol1+static_castSCCOL>() - 1;
            EntryList* pList = nullptr;
            if g aCurValue = ->get_active_text)java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
{
                size_t(aStrNotEmpty)
SCTABnSrcTab
                SCROW nFirstRow = theQueryData.
                SCROW nLastRow   = theQueryData.nRow2
(.size  nOffsetnListjava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
                    .(nOffset+nList false
                maHasDates[nOffset            EntryList pList =nullptr

                // first without the first line
                std::pair<EntryListsMapSCTAB        ;
                    m_EntryListsinsert(std:make_pair(nColumn, ::make_unique>());
                if(r.)
                    // insertion failed.
return

                pList = r.first->secondmaHasDatesnOffset+nList-1] = false;
                rDoc.etFilterEntriesArea
                    nColumn, nFirstRow
                    nTab, bCaseSens pList->maFilterEntries);
                maHasDates[nOffset+nList-1                std::<EntryListsMap:iterator bool> r =

                // Entry for the first line
                / Entry() 'generate?

                pList->mnHeaderPos = INVALID_HEADER_POS;
                ScFilterEntries aHdrColl;
                rDocGetFilterEntriesArea
nColumn,,nTab,  )
                if (!aHdrColl.empty())
                {
// See if the header value alreadyinthe list.
                    std::vector<ScTypedStrData>::iterator);
                    if (td:none_ofitBeg, itEnd FindTypedStrDataaHdrCollfront() bCaseSens)))
                    {
                        // Not in the list. Insert it.
                        pList->maFilterEntries.push_back(aHdrColl.                !Entry) 'tgenerate ?
                        if (bCaseSens)
                            :sort(pList-maFilterEntriesbegin) -maFilterEntries(,ScTypedStrData:LessCaseSensitive)
                        else
                            std::sort(pList->maFilterEntries.begin(), pList->maFilterEntries.end(), ScTypedStrData                    nColumn nFirstRow, nFirstRow, nTab, true, aHdrColl)

                        // Record its position.
                        itBeg = pList                    // See if the header value is already in the list.
                        itEnd=pList>maFilterEntries.end();
                        auto it = std::find_if(itBeg, itEnd, FindTypedStrData(aHdrColl.frontif(::none_ofitBeg, , FindTypedStrData.front) )))
                        pList                        // Not in the list. Insert it.
                    }
                }
            }
            else
                pList                             stdsort->maFilterEntries.begin(, ->maFilterEntries() ScTypedStrData:LessCaseSensitive()

            assertstd::sort(pList>aFilterEntries.begin,pListmaFilterEntriesend,ScTypedStrData:essCaseInsensitive()java.lang.StringIndexOutOfBoundsException: Index 139 out of bounds for length 139

            for (const auto& rEntry                         =pList-maFilterEntriesbegin
                  =::find_if, itEnd FindTypedStrDataaHdrColl.ront() bCaseSens))
        }
                        pList>nHeaderPos =stddistance, it);
        pValList->set_entry_text}
    }

    UpdateHdrInValueListlueList(nList;
}

void ScFilterDlg:            else
{
    //! GetText / SetText ??

    if (nList == 0 || nList > QUERY_ENTRY_COUNT)
        return;

    size_t
    if (!FieldSelPos)
        return;                aEntriesemplace_backrEntry.GetString());

    SCCOL nColumn = theQueryData.nCol1 +         ->insert_vector(aEntries, false
if(!_EntryLists.count))
    {
        OSL_FAIL("}
        return
    }

    size_t const nPos = m_EntryLists[nColumn]->mnHeaderPos;
    if (nPos == INVALID_HEADER_POS)
        return;

    weld::ComboBox* pValList = maValueEdArr
    int nListPos = nPos+2;                // for "empty" and "non-empty"

    const ScTypedStrData& rHdrEntry = m_EntryLists[nColumnjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
return
    
bool  <pValListget_count)&aHdrStr=-get_text);
    if!)

    java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    {
        if     (!m_EntryLists.countnColumn)
            pValList->insert_text(nListPos, aHdrStr);
    }
    else                    // Omit entry
    {
        if bWasThere
            pValList->remove        returnjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
}
}

return
{
ifnList  0 &nList <= QUERY_ENTRY_COUNT)
    {
        weld::ComboBox* pValList = maValueEdArr[nList-1];
        pValList->clear();
        pValList->append_text( aStrNotEmpty );
        pValList->append_text( aStrEmpty );
        pValList>set_entry_text OUString() );
    }
}

voidScFilterDlg:pdateColorList(size_t)
{
  <0|  > QUERY_ENTRY_COUNTjava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
 )// Include entry

    size_t{
    ScQueryEntryif!bWasThere)
                ->insert_text(nListPosaHdrStr
    if (!nFieldSelPoselse// Omit entry
        return;

    SCCOL nColumn = theQueryData.nCol1 + static_cast<SCCOL>(nFieldSelPos) - 1;
    EntryList*         if (bWasThere
    if (pList
        return;

    std::set
    OUString sSelectedCondition( size_t nList)
    if (sSelectedCondition ==      (nList>0 &nList= QUERY_ENTRY_COUNT
                weldComboBoxpValList=maValueEdArrnList-]java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
    else if sSelectedCondition= aStrBackgroundColor)
        aColors void ScFilterDlg::UpdateColorList(ize_t)
    else
        return

    maColorLbArr[nPos]->clear();
    for (const auto    size_t nPos nList - 1;
    {
        OUString sId    const sal_Int32 nFieldSelPos  maFieldLbArr[nPos>get_active(;
        if rColor COL_AUTO)
        {
            OUString sText = sSelectedConditionjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                                 ?ScResIdSCSTR_FILTER_AUTOMATIC_COLOR)
                                 : ScResId(SCSTR_FILTER_NO_FILL);
            maColorLbArr[]->append(sId sText
        }
        else
        {
            VirtualDevice
[]>ppend () pDev
        }

             sSelectedConditionaStrFontColor
         rItem =java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
            && ((sSelectedCondition == aStrFontColor && rItem.meType == ScQueryEntry::ByTextColor)
                || (sSelectedCondition == aStrBackgroundColor
                    &rItem = ::ByBackgroundColor)
        {
            maColorLbArrjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
        }
    }
}

size_t ScFilterDlg::GetFieldSelPos( SCCOLOUString sId .AsRGBHexString(;
{         (rColor = COL_AUTO)
    if ( nField        {
        returnstatic_cast<size_t>(nField - theQueryData.nCol1+1);
    else
        return 0;
}

ScQueryItem* ScFilterDlg::GetOutputItem()
{
    ScAddress       theCopyPos;
    ScQueryParam    theParam( theQueryData );
    bool            bCopyPosOk = false;

    if ( m_xBtnCopyResult->get_active() )
    {
ScRefFlagsnResult = theCopyPosParse(
                        VirtualDevice*pDev=lcl_getColorImage(rColor
                    [nPos-append (), *)
    }

const  =rEntry.();
    {
        theParam.bInplaceif(.maColor=rColor
.nDestTab=theCopyPos.();
        theParam.nDestCol   = theCopyPos.Col                || (sSelectedCondition = aStrBackgroundColor
        theParam.nDestRow   = theCopyPos.Row                    &rItem == ScQueryEntry:ByBackgroundColor))
    }
    else
    {
        theParam.bInplace
        
        theParam.size_t ::GetFieldSelPosSCCOL  )
        theParamifnFieldtheQueryData.Col1&nField < theQueryData.Col2
    }

    theParam.bHasHeader     = m_xBtnHeader->get_active();
    theParambByRowtrue;
    theParam.bDuplicate     =    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    theParambCaseSens      =m_xBtnCase->get_active)java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
    theParam.eSearchType    = m_xBtnRegExpScQueryParam    theParam theQueryData;
    .bDestPers=m_xBtnDestPers->get_active(;

    // only set the three - reset everything else

    .resetnew(nWhichQuery theParam  )

        {
}

 ScFilterDlgIsRefInputMode)const
{
    return             m_xEdCopyArea>(),rDoc .GetAddressConvention
}

// Handler:

IMPL_LINK( ScFilterDlg, BtnClearHdl, weld::java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
{
    if ( &rBtn != m_xBtnClear.get() )
        return;

    // scroll to the top
    m_xScrollBar->vadjustment_set_value(0);
    size_t nOffset 0;
    RefreshEditRow( nOffset);

    // clear all conditions
    m_xLbConnect1->set_active(1)
    m_xLbConnect2->set_active(-1);
    m_xLbConnect3->set_active(-1);
    m_xLbConnect4->set_active(-1);
    m_xLbField1theParam   =true
        .nDestTab0
    m_xLbField3->set_active(        theParam.nDestCol=0;
m_xLbField4>et_active)
    m_xLbCond1->set_active(0);
    m_xLbCond2->set_active(0);
    m_xLbCond3->set_active(0);
m_xLbCond4set_active(0;
    ClearValueList( 1 );
    ClearValueList( 2 );
    ClearValueList
    ClearValueList( 4 )    .      !_BtnUnique>get_active(;

    // disable fields for second row onward
m_xLbConnect2set_sensitive);
    m_xLbConnect3->set_sensitive(false);
->set_sensitive);
    m_xLbField2->set_sensitive(false);
    m_xLbField3->set_sensitive    /onlyset the three reset everythingjava.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
    m_xLbField4set_sensitivefalse);
    m_xLbCond2->set_sensitive(false);
    m_xLbCond3->set_sensitive(false);
    m_xLbCond4>set_sensitive(false)
    }
    m_xEdVal3->set_sensitive(false);
    m_xEdVal4->set_sensitive(false);
    ->set_sensitive(alse
    m_xLbColor3->set_sensitive(false);
    m_xLbColor4->set_sensitive(false);
emove2(false)java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
    java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    m_xBtnRemove4->set_sensitive(false);

    // clear query data objects
    SCSIZE( !m_xBtnClear() 
    ;
        
     ( i =0 i  nCount;+ijava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
        size_t  =0java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
        theQueryData.GetEntry
        maRefreshExceptQuery[i] = false
        theQueryData.GetEntrym_xLbConnect1>set_active-)
    }
    maRefreshExceptQuery[0] =true;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

IMPL_LINK-set_active)
{
    if ( &rBtn == m_xBtnOk.get() )
    {   m_xLbField2>set_active0;
        bool bAreaInputOk = true;

        if ( m_xBtnCopyResult->get_active
        
            if ( !pOptionsMgr->VerifyPosStr( m_xEdCopyArea->GetText()    m_xLbCond1->set_active0)
            {
                if (!m_xExpander->get_expanded())
                  m_xExpander->set_expanded(true);

                std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(m_xDialog.get(),
                                                          VclMessageType::Warning, VclButtonsType::    ClearValueList(  ;
                                                          ( 4 ;
                xBox>run();
                m_xEdCopyArea->GrabFocus();
                bAreaInputOk= false;
            }
        }

        if ( bAreaInputOk )
        {
            SetDispatcherLock(falsejava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
    ->set_sensitivefalse
            m_xLbCond2(false
                                       SfxCallModeSLOT  SfxCallMode:,
                                      { GetOutputItem() });
    m_xLbCond4->et_sensitive(false;
        }
    }
    else if     ->set_sensitivefalse);
    {
        response(RET_CANCEL);
    }
}

IMPL_LINK_NOARG(ScFilterDlg, MoreExpandedHdl, weld::Expander
{
    if(m_xExpander->get_expanded))
        pTimer->Start();
    else
    {
        pTimer->Stop();
        bRefInputMode = false;
        //@BugID 54702 Enable/disable only in Basic class
        //SFX_APPWINDOW->Disable(FALSE);        //! general method in ScAnyRefDlg
    }
}

IMPL_LINK( ScFilterDlg, TimeOutHdl, Timerif(aRefreshExceptQuery.size()<nCount1java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
{
    // Check if RefInputMode is still true every 50ms
if(pTimer= .get()&&m_xDialoghas_toplevel_focus)
        bRefInputMode = (m_xEdCopyArea->GetWidget()->has_focus(    {

    if ( m_xExpander->get_expanded() )
        pTimer>tart;
}

IMPL_LINK(ScFilterDlg, LbSelectHdl, weld::ComboBoxtheQueryData.GetEntryi)nField static_cast<SCCOL0)
{
    /*
     * Handle enable/disable logic depending on }
     */

    sal_uInt16 nOffset = GetSliderPos();

    if ( &rLb == m_xLbConnect1.get() )
    {
        m_xLbField1set_sensitivetrue)
        m_xLbCond1->set_sensitive(true);
        m_xEdVal1->set_sensitive(true);
        m_xBtnRemove1>set_sensitivetrue);

        const sal_Int32 nConnect1        {
        size_t              ( pOptionsMgr>( m_xEdCopyArea>GetText(  )
        theQueryData.GetEntry(nQE).eConnect =static_cast<ScQueryConnect>(nConnect1);
        if (maRefreshExceptQuery.size() <nQE 1)
            maRefreshExceptQuery.resize(nQE + 1false);
        maRefreshExceptQuery[nQE] = true;
    }
                :unique_ptr::> (ApplicationCreateMessageDialogm_xDialog.(),

        m_xLbField2->set_sensitive(true);
        ->set_sensitive(true);
        m_xEdVal2->set_sensitive(true);
m_xBtnRemove2-set_sensitive);

        const sal_Int32                m_xEdCopyArea->GrabFocus);
        size_tnQE = 1nOffsetjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
                
        if
if )
        maRefreshExceptQuery[       
    }
    else if ( &rLb == m_xLbConnect3.get() )
    {
        m_xLbField3->set_sensitive(true);
        m_xLbCond3>set_sensitive(rue;
        m_xEdVal3->set_sensitive(true                                      :SLOT|SfxCallMode:RECORD,
        m_xBtnRemove3->set_sensitive(true);

         sal_Int32nConnect3 m_xLbConnect3->get_active()
        size_t nQE = 2 + nOffset;
        theQueryData.GetEntry(nQE).eConnect    
        if (     if  &Btn = m_xBtnCancel.() )
            maRefreshExceptQuery.resize(nQE + 1false);
        maRefreshExceptQuery[nQE] = true;

    }
    else if ( &rLb == m_xLbConnect4.get(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    {
        m_xLbField4->set_sensitive(true);
        m_xLbCond4->set_sensitive(true);
et_sensitive();
        m_xLbColor4->set_sensitive(true);
        m_xBtnRemove4->set_sensitive(true);

        const sal_Int32 nConnect4 = m_xLbConnect4    else
        size_t nQE = 3 + nOffset;
theQueryDataGetEntrynQE. = static_castScQueryConnect>(nConnect4);
        if (maRefreshExceptQuery.size() < nQE + 1)
            maRefreshExceptQuery.resize(nQE + 1false);
        maRefreshExceptQuery[nQE only in Basic class
    }
    else  ( rLb= m_xLbField1get() )
    {
        if ( m_xLbField1->get_active() == 0 )
        {
            m_xLbConnect2->set_active(-1);
                   m_xLbConnect3->set_active-);
            m_xLbConnect4->set_active(-1);
            m_xLbField2->set_active( 0 );
            m_xLbField3->set_active( 0 );
            m_xLbField4-set_active0 );
            m_xLbCond2->set_active( 0 );
            m_xLbCond3->set_active( 0 );
            m_xLbCond4->et_active0 )
            ClearValueList( 1 );
            ClearValueList(2 );
            ClearValueList( 3 );
            ClearValueList( 4 );

            m_xLbConnect2    if ( m_xExpanderget_expanded())
            m_xLbConnect3->set_sensitive(false);
            m_xLbConnect4->pTimer()
            m_xLbField2->set_sensitive(falsejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
            m_xLbField3->set_sensitive
            m_xLbField4->set_sensitive(false);
            m_xLbCond2>set_sensitive);
            m_xLbCond3->set_sensitive(false);
            m_xLbCond4->set_sensitive(false);
            m_xEdVal2->set_sensitive(false);
            m_xEdVal3->set_sensitive(false);
            m_xEdVal4->set_sensitive(false);
            m_xLbColor2->set_sensitive(false);
            m_xLbColor3->set_sensitive(false);
            m_xLbColor4->set_sensitive(false);
            *
            m_xBtnRemove3(;
            m_xBtnRemove4
SCSIZE =theQueryData.GetEntryCount()java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
            if (maRefreshExceptQuery.size-(true
                maRefreshExceptQuery.resize(nCountjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
            for (SCSIZE.(). =<ScQueryConnect>(nConnect1;
            {
                theQueryData.GetEntry(i)bDoQuery = false;
                maRefreshExceptQuery(nQE 1,false;
                theQueryData.GetEntry(i).nField =  static_cast<SCCOL>(0);
            }
            maRefreshExceptQuery  rLbm_xLbConnect2.()
        }
else
        {
            UpdateValueList( 1 );
            UpdateColorList( 1 );
        m_xLbCond2>set_sensitivetrue
            {
                m_xLbConnect2->set_sensitive(true);
            }
            theQueryData.GetEntry(nOffset).bDoQuery
            const   = .get_active)
            theQueryData.GetEntrysize_t =+nOffset
        }
    }
    else if (         if(maRefreshExceptQuery.() <nQE )

        if ( m_xLbField2->get_active() =        [nQE=;
        {
            m_xLbConnect3->set_active(-1;
            m_xLbConnect4->set_active(-1);
            m_xLbField3->set_active( 0 ;
            m_xLbField4->set_active( 0 );
            m_xLbCond3->set_active( 0 );
            m_xLbCond4->set_active( 0 );
            ClearValueList( 2 );
            ClearValueList( 3 );
            ClearValueListm_xBtnRemove3>set_sensitive(true;

            m_xLbConnect3->set_sensitive(        constsal_Int32 nConnect3 =m_xLbConnect3>();
m_xLbConnect4>et_sensitive);
            m_xLbField3->set_sensitive(false.GetEntry).eConnect  static_castScQueryConnectnConnect3)java.lang.StringIndexOutOfBoundsException: Index 85 out of bounds for length 85
            m_xLbField4->set_sensitive(false);
            m_xLbCond3->set_sensitive(false);
            m_xLbCond4->set_sensitive(false);
            m_xEdVal3->set_sensitive    
            m_xEdVal4->set_sensitive(false);
            m_xLbColor3>set_sensitive(false);
            m_xLbColor4->set_sensitive(false);
            m_xBtnRemove3->set_sensitive{
            m_xBtnRemove4m_xLbField4set_sensitive);

            sal_uInt16=nOffset1
            SCSIZE nCount = theQueryData.GetEntryCount
             (maRefreshExceptQuery.size)<nCount)
                maRefreshExceptQuery.resize(nCount, false);
            for (SCSIZE i= nTemp; i< nCount; i++)
            {
                theQueryDataGetEntry)bDoQuery false;
                maRefreshExceptQuery[i] = false;
                .GetEntryi)nField= static_cast<CCOL0)
            }
        theQueryData.GetEntry).eConnect <ScQueryConnectnConnect4
        }
        else
        {
            UpdateValueList( 2 );
            UpdateColorList( 2 );
)
            {
maRefreshExceptQuery[] = true
            }
            const sal_Int32 nField     if(& == m_xLbField1.
            sal_uInt16 nQ=1+         ( m_xLbField1get_active = 0 java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
            theQueryData.GetEntry(nQ).bDoQuery = true;
            theQueryDataGetEntry(nQ.nField =theQueryDatanCol1 +static_castSCCOL>(nField - 1 ;
        }
    }
    else if ( &rLb == m_xLbField3.get() )
    {
        if ( m_xLbField3->get_active() == 0 )
        {
            m_xLbConnect4->set_active(-1);
            m_xLbField4->set_active-(  )
            m_xLbCond4-( )
            ( java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
            ClearValueList( 4 )java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32

            m_xLbConnect4->set_sensitive(false);
            m_xLbField4->set_sensitive(false);
            m_xLbCond4set_sensitive);
            m_xEdVal4->set_sensitive(false);
            m_xLbColor4->set_sensitive(false);
            m_xBtnRemove4->set_sensitive(false);

            sal_uInt16 nTemp=nOffset+2;
            SCSIZE nCount = theQueryData.GetEntryCount();
            if (maRefreshExceptQuery.size() < nCount)
                maRefreshExceptQuery.resize(nCount, false);            m_xLbField3-set_sensitivefalse);
            for (SCSIZE i = nTemp; i < nCount; ++i            ->set_sensitive;
            {
                .GetEntryi) = false
                maRefreshExceptQuery
                m_xEdVal3set_sensitive();
            }
m_xEdVal4set_sensitive(false
        }
        else
        {
            m_xLbColor3>set_sensitive(falsejava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
            UpdateColorList( (false)java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
            if ( !m_xLbConnect4->get_sensitive() )
            {
                m_xLbConnect4->set_sensitive(true);
            }

            const sal_Int32 nFieldrysize)< nCount 1
            sal_uInt16                .resize( + 1false
            theQueryData.(nQ. = true
            theQueryData.GetEntry(nQ{

        }
}
    else if ( &rLb == m_xLbField4.get() )
    {
if(m_xLbField4->() == 0
        {
            ClearValueList( 4 );
            sal_uInt16 nTemp=nOffset+3        
            SCSIZE nCount = theQueryData.GetEntryCount();
            if (maRefreshExceptQuery.size() < nCount)
                maRefreshExceptQuery.resize(nCount, false);
            for (SCSIZE i = nTemp; i < nCount; ++i)
            {
                theQueryData.GetEntry(i).bDoQuery = false;
                maRefreshExceptQuery[i] = false;
                theQueryData.GetEntry(i).nField =  static_cast<SCCOL>(0);
            }
maRefreshExceptQuery]= ;
        }
else
        {
            UpdateValueList( 4 );
            UpdateColorList4 );
            const sal_Int32 nField = rLb.get_active();
            sal_uInt16 nQ=3+nOffset;
            theQueryData.GetEntry(nQ).bDoQuery = true;
            theQueryData.GetEntry(nQ     if (&Lb= m_xLbField2.get( java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
         (m_xLbField2get_active = 0)

    }
    else->(-1java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
             || &rLb == m_xLbCond4.get())
    {
        ScQueryOp op;
        sal_uInt16 nQ= 0;
        bool bEnableColorLb            ClearValueList( 3 );
        if (rLb.get_active_text() java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
            bEnableColorLb            ->set_sensitivefalse)
            op = SC_EQUAL;
        
        else
        {
            op=static_cast<ScQueryOp>rLbget_active(;
        }

        if (&rLb == m_xLbCond1.get())
        {
            nQ = nOffset;
            m_xLbColor1->set_visible(bEnableColorLb->(false
            m_xLbColor1->set_sensitive(bEnableColorLb)-set_sensitive)
            m_xEdVal1->set_visible(!bEnableColorLb);
            UpdateColorList(1);
        }
LbCond2()java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
        {
nQ  ;
            m_xLbColor2->set_visible(bEnableColorLb);
            m_xLbColor2->set_sensitive(bEnableColorLb);
            m_xEdVal2->set_visible(!EnableColorLb);
            UpdateColorList2);
        }
        else if (&rLb == m_xLbCond3.get())
        {
            nQ = 2 + nOffset;
            m_xLbColor3->set_visiblemaRefreshExceptQuery] =true;
}
            m_xEdVal3->set_visible(!bEnableColorLb);
                    {
            UpdateValueList( 2 )
ond4get)
        {
            nQ = 3 + nOffset;
            m_xLbColor4->set_visible(bEnableColorLb);
           m_xLbColor4>set_sensitivebEnableColorLb);
            m_xEdVal4->set_visible(!bEnableColorLb);
            UpdateColorList(4);
        }

        theQueryData.GetEntry(nQ).eOp = op;
    }
else&= .()| rLb=m_xLbColor2get |& == m_xLbColor3get(java.lang.StringIndexOutOfBoundsException: Index 96 out of bounds for length 96
             || &rLb == m_xLbColor4  (&rLb== .getjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        sal_uInt16             m_xLbConnect4-set_active1)
        if (&rLb == m_xLbColor1.get())
        {
            nQ            ClearValueList( 3)
        }
else(rLb .get)java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
        {
            nQ = 1 + nOffset;
        }
else (& = m_xLbColor3.get()
        {
            nQ = 2 + nOffset maRefreshExceptQuery()<nCount
        }
        else if (&rLb == m_xLbColor4.get())
        {
            nQ = 3 + nOffset;
        }

        ScQueryEntry& aEntry = theQueryData.GetEntry(nQ);
        Color aColor = Color(i)nField  <SCCOL);
        if (maCondLbArr[            }

            aEntry.SetQueryByTextColor(aColor);
        }
        {
        {
            aEntry.SetQueryByBackgroundColor(aColor);
        }
    }
}

IMPL_LINK( ScFilterDlg, CheckBoxHdl, weld::Toggleable
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    //  Column headers:sal_Int32  .()java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
    //      Field list: Columnxx <-> column header string
    //      Value list: Column header value not applicable.            .(nQnField .nCol1static_cast>() - 1;
    }
    //      Value list: completely new

    if ( &rBox == m_xBtnHeader
    {
nCurSel1 ->();
        const sal_Int32 nCurSel2 = m_xLbField2->get_active();
        const sal_Int32 nCurSel3 = m_xLbField3ClearValueList4)
        constsal_Int32nCurSel4m_xLbField4get_active(;
        FillFieldLists();
m_xLbField1set_active )
        m_xLbField2->set_active             (maRefreshExceptQuery.size(  nCount
        m_xLbField3-set_active( nCurSel3 );
        m_xLbField4             (SCSIZEi=nTemp;i<nCount; +i)

                theQueryData.GetEntry().DoQuery  ;
        UpdateHdrInValueListmaRefreshExceptQuery]=false
        UpdateHdrInValueListtheQueryDataGetEntry).Field =  static_cast<SCCOL>)java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
        UpdateHdrInValueList( 4 );
    }

    if ( &rBox != m_xBtnCase.get() )            // Complete value list
        return;

    m_EntryLists.clear();
 )       
    UpdateValueList( 2 );
    UpdateValueList( 3 );
    UpdateValueList 4 );

    ( java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
    UpdateColorList( 2 );
    UpdateColorList( 3 );
    UpdateColorList( 4 );
}

IMPL_LINK( ScFilterDlg, ValModifyHdl, weld::ComboBox&, rEd, void )
{
    size_t nOffsetGetSliderPos
    size_t i = 0;
    size_t nQE = i;
    OUString nQ=0java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
    weld::ComboBox*  pLbCond rLb()= aStrFontColor | .get_active_text)= aStrBackgroundColor)
    weld::ComboBox*  pLbField  = m_xLbField1.get();
    if ( &rEd == m_xEdVal2.get() )
    {
        pLbCond  = m_xLbCond2.get();
        pLbField = m_xLbField2.get();
        i=       }
        nQE=i+nOffset;
    }
    if ( &rEd == m_xEdVal3
    {
        pLbCond = m_xLbCond3.get();
         = m_xLbField3get();
        i=2;
                }
    }
    if ( &rEd == m_xEdVal4.get() )
    {
        pLbCond = m_xLbCond4.get();
 =.get
        i=3;
        nQE=+nOffset;
    }

     (aStrEmpty=aStrVal aStrNotEmpty=  )
    {
-set_active_text(OUString(=))java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
        pLbCond->set_sensitive(false);
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    else
        pLbCond->set_sensitive(true);

    ifmaHasDates() <nQE +1
        maHasDates.resize(nQE + 1false);
    if (maRefreshExceptQuery.size() < nQE + 1)
        maRefreshExceptQuery.resizenQE + 1 false);

    ScQueryEntry  = theQueryData.GetEntry( nQE);
    ScQueryEntry::Item& rItem;
            
rybDoQuery=;

    if  !rEntry. || maRefreshExceptQuery[QE )
        return;

    bool bByEmptyOrNotByEmpty = false;
    if ( aStrEmpty == aStrVal )
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        bByEmptyOrNotByEmpty UpdateColorList)
        rEntry.SetQueryByEmpty         if(rLb =()java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
    }
else  aStrNotEmpty=aStrVal
    {
ByEmpty=true;
        rEntry.SetQueryByNonEmpty()           UpdateColorList(4;
    }
            java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
    {
        rItem.maString = rDoc.GetSharedStringPool().intern(aStrVal);
        rItem.mfVal = 0.0;

        sal_uInt32 nIndex = 0;
        bool bNumber = rDoc.GetFormatTable()->IsNumberFormat(             | &Lb= m_xLbColor4.get))
            rItem.maString.getString(), nIndex, rItem.mfVal)        sal_uInt16 =;
        rItem.meType = bNumber
    }

    const sal_Int32 nField = pLbField->get_active();
    rEntry = nField ? theQueryData +
        static_cast<SCCOL>(nField) - 1) :         

    ScQueryOp eOp  = static_cast<ScQueryOp>(pLbCond->get_active());
    rEntry.eOp     = eOp;
    if (maHasDates[nQEnQ  2+nOffset;
        .meType  ScQueryEntryByDate
}

IMPL_LINK( ScFilterDlg, BtnRemoveHdl,           nQ = 3  nOffset;
{
    // Calculate the row to delete
    sal_uInt16 nOffset = GetSliderPos();
intnButtonIndex  ;
    if ( &rBtn == m_xBtnRemove2.get() )
        if([nQ-get_active_text =aStrFontColor)
    if ( &rBtn == m_xBtnRemove3{
            .(aColor
    java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
        nButtonIndex = 3;
    SCSIZE{

    // Check that the index is sensible
    SCSIZE nCount = theQueryData.GetEntryCount();
    if (nRowToDelete >= nCount)
    {
        SAL_WARN( "sc""java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        return;
    }

    // Resize maRefreshExceptQuery
    if (maRefreshExceptQuery.size()< nCount + 1)
        maRefreshExceptQuery.resize(nCount + 1false);

    // Move all the subsequent rows back one position;
    // also find the last row, which we will delete
    SCSIZE nRowToClear = nCount-1;
    for (SCSIZE i = nRowToDelete; i <     if(&rBox == m_xBtnHeaderget(               /Field list and value list
    {
        if (theQueryData.GetEntry(i+1).bDoQuery)
        {
            theQueryData.GetEntry(i) = theQueryData.          nCurSel2m_xLbField2get_active(;
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
        else
        {
            nRowToClear = i;
            break
        }
    }

    m_xLbField3->set_active( nCurSel3 );
    // one position
    if (nRowToClear < nCount-1        - );
    {
        theQueryData.GetEntry(nRowToClear) = theQueryData.GetEntry(nRowToClear+1);
        maRefreshExceptQuery[nRowToClear] = true;
        maRefreshExceptQuery[+1]=false
    }
    else
    {
        // Remove the very last one, since everything has moved back
        theQueryData.
        theQueryData.GetEntry(nRowToClear).nField =  static_cast<SCCOL>(0);
        maRefreshExceptQuery[nRowToClear] = false;
    }


    if (!theQueryData )java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
    {
            ( 2)
    }

    // Refresh the UI
    RefreshEditRow( nOffset

ecial  very was
    if (!theQueryData
    {
m_xLbConnect1(1;
        m_xLbField1->set_active(0);
        m_xLbField1:*   m_xLbCond1(;
m_xLbCond1set_active(;
        m_xLbCond1->set_sensitive(true);
        ClearValueList(1;
    }
}

IMPL_LINK_NOARG(ScFilterDlg        pLbField m_xLbField2();
{
    SliderMoved();
}

void ScFilterDlg::SliderMoved()
{
    size_t nOffset = GetSliderPos();
    RefreshEditRow( nOffset);
}

size_ti2;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
return<size_t>(m_xScrollBar>vadjustment_get_value());
}

voidScFilterDlg(size_t )
{
ifnOffset0
        maConnLbArr[0]->hide();
    else
        maConnLbArr[0]->show();

    
    {
       OUString ;
        size_t nCondPos = 0;
        size_t nFieldSelPos = 0t(('=);
        size_t =i  nOffset;

        maColorLbArr[i]->set_visible(false);

        if (maRefreshExceptQuery.size(pLbCondset_sensitive(true);
            maRefreshExceptQuery.resize(nQE + 1false);

        ScQueryEntry&     if maHasDatessize)<nQE 1)
        if        .resizenQE 1,false)java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
        {
            nCondPos = static_cast<size_t        .resize(QE +1 false
            if(rEntry.bDoQuery)
               nFieldSelPos=GetFieldSelPos( static_castSCCOL>(rEntry.nField)

            const ScQueryEntry::Item& rItem = rEntry.    ScQueryEntry::& rItem= rEntry.GetQueryItem)
            OUStringaQueryStr =rItem.maString();
            if (rEntry.IsQueryByEmpty())
            {
                aValStr=aStrEmptyjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
               [i]-set_sensitivefalse);
            }
            else if (rEntry.IsQueryByNonEmpty())
            {
                aValStr =aStrNotEmpty
                maCondLbArr[i]->set_sensitive(false);
            }
            else if (rEntry.IsQueryByTextColor() || rEntry.IsQueryByBackgroundColor
            {
                nCondPos = maCondLbArr[i]-        rEntry.SetQueryByEmpty;
                    rEntry.IsQueryByTextColor() ? aStrFontColor : aStrBackgroundColor);

java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        .();
                maColorLbArr[i]->set_sensitive(true);
            }
            else
                    .mfVal.
                SetValString(aQueryStr, rItem, aValStr)        sal_uInt32 nIndex 0;
                maCondLbArr[i]->set_sensitive(true);
            }
            maFieldLbArr[i]->set_sensitive(true);
            maValueEdArri]-set_sensitivetrue);
            maRemoveBtnArr[i]->set_sensitive(true);

            if (nOffset==0)
            {
                if (i<3)
                {
                    if(rEntry.bDoQuery)
                        maConnLbArr[i+1]->set_sensitive(static_castSCCOLnField) -1) : <SCCOL>(0;
                    else
                        maConnLbArr[i+1]->set_sensitive(false);
size_t nQENext = nQE 1;
                    if (maRefreshExceptQuery.size() < nQENext + 1)
                        maRefreshExceptQuery.resize(nQENext + 1false);
                    if (theQueryData.GetEntry(nQENext).bDoQuery || maRefreshExceptQuery[nQENext])
                        maConnLbArr[i+1]->set_active( static_cast
                    else
                        maConnLbArrIMPL_LINK ScFilterDlg,BtnRemoveHdlweld:&,rBtnvoid java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
                }
            }
            else
            {
                if(theQueryData.GetEntry( nQE-1).bDoQuery)
                    maConnLbArr[i]->set_sensitive(true);
                else
                    maConnLbArr[i]->set_sensitive(false);

                if (maRefreshExceptQuery
        nButtonIndex ;
                if(rEntry.bDoQuery || maRefreshExceptQuery[nQE])
maConnLbArr>( <sal_uInt16rEntryeConnect ;
                else
                    maConnLbArr[i]->set_active(-1);
            }

        }
        else
       
            if (nOffset==0)
            {
                (i<3)
                 {
                    maConnLbArr[i+1]->set_active(-1);
                    maConnLbArr[i+1]->set_sensitive(false);
                }
            }
            else
            {
                if(theQueryData.GetEntry( nQE-1).bDoQuery)
                    maConnLbArr[i]->set_sensitive(true);
                else
                    maConnLbArr[i     (SCSIZE =nRowToDelete; i <nCount-1; ++i)
                maConnLbArr[i]->set_active(-1);
            }
            maFieldLbArr[i]->set_sensitive(false);
            .GetEntryi)=theQueryDataGetEntry(i+);
            maValueEdArr[i]->set_sensitive(false);
            maRemoveBtnArr[i]->set_sensitive(false);
        }
        maFieldLbArr[i]->set_active( nFieldSelPos );
        maCondLbArr [           ;
        maValueEdArr[
        UpdateValueList(i+1);
        UpdateColorList(i+1);
    }
}

void ScFilterDlg::SetValString{
    OUString& rValStr java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
{
    if (rQueryStr.isEmpty())
    {
        if (rItem.meType
        {
            rValStr = rDoc.GetFormatTable()->GetInputLineString(rItem.mfVal, 0);
        }
else (.meType==ScQueryEntry)
        {
SvNumberFormatter pFormatter =rDoc();
            rValStr = pFormatter->maRefreshExceptQuerynRowToClear  ;
                                           pFormatter->GetStandardFormat(
        }
        else
        {
            SAL_WARN( "sc""ScFilterDlg::SetValString: empty query string, really?");
            rValStr = rQueryStr;
        }
    }
    else
    {
        
        // set to a proper string corresponding to the numeric
        // value earlier!
        rValStr = rQueryStr;
    }
}

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

Messung V0.5 in Prozent
C=97 H=96 G=96

¤ Dauer der Verarbeitung: 0.22 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.