LibreOffice Module svx (master) 1
Classes | Namespaces | Macros | Enumerations | Functions
srchdlg.cxx File Reference
#include <osl/diagnose.h>
#include <vcl/timer.hxx>
#include <svl/slstitm.hxx>
#include <svl/itemiter.hxx>
#include <svl/style.hxx>
#include <unotools/intlwrapper.hxx>
#include <unotools/moduleoptions.hxx>
#include <unotools/searchopt.hxx>
#include <unotools/syslocale.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/objsh.hxx>
#include <sfx2/module.hxx>
#include <sfx2/viewsh.hxx>
#include <sfx2/basedlgs.hxx>
#include <sfx2/viewfrm.hxx>
#include <svl/cjkoptions.hxx>
#include <svl/ctloptions.hxx>
#include <com/sun/star/awt/XWindow.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/frame/XDispatch.hpp>
#include <com/sun/star/frame/XDispatchProvider.hpp>
#include <com/sun/star/frame/XLayoutManager.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/configuration/theDefaultProvider.hpp>
#include <com/sun/star/frame/ModuleManager.hpp>
#include <com/sun/star/ui/XUIElement.hpp>
#include <comphelper/processfactory.hxx>
#include <comphelper/scopeguard.hxx>
#include <svl/itempool.hxx>
#include <sfx2/app.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <svx/srchdlg.hxx>
#include <svx/strarray.hxx>
#include <svx/strings.hrc>
#include <svx/svxids.hrc>
#include <svl/srchitem.hxx>
#include <svx/pageitem.hxx>
#include "srchctrl.hxx"
#include <svx/dialmgr.hxx>
#include <editeng/brushitem.hxx>
#include <tools/resary.hxx>
#include <svx/svxdlg.hxx>
#include <vcl/toolbox.hxx>
#include <o3tl/typed_flags_set.hxx>
#include <comphelper/lok.hxx>
#include <cstdlib>
#include <memory>
#include <findtextfield.hxx>
#include <svx/labelitemwindow.hxx>
#include <svx/xdef.hxx>
#include <officecfg/Office/Common.hxx>
Include dependency graph for srchdlg.cxx:

Go to the source code of this file.

Classes

struct  o3tl::typed_flags< ModifyFlags >
 
struct  SearchDlg_Impl
 

Namespaces

namespace  o3tl
 

Macros

#define IS_MOBILE   (comphelper::LibreOfficeKit::isActive() && SfxViewShell::Current() && SfxViewShell::Current()->isLOKMobilePhone())
 

Enumerations

enum class  ModifyFlags {
  NONE = 0x000000 ,
  Search = 0x000001 ,
  Replace = 0x000002 ,
  Word = 0x000004 ,
  Exact = 0x000008 ,
  Backwards = 0x000010 ,
  Selection = 0x000020 ,
  Regexp = 0x000040 ,
  Layout = 0x000080 ,
  Similarity = 0x000100 ,
  Formulas = 0x000200 ,
  Values = 0x000400 ,
  CalcNotes = 0x000800 ,
  Rows = 0x001000 ,
  Columns = 0x002000 ,
  AllTables = 0x004000 ,
  Notes = 0x008000 ,
  Wildcard = 0x010000
}
 

Functions

static void ListToStrArr_Impl (sal_uInt16 nId, std::vector< OUString > &rStrLst, weld::ComboBox &rCBox, sal_uInt16 nRememberSize)
 
static void StrArrToList_Impl (TypedWhichId< SfxStringListItem > nId, const std::vector< OUString > &rStrLst)
 
 IMPL_LINK_NOARG (SvxSearchDialog, PresentTimeoutHdl_Impl, Timer *, void)
 
 IMPL_LINK (SvxSearchDialog, LBSelectHdl_Impl, weld::ComboBox &, rCtrl, void)
 
 IMPL_LINK (SvxSearchDialog, FlagHdl_Impl, weld::Toggleable &, rCtrl, void)
 
 IMPL_LINK (SvxSearchDialog, CommandHdl_Impl, weld::Button &, rBtn, void)
 
 IMPL_LINK (SvxSearchDialog, ModifyHdl_Impl, weld::ComboBox &, rEd, void)
 
 IMPL_LINK_NOARG (SvxSearchDialog, TemplateHdl_Impl, weld::Toggleable &, void)
 
 IMPL_LINK (SvxSearchDialog, FocusHdl_Impl, weld::Widget &, rControl, void)
 
 IMPL_LINK_NOARG (SvxSearchDialog, LoseFocusHdl_Impl, weld::Widget &, void)
 
 IMPL_LINK_NOARG (SvxSearchDialog, FormatHdl_Impl, weld::Button &, void)
 
 IMPL_LINK_NOARG (SvxSearchDialog, NoFormatHdl_Impl, weld::Button &, void)
 
 IMPL_LINK_NOARG (SvxSearchDialog, AttributeHdl_Impl, weld::Button &, void)
 
 IMPL_LINK (SvxSearchDialog, TimeoutHdl_Impl, Timer *, pTimer, void)
 
 SFX_IMPL_CHILDWINDOW_WITHID (SvxSearchDialogWrapper, SID_SEARCH_DLG)
 
