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 <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 3574 of file cnttab.cxx.
#define ITEM_CASE 6 |
Definition at line 3578 of file cnttab.cxx.
#define ITEM_COMMENT 5 |
Definition at line 3577 of file cnttab.cxx.
#define ITEM_PRIM_KEY 3 |
Definition at line 3575 of file cnttab.cxx.
#define ITEM_SEARCH 1 |
Definition at line 3573 of file cnttab.cxx.
#define ITEM_SEC_KEY 4 |
Definition at line 3576 of file cnttab.cxx.
#define ITEM_WORDONLY 7 |
Definition at line 3579 of file cnttab.cxx.
typedef ::svt::EditBrowseBox SwEntryBrowseBox_Base |
Definition at line 131 of file cnttab.cxx.
Definition at line 587 of file cnttab.cxx.
References StyleSettings::GetScrollBarSize(), Application::GetSettings(), AllSettings::GetStyleSettings(), i, and MAXLEVEL.
IMPL_LINK | ( | SwAddStylesDlg_Impl | , |
RadioToggleOnHdl | , | ||
const weld::TreeView::iter_col & | , | ||
rRowCol | , | ||
void | |||
) |
Definition at line 603 of file cnttab.cxx.
References i, MAXLEVEL, TRISTATE_FALSE, and TRISTATE_TRUE.
IMPL_LINK | ( | SwAddStylesDlg_Impl | , |
KeyInput | , | ||
const KeyEvent & | , | ||
rKEvt | , | ||
bool | |||
) |
Definition at line 612 of file cnttab.cxx.
References vcl::KeyCode::GetCode(), KEY_ADD, KEY_LEFT, KEY_RIGHT, and KEY_SUBTRACT.
IMPL_LINK | ( | SwAddStylesDlg_Impl | , |
LeftRightHdl | , | ||
weld::Button & | , | ||
rBtn | , | ||
void | |||
) |
Definition at line 661 of file cnttab.cxx.
References MAXLEVEL, TRISTATE_FALSE, and TRISTATE_TRUE.
IMPL_LINK | ( | SwTOXSelectTabPage | , |
TOXTypeHdl | , | ||
weld::ComboBox & | , | ||
rBox | , | ||
void | |||
) |
Definition at line 1174 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 | ( | SwTOXSelectTabPage | , |
CheckBoxHdl | , | ||
weld::Toggleable & | , | ||
rButton | , | ||
void | |||
) |
Definition at line 1264 of file cnttab.cxx.
References CurTOXType::eType, SwMultiTOXTabDialog::GetCurrentTOXType(), TOX_CONTENT, TOX_INDEX, and TOX_USER.
IMPL_LINK | ( | SwTOXSelectTabPage | , |
LanguageListBoxHdl | , | ||
weld::ComboBox & | , | ||
rBox | , | ||
void | |||
) |
Definition at line 1302 of file cnttab.cxx.
IMPL_LINK | ( | SwTOXSelectTabPage | , |
MenuExecuteHdl | , | ||
const OString & | , | ||
rIdent | , | ||
void | |||
) |
Definition at line 1348 of file cnttab.cxx.
References GetFrameWeld(), lcl_CreateAutoMarkFileDlg(), and RET_OK.
Definition at line 1504 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 | ( | SwTOXButton | , |
KeyInputHdl | , | ||
const KeyEvent & | , | ||
rKEvt | , | ||
bool | |||
) |
Definition at line 1698 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.
IMPL_LINK | ( | SwTOXEntryTabPage | , |
ToggleHdl | , | ||
weld::Toggleable & | , | ||
rToggle | , | ||
void | |||
) |
Definition at line 1939 of file cnttab.cxx.
IMPL_LINK | ( | SwTOXEntryTabPage | , |
RemoveInsertAuthHdl | , | ||
weld::Button & | , | ||
rButton | , | ||
void | |||
) |
Definition at line 2163 of file cnttab.cxx.
References SwTOXWidget::GetType(), and TOKEN_AUTHORITY.
IMPL_LINK | ( | SwTOXEntryTabPage | , |
InsertTokenHdl | , | ||
weld::Button & | , | ||
rBtn | , | ||
void | |||
) |
Definition at line 2205 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 2276 of file cnttab.cxx.
References AUTH_FIELD_END, i, SwResId(), TOKEN_AUTHORITY, and TOX_AUTHORITIES.
IMPL_LINK | ( | SwTOXEntryTabPage | , |
TokenSelectedHdl | , | ||
SwFormToken & | , | ||
rToken | , | ||
void | |||
) |
Definition at line 2319 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 | ( | SwTOXEntryTabPage | , |
StyleSelectHdl | , | ||
weld::ComboBox & | , | ||
rBox | , | ||
void | |||
) |
Definition at line 2432 of file cnttab.cxx.
References SwTOXWidget::GetType(), and nId.
IMPL_LINK | ( | SwTOXEntryTabPage | , |
ChapterInfoHdl | , | ||
weld::ComboBox & | , | ||
rBox | , | ||
void | |||
) |
Definition at line 2453 of file cnttab.cxx.
References SwTOXWidget::GetType(), and nPos.
IMPL_LINK | ( | SwTOXEntryTabPage | , |
ChapterInfoOutlineHdl | , | ||
weld::SpinButton & | , | ||
rEdit | , | ||
void | |||
) |
Definition at line 2466 of file cnttab.cxx.
References SwTOXWidget::GetType(), and rEdit.
IMPL_LINK | ( | SwTOXEntryTabPage | , |
NumberFormatHdl | , | ||
weld::ComboBox & | , | ||
rBox | , | ||
void | |||
) |
Definition at line 2478 of file cnttab.cxx.
References SwTOXWidget::GetType(), and nPos.
IMPL_LINK | ( | SwTOXEntryTabPage | , |
TabPosHdl | , | ||
weld::MetricSpinButton & | , | ||
rEdit | , | ||
void | |||
) |
Definition at line 2493 of file cnttab.cxx.
References SwTOXWidget::GetType(), rEdit, and TOKEN_TAB_STOP.
IMPL_LINK | ( | SwTOXEntryTabPage | , |
FillCharHdl | , | ||
weld::ComboBox & | , | ||
rBox | , | ||
void | |||
) |
Definition at line 2507 of file cnttab.cxx.
References SwTOXWidget::GetType(), and TOKEN_TAB_STOP.
IMPL_LINK | ( | SwTOXEntryTabPage | , |
AutoRightHdl | , | ||
weld::Toggleable & | , | ||
rBox | , | ||
void | |||
) |
Definition at line 2525 of file cnttab.cxx.
References SwTOXWidget::GetType(), and TOKEN_TAB_STOP.
IMPL_LINK | ( | SwTokenWindow | , |
ScrollBtnHdl | , | ||
weld::Button & | , | ||
rBtn | , | ||
void | |||
) |
Definition at line 3089 of file cnttab.cxx.
References SwTOXWidget::get_extents_relative_to(), x, and y.
IMPL_LINK | ( | SwTokenWindow | , |
EditResize | , | ||
SwTOXEdit & | , | ||
rEdit | , | ||
void | |||
) |
Definition at line 3233 of file cnttab.cxx.
References rEdit.
IMPL_LINK | ( | SwTokenWindow | , |
NextItemHdl | , | ||
SwTOXEdit & | , | ||
rEdit | , | ||
void | |||
) |
Definition at line 3240 of file cnttab.cxx.
References Check, SwTOXWidget::GrabFocus(), and rEdit.
IMPL_LINK | ( | SwTokenWindow | , |
TbxFocusHdl | , | ||
SwTOXWidget & | , | ||
rControl | , | ||
void | |||
) |
Definition at line 3269 of file cnttab.cxx.
References SwTOXWidget::GetType().
IMPL_LINK | ( | SwTokenWindow | , |
NextItemBtnHdl | , | ||
SwTOXButton & | , | ||
rBtn | , | ||
void | |||
) |
Definition at line 3282 of file cnttab.cxx.
References SwTOXWidget::GrabFocus().
IMPL_LINK | ( | SwTokenWindow | , |
TbxFocusBtnHdl | , | ||
SwTOXWidget & | , | ||
rControl | , | ||
void | |||
) |
Definition at line 3324 of file cnttab.cxx.
References SwTOXWidget::GetType().
IMPL_LINK_NOARG | ( | SwMultiTOXTabDialog | , |
ShowPreviewHdl | , | ||
weld::Toggleable & | , | ||
void | |||
) |
Definition at line 454 of file cnttab.cxx.
References m_xDialog, and ShowPreview.
IMPL_LINK_NOARG | ( | SwAddStylesDlg_Impl | , |
OkHdl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 631 of file cnttab.cxx.
References i, m_xDialog, MAXLEVEL, RET_OK, TOX_STYLE_DELIMITER, and TRISTATE_TRUE.
IMPL_LINK_NOARG | ( | SwTOXSelectTabPage | , |
ModifyListBoxHdl | , | ||
weld::ComboBox & | , | ||
void | |||
) |
Definition at line 1249 of file cnttab.cxx.
IMPL_LINK_NOARG | ( | SwTOXSelectTabPage | , |
ModifyEntryHdl | , | ||
weld::Entry & | , | ||
void | |||
) |
Definition at line 1254 of file cnttab.cxx.
IMPL_LINK_NOARG | ( | SwTOXSelectTabPage | , |
ModifySpinHdl | , | ||
weld::SpinButton & | , | ||
void | |||
) |
Definition at line 1259 of file cnttab.cxx.
IMPL_LINK_NOARG | ( | SwTOXSelectTabPage | , |
RadioButtonHdl | , | ||
weld::Toggleable & | , | ||
void | |||
) |
Definition at line 1292 of file cnttab.cxx.
IMPL_LINK_NOARG | ( | SwTOXSelectTabPage | , |
AddStylesHdl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 1335 of file cnttab.cxx.
References GetFrameWeld().
IMPL_LINK_NOARG | ( | SwTOXSelectTabPage | , |
MenuEnableHdl | , | ||
weld::Toggleable & | , | ||
void | |||
) |
Definition at line 1343 of file cnttab.cxx.
IMPL_LINK_NOARG | ( | SwTOXEdit | , |
ModifyHdl | , | ||
weld::Entry & | , | ||
void | |||
) |
Definition at line 1499 of file cnttab.cxx.
IMPL_LINK_NOARG | ( | SwTOXEdit | , |
FocusInHdl | , | ||
weld::Widget & | , | ||
void | |||
) |
Definition at line 1540 of file cnttab.cxx.
IMPL_LINK_NOARG | ( | SwTOXButton | , |
FocusInHdl | , | ||
weld::Widget & | , | ||
void | |||
) |
Definition at line 1732 of file cnttab.cxx.
IMPL_LINK_NOARG | ( | SwTOXEntryTabPage | , |
ModifyClickHdl | , | ||
weld::Toggleable & | , | ||
void | |||
) |
Definition at line 1929 of file cnttab.cxx.
IMPL_LINK_NOARG | ( | SwTOXEntryTabPage | , |
ModifyHdl | , | ||
LinkParamNone * | , | ||
void | |||
) |
Definition at line 1934 of file cnttab.cxx.
IMPL_LINK_NOARG | ( | SwTOXEntryTabPage | , |
EditStyleHdl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 2150 of file cnttab.cxx.
IMPL_LINK_NOARG | ( | SwTOXEntryTabPage | , |
AllLevelsHdl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 2251 of file cnttab.cxx.
References i.
IMPL_LINK_NOARG | ( | SwTOXEntryTabPage | , |
SortKeyHdl | , | ||
weld::Toggleable & | , | ||
void | |||
) |
Definition at line 2313 of file cnttab.cxx.
IMPL_LINK_NOARG | ( | SwTokenWindow | , |
AdjustPositionsHdl | , | ||
const Size & | , | ||
void | |||
) |
Definition at line 3031 of file cnttab.cxx.
IMPL_LINK_NOARG | ( | SwTokenWindow | , |
ScrollHdl | , | ||
weld::ScrolledWindow & | , | ||
void | |||
) |
Definition at line 3048 of file cnttab.cxx.
IMPL_LINK_NOARG | ( | SwTOXStylesTabPage | , |
EditStyleHdl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 3490 of file cnttab.cxx.
References SfxDispatcher::ExecuteList(), SfxViewFrame::GetDispatcher(), SwWrtShell::GetView(), and SfxViewShell::GetViewFrame().
IMPL_LINK_NOARG | ( | SwTOXStylesTabPage | , |
AssignHdl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 3504 of file cnttab.cxx.
References aDeliEnd, aDeliStart, aStr, o3tl::getToken(), and Modify.
IMPL_LINK_NOARG | ( | SwTOXStylesTabPage | , |
StdHdl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 3524 of file cnttab.cxx.
References aDeliStart, aStr, Modify, and nPos.
IMPL_LINK_NOARG | ( | SwTOXStylesTabPage | , |
DoubleClickHdl | , | ||
weld::TreeView & | , | ||
bool | |||
) |
Definition at line 3538 of file cnttab.cxx.
References SwMultiTOXTabDialog::IsNoNum().
IMPL_LINK_NOARG | ( | SwTOXStylesTabPage | , |
EnableSelectHdl | , | ||
weld::TreeView & | , | ||
void | |||
) |
Definition at line 3551 of file cnttab.cxx.
References SwMultiTOXTabDialog::IsNoNum().
IMPL_LINK_NOARG | ( | SwAutoMarkDlg_Impl | , |
OkHdl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 3949 of file cnttab.cxx.
References SfxMedium::Commit(), SvStream::GetError(), SfxMedium::GetOutStream(), m_xDialog, RET_OK, and SvStream::SetStreamCharSet().
|
static |
Definition at line 83 of file cnttab.cxx.
References ERRCODE_NONE, and SvtPathOptions::GetUserConfigPath().
Referenced by IMPL_LINK().
|
static |
Definition at line 832 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_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 866 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 81 of file cnttab.cxx.
Referenced by SwTOXStylesTabPage::ActivatePage(), and IMPL_LINK_NOARG().
const sal_Unicode aDeliStart = '[' |
Definition at line 80 of file cnttab.cxx.
Referenced by SwTOXStylesTabPage::ActivatePage(), and IMPL_LINK_NOARG().
const TranslateId STR_TOKEN_ARY[] |
Definition at line 2560 of file cnttab.cxx.
const TranslateId STR_TOKEN_HELP_ARY[] |
Definition at line 2574 of file cnttab.cxx.