LibreOffice Module svx (master) 1
|
#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>
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) |
#define IS_MOBILE (comphelper::LibreOfficeKit::isActive() && SfxViewShell::Current() && SfxViewShell::Current()->isLOKMobilePhone()) |
Definition at line 87 of file srchdlg.cxx.
|
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.
IMPL_LINK | ( | SvxSearchDialog | , |
CommandHdl_Impl | , | ||
weld::Button & | , | ||
rBtn | , | ||
void | |||
) |
true only if FillItemSet of SvxJSearchOptionsPage returns true
Definition at line 1266 of file srchdlg.cxx.
References aStr, Close, SvxAbstractDialogFactory::Create(), SvxAbstractDialogFactory::CreateSvxJSearchOptionsDialog(), SvxAbstractDialogFactory::CreateSvxSearchSimilarityDialog(), SfxBindings::ExecuteSynchron(), VclPtr< class reference_type >::get(), GetTransliterationFlags(), m_xDialog, NONE, RET_OK, and SfxGetpApp().
IMPL_LINK | ( | SvxSearchDialog | , |
FlagHdl_Impl | , | ||
weld::Toggleable & | , | ||
rCtrl | , | ||
void | |||
) |
Definition at line 1125 of file srchdlg.cxx.
IMPL_LINK | ( | SvxSearchDialog | , |
FocusHdl_Impl | , | ||
weld::Widget & | , | ||
rControl | , | ||
void | |||
) |
Definition at line 1882 of file srchdlg.cxx.
References SvtModuleOptions::CALC, weld::Widget::has_focus(), weld::ComboBox::select_entry_region(), SvtModuleOptions::WRITER, SvtModuleOptions::WRITERGLOBAL, and SvtModuleOptions::WRITERWEB.
IMPL_LINK | ( | SvxSearchDialog | , |
LBSelectHdl_Impl | , | ||
weld::ComboBox & | , | ||
rCtrl | , | ||
void | |||
) |
Definition at line 1120 of file srchdlg.cxx.
IMPL_LINK | ( | SvxSearchDialog | , |
ModifyHdl_Impl | , | ||
weld::ComboBox & | , | ||
rEd | , | ||
void | |||
) |
Definition at line 1438 of file srchdlg.cxx.
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 | ( | SvxSearchDialog | , |
AttributeHdl_Impl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 2070 of file srchdlg.cxx.
References SvxAbstractDialogFactory::Create(), SvxAbstractDialogFactory::CreateSvxSearchAttributeDialog(), VclPtr< class reference_type >::get(), and m_xDialog.
IMPL_LINK_NOARG | ( | SvxSearchDialog | , |
FormatHdl_Impl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 1945 of file srchdlg.cxx.
References SfxItemSet::ClearItem(), SfxPoolItem::Clone(), SfxItemSet::Count(), SearchAttrItemList::Count(), SvxAbstractDialogFactory::Create(), SvxAbstractDialogFactory::CreateTabItemDialog(), SfxObjectShell::Current(), DBG_ASSERT, SfxItemSet::DisableItem(), VclPtr< class reference_type >::get(), SfxItemSet::GetItemState(), SearchAttrItemList::GetObject(), SfxShell::GetPool(), SfxItemPool::GetWhich(), SfxItemSet::InvalidateAllItems(), IsInvalidItem(), m_xDialog, SfxItemSet::MergeRange(), n, SearchAttrItem::pItem, SearchAttrItemList::Put(), SfxItemSet::Put(), RET_OK, SvxResId(), SfxPoolItem::Which(), XATTR_FILL_FIRST(), and XATTR_FILL_LAST().
IMPL_LINK_NOARG | ( | SvxSearchDialog | , |
LoseFocusHdl_Impl | , | ||
weld::Widget & | , | ||
void | |||
) |
Definition at line 1940 of file srchdlg.cxx.
IMPL_LINK_NOARG | ( | SvxSearchDialog | , |
NoFormatHdl_Impl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 2016 of file srchdlg.cxx.
References SvtModuleOptions::CALC, m_xDialog, SvtModuleOptions::WRITER, SvtModuleOptions::WRITERGLOBAL, and SvtModuleOptions::WRITERWEB.
IMPL_LINK_NOARG | ( | SvxSearchDialog | , |
PresentTimeoutHdl_Impl | , | ||
Timer * | , | ||
void | |||
) |
Definition at line 358 of file srchdlg.cxx.
IMPL_LINK_NOARG | ( | SvxSearchDialog | , |
TemplateHdl_Impl | , | ||
weld::Toggleable & | , | ||
void | |||
) |
Definition at line 1479 of file srchdlg.cxx.
References SfxBindings::EnterRegistrations(), SfxBindings::LeaveRegistrations(), m_xDialog, and nId.
|
static |
Definition at line 2354 of file srchdlg.cxx.
References weld::Error, SfxViewFrame::GetFrame(), SfxFrame::GetFrameInterface(), vcl::Window::GetSizePixel(), VCLUnoHelper::GetWindow(), Size::Height(), i, weld::Normal, FindTextFieldControl::set_entry_message_type(), LabelItemWindow::set_label(), LabelItemWindow::SetOptimalSize(), vcl::Window::SetSizePixel(), and SvxResId().
Referenced by SvxSearchDialogWrapper::SetSearchLabel().
|
static |
Definition at line 151 of file srchdlg.cxx.
References weld::ComboBox::append_text(), SfxShell::GetItem(), SfxStringListItem::GetList(), nId, and SfxGetpApp().
Referenced by SvxSearchDialog::Construct_Impl().
SFX_IMPL_CHILDWINDOW_WITHID | ( | SvxSearchDialogWrapper | , |
SID_SEARCH_DLG | |||
) |
|
static |
Definition at line 171 of file srchdlg.cxx.
References DBG_ASSERT, nId, SfxShell::PutItem(), and SfxGetpApp().
Referenced by SvxSearchDialog::Close().