static void lcl_SetSearchLabelWindow (const OUString &rStr, SfxViewFrame &rViewFrame)
 

Macro Definition Documentation

◆ IS_MOBILE

#define IS_MOBILE   (comphelper::LibreOfficeKit::isActive() && SfxViewShell::Current() && SfxViewShell::Current()->isLOKMobilePhone())

Definition at line 87 of file srchdlg.cxx.

Enumeration Type Documentation

◆ ModifyFlags

enum class ModifyFlags
strong
Enumerator
NONE 
Search 
Replace 
Word 
Exact 
Backwards 
Selection 
Regexp 
Layout 
Similarity 
Formulas 
Values 
CalcNotes 
Rows 
Columns 
AllTables 
Notes 
Wildcard 

Definition at line 89 of file srchdlg.cxx.

Function Documentation

◆ IMPL_LINK() [1/6]

IMPL_LINK ( SvxSearchDialog  ,
CommandHdl_Impl  ,
weld::Button ,
rBtn  ,
void   
)

◆ IMPL_LINK() [2/6]

IMPL_LINK ( SvxSearchDialog  ,
FlagHdl_Impl  ,
weld::Toggleable ,
rCtrl  ,
void   
)

Definition at line 1125 of file srchdlg.cxx.

◆ IMPL_LINK() [3/6]

IMPL_LINK ( SvxSearchDialog  ,
FocusHdl_Impl  ,
weld::Widget ,
rControl  ,
void   
)

◆ IMPL_LINK() [4/6]

IMPL_LINK ( SvxSearchDialog  ,
LBSelectHdl_Impl  ,
weld::ComboBox ,
rCtrl  ,
void   
)

Definition at line 1120 of file srchdlg.cxx.

◆ IMPL_LINK() [5/6]

IMPL_LINK ( SvxSearchDialog  ,
ModifyHdl_Impl  ,
weld::ComboBox ,
rEd  ,
void   
)

Definition at line 1438 of file srchdlg.cxx.

◆ IMPL_LINK() [6/6]

IMPL_LINK ( SvxSearchDialog  ,
TimeoutHdl_Impl  ,
Timer ,
pTimer  ,
void   
)

Definition at line 2081 of file srchdlg.cxx.

References SfxViewShell::Current(), and SfxViewShell::HasSelection().

◆ IMPL_LINK_NOARG() [1/6]

IMPL_LINK_NOARG ( SvxSearchDialog  ,
AttributeHdl_Impl  ,
weld::Button ,
void   
)

◆ IMPL_LINK_NOARG() [2/6]

IMPL_LINK_NOARG ( SvxSearchDialog  ,
FormatHdl_Impl  ,
weld::Button ,
void   
)

◆ IMPL_LINK_NOARG() [3/6]

IMPL_LINK_NOARG ( SvxSearchDialog  ,
LoseFocusHdl_Impl  ,
weld::Widget ,
void   
)

Definition at line 1940 of file srchdlg.cxx.

◆ IMPL_LINK_NOARG() [4/6]

IMPL_LINK_NOARG ( SvxSearchDialog  ,
NoFormatHdl_Impl  ,
weld::Button ,
void   
)

◆ IMPL_LINK_NOARG() [5/6]

IMPL_LINK_NOARG ( SvxSearchDialog  ,
PresentTimeoutHdl_Impl  ,
Timer ,
void   
)

Definition at line 358 of file srchdlg.cxx.

◆ IMPL_LINK_NOARG() [6/6]

IMPL_LINK_NOARG ( SvxSearchDialog  ,
TemplateHdl_Impl  ,
weld::Toggleable ,
void   
)

◆ lcl_SetSearchLabelWindow()

static void lcl_SetSearchLabelWindow ( const OUString &  rStr,
SfxViewFrame rViewFrame 
)
static

◆ ListToStrArr_Impl()

static void ListToStrArr_Impl ( sal_uInt16  nId,
std::vector< OUString > &  rStrLst,
weld::ComboBox rCBox,
sal_uInt16  nRememberSize 
)
static

◆ SFX_IMPL_CHILDWINDOW_WITHID()

SFX_IMPL_CHILDWINDOW_WITHID ( SvxSearchDialogWrapper  ,
SID_SEARCH_DLG   
)

◆ StrArrToList_Impl()

static void StrArrToList_Impl ( TypedWhichId< SfxStringListItem nId,
const std::vector< OUString > &  rStrLst 
)
static

Definition at line 171 of file srchdlg.cxx.

References DBG_ASSERT, nId, SfxShell::PutItem(), and SfxGetpApp().

Referenced by SvxSearchDialog::Close().