LibreOffice Module sw (master) 1
|
#include <sal/config.h>
#include <osl/diagnose.h>
#include <o3tl/safeint.hxx>
#include <sal/log.hxx>
#include <svl/style.hxx>
#include <utility>
#include <vcl/weld.hxx>
#include <svl/stritem.hxx>
#include <unotools/pathoptions.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/sfxdlg.hxx>
#include <svx/dialogs.hrc>
#include <svx/flagsdef.hxx>
#include <com/sun/star/ui/dialogs/TemplateDescription.hpp>
#include <com/sun/star/ui/dialogs/XFilePicker3.hpp>
#include <svtools/indexentryres.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <column.hxx>
#include <fmtfsize.hxx>
#include <authfld.hxx>
#include <swtypes.hxx>
#include <wrtsh.hxx>
#include <view.hxx>
#include <cnttab.hxx>
#include <swuicnttab.hxx>
#include <poolfmt.hxx>
#include <strings.hrc>
#include <uitool.hxx>
#include <fmtcol.hxx>
#include <fldbas.hxx>
#include <expfld.hxx>
#include <unotools.hxx>
#include <docsh.hxx>
#include <swmodule.hxx>
#include <modcfg.hxx>
#include <iodetect.hxx>
#include <cmdid.h>
#include <cnttab.hrc>
#include <SwStyleNameMapper.hxx>
#include <sfx2/filedlghelper.hxx>
#include <toxwrap.hxx>
#include <chpfld.hxx>
#include <cmath>
#include <memory>
#include <string_view>
#include <vector>
#include <numeric>
#include <svtools/editbrowsebox.hxx>
Go to the source code of this file.
Classes | |
class | SwTOXWidget |
class | SwTOXEdit |
class | SwTOXButton |
Macros | |
#define | ITEM_SEARCH 1 |
#define | ITEM_ALTERNATIVE 2 |
#define | ITEM_PRIM_KEY 3 |
#define | ITEM_SEC_KEY 4 |
#define | ITEM_COMMENT 5 |
#define | ITEM_CASE 6 |
#define | ITEM_WORDONLY 7 |
Typedefs | |
typedef ::svt::EditBrowseBox | SwEntryBrowseBox_Base |
Variables | |
const sal_Unicode | aDeliStart = '[' |
const sal_Unicode | aDeliEnd = ']' |
const TranslateId | STR_TOKEN_ARY [] |
const TranslateId | STR_TOKEN_HELP_ARY [] |
#define ITEM_ALTERNATIVE 2 |
Definition at line 3724 of file cnttab.cxx.
#define ITEM_CASE 6 |
Definition at line 3728 of file cnttab.cxx.
#define ITEM_COMMENT 5 |
Definition at line 3727 of file cnttab.cxx.
#define ITEM_PRIM_KEY 3 |
Definition at line 3725 of file cnttab.cxx.
#define ITEM_SEARCH 1 |
Definition at line 3723 of file cnttab.cxx.
#define ITEM_SEC_KEY 4 |
Definition at line 3726 of file cnttab.cxx.
#define ITEM_WORDONLY 7 |
Definition at line 3729 of file cnttab.cxx.
Definition at line 138 of file cnttab.cxx.
IMPL_LINK | ( | SwAddStylesDlg_Impl | , |
HeaderBarClick | , | ||
int | , | ||
nColumn | , | ||
void | |||
) |
Definition at line 603 of file cnttab.cxx.
References TRISTATE_FALSE, and TRISTATE_TRUE.
IMPL_LINK | ( | SwAddStylesDlg_Impl | , |
KeyInput | , | ||
const KeyEvent & | , | ||
rKEvt | , | ||
bool | |||
) |
IMPL_LINK | ( | SwAddStylesDlg_Impl | , |
LeftRightHdl | , | ||
weld::Button & | , | ||
rBtn | , | ||
void | |||
) |
Definition at line 717 of file cnttab.cxx.
References MAXLEVEL, and TRISTATE_TRUE.
IMPL_LINK | ( | SwAddStylesDlg_Impl | , |
RadioToggleOnHdl | , | ||
const weld::TreeView::iter_col & | , | ||
rRowCol | , | ||
void | |||
) |
Definition at line 637 of file cnttab.cxx.
References i, MAXLEVEL, TRISTATE_FALSE, and TRISTATE_TRUE.
IMPL_LINK | ( | SwAddStylesDlg_Impl | , |
TreeSizeAllocHdl | , | ||
const Size & | , | ||
rSize | , | ||
void | |||
) |
Definition at line 621 of file cnttab.cxx.
References StyleSettings::GetScrollBarSize(), Application::GetSettings(), AllSettings::GetStyleSettings(), i, and MAXLEVEL.
IMPL_LINK | ( | SwTokenWindow | , |
EditResize | , | ||
SwTOXEdit & | , | ||
rEdit | , | ||
void | |||
) |
Definition at line 3383 of file cnttab.cxx.
IMPL_LINK | ( | SwTokenWindow | , |
NextItemBtnHdl | , | ||
SwTOXButton & | , | ||
rBtn | , | ||
void | |||
) |
Definition at line 3432 of file cnttab.cxx.
References SwTOXWidget::GrabFocus().
IMPL_LINK | ( | SwTokenWindow | , |
NextItemHdl | , | ||
SwTOXEdit & | , | ||
rEdit | , | ||
void | |||
) |
Definition at line 3390 of file cnttab.cxx.
References Check, and SwTOXWidget::GrabFocus().
IMPL_LINK | ( | SwTokenWindow | , |
ScrollBtnHdl | , | ||
weld::Button & | , | ||
rBtn | , | ||
void | |||
) |
Definition at line 3239 of file cnttab.cxx.
References SwTOXWidget::get_extents_relative_to(), x, and y.
IMPL_LINK | ( | SwTokenWindow | , |
TbxFocusBtnHdl | , | ||
SwTOXWidget & | , | ||
rControl | , | ||
void | |||
) |
Definition at line 3474 of file cnttab.cxx.
References SwTOXButton::Check(), and SwTOXWidget::GetType().
IMPL_LINK | ( | SwTokenWindow | , |
TbxFocusHdl | , | ||
SwTOXWidget & | , | ||
rControl | , | ||
void | |||
) |
Definition at line 3419 of file cnttab.cxx.
References SwTOXButton::Check(), and SwTOXWidget::GetType().
IMPL_LINK | ( | SwTOXButton | , |
KeyInputHdl | , | ||
const KeyEvent & | , | ||
rKEvt | , | ||
bool | |||
) |
Definition at line 1827 of file cnttab.cxx.
References vcl::KeyCode::GetCode(), vcl::KeyCode::IsMod1(), vcl::KeyCode::IsMod2(), vcl::KeyCode::IsShift(), KEY_DELETE, KEY_F3, KEY_LEFT, and KEY_RIGHT.
Definition at line 1633 of file cnttab.cxx.
References vcl::KeyCode::GetCode(), vcl::KeyCode::IsMod1(), vcl::KeyCode::IsMod2(), vcl::KeyCode::IsShift(), KEY_F3, KEY_LEFT, KEY_RIGHT, and min().
IMPL_LINK | ( | SwTOXEntryTabPage | , |
AutoRightHdl | , | ||
weld::Toggleable & | , | ||
rBox | , | ||
void | |||
) |
Definition at line 2675 of file cnttab.cxx.
References SwFormToken::eTokenType, SwTOXButton::GetFormToken(), SwTOXWidget::GetType(), and TOKEN_TAB_STOP.
IMPL_LINK | ( | SwTOXEntryTabPage | , |
ChapterInfoHdl | , | ||
weld::ComboBox & | , | ||
rBox | , | ||
void | |||
) |
Definition at line 2603 of file cnttab.cxx.
References SwTOXWidget::GetType(), and nPos.
IMPL_LINK | ( | SwTOXEntryTabPage | , |
ChapterInfoOutlineHdl | , | ||
weld::SpinButton & | , | ||
rEdit | , | ||
void | |||
) |
Definition at line 2616 of file cnttab.cxx.
References SwTOXWidget::GetType().
IMPL_LINK | ( | SwTOXEntryTabPage | , |
FillCharHdl | , | ||
weld::ComboBox & | , | ||
rBox | , | ||
void | |||
) |
Definition at line 2657 of file cnttab.cxx.
References SwFormToken::eTokenType, SwTOXButton::GetFormToken(), SwTOXWidget::GetType(), and TOKEN_TAB_STOP.
IMPL_LINK | ( | SwTOXEntryTabPage | , |
InsertTokenHdl | , | ||
weld::Button & | , | ||
rBtn | , | ||
void | |||
) |
Definition at line 2355 of file cnttab.cxx.
References CF_NUM_NOPREPST_TITLE, CF_NUMBER, SwFormToken::nChapterFormat, SwFormToken::nTabStopPosition, SwFormToken::sCharStyleName, SwResId(), TOKEN_CHAPTER_INFO, TOKEN_ENTRY, TOKEN_ENTRY_NO, TOKEN_ENTRY_TEXT, TOKEN_LINK_START, TOKEN_PAGE_NUMS, TOKEN_TAB_STOP, and TOX_CONTENT.
IMPL_LINK | ( | SwTOXEntryTabPage | , |
LevelHdl | , | ||
weld::TreeView & | , | ||
rBox | , | ||
void | |||
) |
Definition at line 2426 of file cnttab.cxx.
References AUTH_FIELD_END, i, SwResId(), TOKEN_AUTHORITY, and TOX_AUTHORITIES.
IMPL_LINK | ( | SwTOXEntryTabPage | , |
NumberFormatHdl | , | ||
weld::ComboBox & | , | ||
rBox | , | ||
void | |||
) |
Definition at line 2628 of file cnttab.cxx.
References SwTOXWidget::GetType(), and nPos.
IMPL_LINK | ( | SwTOXEntryTabPage | , |
RemoveInsertAuthHdl | , | ||
weld::Button & | , | ||
rButton | , | ||
void | |||
) |
Definition at line 2313 of file cnttab.cxx.
References SwTOXWidget::GetType(), SwFormToken::nAuthorityField, and TOKEN_AUTHORITY.
IMPL_LINK | ( | SwTOXEntryTabPage | , |
StyleSelectHdl | , | ||
weld::ComboBox & | , | ||
rBox | , | ||
void | |||
) |
Definition at line 2582 of file cnttab.cxx.
References SwTOXWidget::GetType(), and nId.
IMPL_LINK | ( | SwTOXEntryTabPage | , |
TabPosHdl | , | ||
weld::MetricSpinButton & | , | ||
rEdit | , | ||
void | |||
) |
Definition at line 2643 of file cnttab.cxx.
References SwFormToken::eTokenType, SwTOXButton::GetFormToken(), SwTOXWidget::GetType(), and TOKEN_TAB_STOP.
IMPL_LINK | ( | SwTOXEntryTabPage | , |
ToggleHdl | , | ||
weld::Toggleable & | , | ||
rToggle | , | ||
void | |||
) |
Definition at line 2080 of file cnttab.cxx.
IMPL_LINK | ( | SwTOXEntryTabPage | , |
TokenSelectedHdl | , | ||
SwFormToken & | , | ||
rToken | , | ||
void | |||
) |
Definition at line 2469 of file cnttab.cxx.
References CF_NUM_NOPREPST_TITLE, CF_NUMBER_NOPREPST, CF_TITLE, TOKEN_CHAPTER_INFO, TOKEN_ENTRY, TOKEN_ENTRY_NO, TOKEN_ENTRY_TEXT, TOKEN_LINK_END, TOKEN_LINK_START, TOKEN_PAGE_NUMS, TOKEN_TAB_STOP, and TOKEN_TEXT.
IMPL_LINK | ( | SwTOXSelectTabPage | , |
CheckBoxHdl | , | ||
weld::Toggleable & | , | ||
rButton | , | ||
void | |||
) |
Definition at line 1386 of file cnttab.cxx.
References CurTOXType::eType, SwMultiTOXTabDialog::GetCurrentTOXType(), TOX_CONTENT, TOX_ILLUSTRATIONS, TOX_INDEX, TOX_OBJECTS, TOX_TABLES, and TOX_USER.
IMPL_LINK | ( | SwTOXSelectTabPage | , |
LanguageListBoxHdl | , | ||
weld::ComboBox & | , | ||
rBox | , | ||
void | |||
) |
Definition at line 1431 of file cnttab.cxx.
IMPL_LINK | ( | SwTOXSelectTabPage | , |
MenuExecuteHdl | , | ||
const OUString & | , | ||
rIdent | , | ||
void | |||
) |
Definition at line 1477 of file cnttab.cxx.
References GetFrameWeld(), lcl_CreateAutoMarkFileDlg(), and RET_OK.
IMPL_LINK | ( | SwTOXSelectTabPage | , |
TOXTypeHdl | , | ||
weld::ComboBox & | , | ||
rBox | , | ||
void | |||
) |
Definition at line 1294 of file cnttab.cxx.
References SwStyleNameMapper::GetUIName(), lcl_UserData2TOXTypes(), nType, RES_POOLCOLL_LABEL_FIGURE, RES_POOLCOLL_LABEL_TABLE, SwMultiTOXTabDialog::SetCurrentTOXType(), sName, TO_AUTHORITIES, TO_CONTENT, TO_ILLUSTRATION, TO_INDEX, TO_OBJECT, TO_TABLE, and TO_USER.
IMPL_LINK_NOARG | ( | SwAddStylesDlg_Impl | , |
OkHdl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 687 of file cnttab.cxx.
References i, m_xDialog, MAXLEVEL, RET_OK, TOX_STYLE_DELIMITER, and TRISTATE_TRUE.
IMPL_LINK_NOARG | ( | SwAutoMarkDlg_Impl | , |
OkHdl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 4099 of file cnttab.cxx.
References SfxMedium::Commit(), SvStream::GetError(), SfxMedium::GetOutStream(), m_xDialog, RET_OK, and SvStream::SetStreamCharSet().
IMPL_LINK_NOARG | ( | SwMultiTOXTabDialog | , |
ShowPreviewHdl | , | ||
weld::Toggleable & | , | ||
void | |||
) |
Definition at line 461 of file cnttab.cxx.
References m_xDialog, and ShowPreview.
IMPL_LINK_NOARG | ( | SwTokenWindow | , |
AdjustPositionsHdl | , | ||
const Size & | , | ||
void | |||
) |
Definition at line 3181 of file cnttab.cxx.
IMPL_LINK_NOARG | ( | SwTokenWindow | , |
ScrollHdl | , | ||
weld::ScrolledWindow & | , | ||
void | |||
) |
Definition at line 3198 of file cnttab.cxx.
IMPL_LINK_NOARG | ( | SwTOXButton | , |
FocusInHdl | , | ||
weld::Widget & | , | ||
void | |||
) |
Definition at line 1861 of file cnttab.cxx.
IMPL_LINK_NOARG | ( | SwTOXEdit | , |
FocusInHdl | , | ||
weld::Widget & | , | ||
void | |||
) |
Definition at line 1669 of file cnttab.cxx.
IMPL_LINK_NOARG | ( | SwTOXEdit | , |
ModifyHdl | , | ||
weld::Entry & | , | ||
void | |||
) |
Definition at line 1628 of file cnttab.cxx.
IMPL_LINK_NOARG | ( | SwTOXEntryTabPage | , |
AllLevelsHdl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 2401 of file cnttab.cxx.
References i.
IMPL_LINK_NOARG | ( | SwTOXEntryTabPage | , |
EditStyleHdl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 2300 of file cnttab.cxx.
IMPL_LINK_NOARG | ( | SwTOXEntryTabPage | , |
ModifyClickHdl | , | ||
weld::Toggleable & | , | ||
void | |||
) |
Definition at line 2070 of file cnttab.cxx.
IMPL_LINK_NOARG | ( | SwTOXEntryTabPage | , |
ModifyHdl | , | ||
LinkParamNone * | , | ||
void | |||
) |
Definition at line 2075 of file cnttab.cxx.
IMPL_LINK_NOARG | ( | SwTOXEntryTabPage | , |
SortKeyHdl | , | ||
weld::Toggleable & | , | ||
void | |||
) |
Definition at line 2463 of file cnttab.cxx.
IMPL_LINK_NOARG | ( | SwTOXSelectTabPage | , |
AddStylesHdl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 1464 of file cnttab.cxx.
References GetFrameWeld().
IMPL_LINK_NOARG | ( | SwTOXSelectTabPage | , |
MenuEnableHdl | , | ||
weld::Toggleable & | , | ||
void | |||
) |
Definition at line 1472 of file cnttab.cxx.
IMPL_LINK_NOARG | ( | SwTOXSelectTabPage | , |
ModifyEntryHdl | , | ||
weld::Entry & | , | ||
void | |||
) |
Definition at line 1376 of file cnttab.cxx.
IMPL_LINK_NOARG | ( | SwTOXSelectTabPage | , |
ModifyListBoxHdl | , | ||
weld::ComboBox & | , | ||
void | |||
) |
Definition at line 1371 of file cnttab.cxx.
IMPL_LINK_NOARG | ( | SwTOXSelectTabPage | , |
ModifySpinHdl | , | ||
weld::SpinButton & | , | ||
void | |||
) |
Definition at line 1381 of file cnttab.cxx.
IMPL_LINK_NOARG | ( | SwTOXSelectTabPage | , |
RadioButtonHdl | , | ||
weld::Toggleable & | , | ||
void | |||
) |
Definition at line 1421 of file cnttab.cxx.
IMPL_LINK_NOARG | ( | SwTOXStylesTabPage | , |
AssignHdl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 3654 of file cnttab.cxx.
References aDeliEnd, aDeliStart, aStr, o3tl::getToken(), and Modify.
IMPL_LINK_NOARG | ( | SwTOXStylesTabPage | , |
DoubleClickHdl | , | ||
weld::TreeView & | , | ||
bool | |||
) |
Definition at line 3688 of file cnttab.cxx.
References SwMultiTOXTabDialog::IsNoNum().
IMPL_LINK_NOARG | ( | SwTOXStylesTabPage | , |
EditStyleHdl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 3640 of file cnttab.cxx.
References SfxDispatcher::ExecuteList(), SfxViewFrame::GetDispatcher(), SwWrtShell::GetView(), and SfxViewShell::GetViewFrame().
IMPL_LINK_NOARG | ( | SwTOXStylesTabPage | , |
EnableSelectHdl | , | ||
weld::TreeView & | , | ||
void | |||
) |
Definition at line 3701 of file cnttab.cxx.
References SwMultiTOXTabDialog::IsNoNum().
IMPL_LINK_NOARG | ( | SwTOXStylesTabPage | , |
StdHdl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 3674 of file cnttab.cxx.
References aDeliStart, aStr, Modify, and nPos.
|
static |
Definition at line 84 of file cnttab.cxx.
References ERRCODE_ABORT, ERRCODE_NONE, and SvtPathOptions::GetUserConfigPath().
Referenced by IMPL_LINK().
|
static |
Definition at line 897 of file cnttab.cxx.
References eType, TO_AUTHORITIES, TO_BIBLIOGRAPHY, TO_CONTENT, TO_ILLUSTRATION, TO_INDEX, TO_OBJECT, TO_TABLE, TO_USER, TOX_AUTHORITIES, TOX_BIBLIOGRAPHY, TOX_CITATION, TOX_CONTENT, TOX_ILLUSTRATIONS, TOX_INDEX, TOX_OBJECTS, TOX_TABLES, and TOX_USER.
Referenced by SwTOXSelectTabPage::Reset(), and SwTOXSelectTabPage::SelectType().
|
static |
Definition at line 931 of file cnttab.cxx.
References CurTOXType::eType, CurTOXType::nIndex, TO_AUTHORITIES, TO_BIBLIOGRAPHY, TO_CONTENT, TO_ILLUSTRATION, TO_INDEX, TO_OBJECT, TO_TABLE, TO_USER, TOX_AUTHORITIES, TOX_BIBLIOGRAPHY, TOX_CONTENT, TOX_ILLUSTRATIONS, TOX_INDEX, TOX_OBJECTS, TOX_TABLES, and TOX_USER.
Referenced by IMPL_LINK().
const sal_Unicode aDeliEnd = ']' |
Definition at line 82 of file cnttab.cxx.
Referenced by SwTOXStylesTabPage::ActivatePage(), and IMPL_LINK_NOARG().
const sal_Unicode aDeliStart = '[' |
Definition at line 81 of file cnttab.cxx.
Referenced by SwTOXStylesTabPage::ActivatePage(), and IMPL_LINK_NOARG().
const TranslateId STR_TOKEN_ARY[] |
Definition at line 2710 of file cnttab.cxx.
Referenced by SwTokenWindow::SwTokenWindow().
const TranslateId STR_TOKEN_HELP_ARY[] |
Definition at line 2724 of file cnttab.cxx.
Referenced by SwTokenWindow::SwTokenWindow().