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 | |
o3tl | |
Macros | |
#define | IS_MOBILE (comphelper::LibreOfficeKit::isActive() && SfxViewShell::Current() && SfxViewShell::Current()->isLOKMobilePhone()) |
Enumerations | |
enum | ModifyFlags { ModifyFlags::NONE = 0x000000, ModifyFlags::Search = 0x000001, ModifyFlags::Replace = 0x000002, ModifyFlags::Word = 0x000004, ModifyFlags::Exact = 0x000008, ModifyFlags::Backwards = 0x000010, ModifyFlags::Selection = 0x000020, ModifyFlags::Regexp = 0x000040, ModifyFlags::Layout = 0x000080, ModifyFlags::Similarity = 0x000100, ModifyFlags::Formulas = 0x000200, ModifyFlags::Values = 0x000400, ModifyFlags::CalcNotes = 0x000800, ModifyFlags::Rows = 0x001000, ModifyFlags::Columns = 0x002000, ModifyFlags::AllTables = 0x004000, ModifyFlags::Notes = 0x008000, ModifyFlags::Wildcard = 0x010000 } |
#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 | , |
LBSelectHdl_Impl | , | ||
weld::ComboBox & | , | ||
rCtrl | , | ||
void | |||
) |
Definition at line 1122 of file srchdlg.cxx.
IMPL_LINK | ( | SvxSearchDialog | , |
FlagHdl_Impl | , | ||
weld::Button & | , | ||
rCtrl | , | ||
void | |||
) |
Definition at line 1127 of file srchdlg.cxx.
IMPL_LINK | ( | SvxSearchDialog | , |
CommandHdl_Impl | , | ||
weld::Button & | , | ||
rBtn | , | ||
void | |||
) |
true only if FillItemSet of SvxJSearchOptionsPage returns true
Definition at line 1268 of file srchdlg.cxx.
References aStr, Close, SvxAbstractDialogFactory::Create(), SvxAbstractDialogFactory::CreateSvxJSearchOptionsDialog(), SvxAbstractDialogFactory::CreateSvxSearchSimilarityDialog(), SfxBindings::ExecuteSynchron(), VclPtr< reference_type >::get(), AbstractSvxSearchSimilarityDialog::GetLonger(), AbstractSvxSearchSimilarityDialog::GetOther(), AbstractSvxSearchSimilarityDialog::GetShorter(), AbstractSvxJSearchOptionsDialog::GetTransliterationFlags(), AbstractSvxSearchSimilarityDialog::IsRelaxed(), m_xDialog, NONE, RET_OK, and SfxGetpApp().
IMPL_LINK | ( | SvxSearchDialog | , |
ModifyHdl_Impl | , | ||
weld::ComboBox & | , | ||
rEd | , | ||
void | |||
) |
Definition at line 1440 of file srchdlg.cxx.
IMPL_LINK | ( | SvxSearchDialog | , |
FocusHdl_Impl | , | ||
weld::Widget & | , | ||
rControl | , | ||
void | |||
) |
Definition at line 1878 of file srchdlg.cxx.
References SvtModuleOptions::CALC, weld::Widget::has_focus(), weld::ComboBox::select_entry_region(), weld::Widget::set_sensitive(), SvtModuleOptions::WRITER, SvtModuleOptions::WRITERGLOBAL, and SvtModuleOptions::WRITERWEB.
IMPL_LINK | ( | SvxSearchDialog | , |
TimeoutHdl_Impl | , | ||
Timer * | , | ||
pTimer | , | ||
void | |||
) |
Definition at line 2077 of file srchdlg.cxx.
References SfxViewShell::Current(), and SfxViewShell::HasSelection().
IMPL_LINK_NOARG | ( | SvxSearchDialog | , |
PresentTimeoutHdl_Impl | , | ||
Timer * | , | ||
void | |||
) |
Definition at line 351 of file srchdlg.cxx.
IMPL_LINK_NOARG | ( | SvxSearchDialog | , |
TemplateHdl_Impl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 1481 of file srchdlg.cxx.
References SfxBindings::EnterRegistrations(), SfxBindings::LeaveRegistrations(), m_xDialog, and nId.
IMPL_LINK_NOARG | ( | SvxSearchDialog | , |
LoseFocusHdl_Impl | , | ||
weld::Widget & | , | ||
void | |||
) |
Definition at line 1936 of file srchdlg.cxx.
IMPL_LINK_NOARG | ( | SvxSearchDialog | , |
FormatHdl_Impl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 1941 of file srchdlg.cxx.
References SfxPoolItem::Clone(), SvxAbstractDialogFactory::Create(), SvxAbstractDialogFactory::CreateTabItemDialog(), SfxObjectShell::Current(), DBG_ASSERT, VclPtr< reference_type >::get(), SfxAbstractDialog::GetOutputItemSet(), SfxShell::GetPool(), SfxItemPool::GetWhich(), IsInvalidItem(), m_xDialog, n, SearchAttrItem::pItem, RET_OK, SfxAbstractDialog::SetText(), SvxResId(), SfxPoolItem::Which(), XATTR_FILL_FIRST(), and XATTR_FILL_LAST().
IMPL_LINK_NOARG | ( | SvxSearchDialog | , |
NoFormatHdl_Impl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 2012 of file srchdlg.cxx.
References SvtModuleOptions::CALC, m_xDialog, SvtModuleOptions::WRITER, SvtModuleOptions::WRITERGLOBAL, and SvtModuleOptions::WRITERWEB.
IMPL_LINK_NOARG | ( | SvxSearchDialog | , |
AttributeHdl_Impl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 2066 of file srchdlg.cxx.
References SvxAbstractDialogFactory::Create(), SvxAbstractDialogFactory::CreateSvxSearchAttributeDialog(), VclPtr< reference_type >::get(), and m_xDialog.
|
static |
Definition at line 2349 of file srchdlg.cxx.
References assert(), SfxViewFrame::Current(), 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(), 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, SfxShell::PutItem(), and SfxGetpApp().
Referenced by SvxSearchDialog::Close().