| 1 | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
| 2 | /* |
| 3 | * This file is part of the LibreOffice project. |
| 4 | * |
| 5 | * This Source Code Form is subject to the terms of the Mozilla Public |
| 6 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 7 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| 8 | * |
| 9 | * This file incorporates work covered by the following license notice: |
| 10 | * |
| 11 | * Licensed to the Apache Software Foundation (ASF) under one or more |
| 12 | * contributor license agreements. See the NOTICE file distributed |
| 13 | * with this work for additional information regarding copyright |
| 14 | * ownership. The ASF licenses this file to you under the Apache |
| 15 | * License, Version 2.0 (the "License"); you may not use this file |
| 16 | * except in compliance with the License. You may obtain a copy of |
| 17 | * the License at http://www.apache.org/licenses/LICENSE-2.0 . |
| 18 | */ |
| 19 | #ifndef INCLUDED_SW_INC_SWABSTDLG_HXX |
| 20 | #define INCLUDED_SW_INC_SWABSTDLG_HXX |
| 21 | |
| 22 | #include <editeng/svxenum.hxx> |
| 23 | #include <rtl/ustring.hxx> |
| 24 | #include <sfx2/sfxdlg.hxx> |
| 25 | #include <com/sun/star/uno/Reference.h> |
| 26 | #include <com/sun/star/uno/Sequence.h> |
| 27 | #include <optional> |
| 28 | #include "dbmgr.hxx" |
| 29 | #include <cnttab.hxx> |
| 30 | #include "tblenum.hxx" |
| 31 | |
| 32 | class SfxViewFrame; |
| 33 | class SfxBindings; |
| 34 | class SfxItemSet; |
| 35 | class SfxStyleSheetBase; |
| 36 | class SwGlossaryHdl; |
| 37 | class SwField; |
| 38 | |
| 39 | class SwAsciiOptions; |
| 40 | class SwDoc; |
| 41 | class SwDocShell; |
| 42 | class SvStream; |
| 43 | class SwWrtShell; |
| 44 | class SwView; |
| 45 | class SwTableAutoFormat; |
| 46 | class SwTOXMgr; |
| 47 | class SwTOXDescription; |
| 48 | class SwTOXBase; |
| 49 | class SwSectionData; |
| 50 | struct SwDBData; |
| 51 | class Printer; |
| 52 | class SwLabItem; |
| 53 | class SwChildWinWrapper; |
| 54 | struct SfxChildWinInfo; |
| 55 | class SwTOXMark; |
| 56 | struct SwDocStat; |
| 57 | struct SwInsertTableOptions; |
| 58 | enum class SwBorderModes; |
| 59 | enum class SwCharDlgMode; |
| 60 | enum class SfxStyleFamily; |
| 61 | enum class SwLineBreakClear; |
| 62 | class SwContentControlListItem; |
| 63 | |
| 64 | namespace com::sun::star{ |
| 65 | namespace frame{ |
| 66 | class XModel; |
| 67 | } |
| 68 | namespace sdbcx{ |
| 69 | class XColumnsSupplier; |
| 70 | } |
| 71 | namespace sdbc{ |
| 72 | class XDataSource; |
| 73 | class XConnection; |
| 74 | class XResultSet; |
| 75 | } |
| 76 | namespace container { class XNameAccess; } |
| 77 | namespace container { class XNamed; } |
| 78 | } |
| 79 | |
| 80 | |
| 81 | namespace sw::mark { class Fieldmark; class DateFieldmark; } |
| 82 | |
| 83 | typedef void (*SwLabDlgMethod) (css::uno::Reference< css::frame::XModel> const & xModel, const SwLabItem& rItem); |
| 84 | |
| 85 | typedef OUString (*GlossaryGetCurrGroup)(); |
| 86 | typedef void (*GlossarySetActGroup)(const OUString& rNewGroup); |
| 87 | |
| 88 | class AbstractGlossaryDlg : public VclAbstractDialog |
| 89 | { |
| 90 | protected: |
| 91 | virtual ~AbstractGlossaryDlg() override = default; |
| 92 | public: |
| 93 | virtual void Apply() = 0; |
| 94 | virtual OUString GetCurrGrpName() const = 0; |
| 95 | virtual OUString GetCurrShortName() const = 0; |
| 96 | }; |
| 97 | |
| 98 | class AbstractFieldInputDlg : public VclAbstractTerminatedDialog |
| 99 | { |
| 100 | protected: |
| 101 | virtual ~AbstractFieldInputDlg() override = default; |
| 102 | public: |
| 103 | virtual void EndDialog(sal_Int32 nResult) override = 0; |
| 104 | virtual bool PrevButtonPressed() const = 0; |
| 105 | virtual bool NextButtonPressed() const = 0; |
| 106 | }; |
| 107 | |
| 108 | class AbstractInsFootNoteDlg : public VclAbstractDialog |
| 109 | { |
| 110 | protected: |
| 111 | virtual ~AbstractInsFootNoteDlg() override = default; |
| 112 | public: |
| 113 | virtual void Apply() = 0; |
| 114 | virtual OUString GetFontName() = 0; |
| 115 | virtual bool IsEndNote() = 0; |
| 116 | virtual OUString GetStr() = 0; |
| 117 | virtual void SetHelpId( const OUString& sHelpId ) = 0; |
| 118 | virtual void SetText( const OUString& rStr ) = 0; |
| 119 | }; |
| 120 | |
| 121 | class AbstractInsTableDlg |
| 122 | { |
| 123 | protected: |
| 124 | virtual ~AbstractInsTableDlg() = default; |
| 125 | public: |
| 126 | virtual void GetValues( OUString& rName, sal_uInt16& rRow, sal_uInt16& rCol, |
| 127 | SwInsertTableOptions& rInsTableFlags, OUString& rTableAutoFormatName, |
| 128 | std::unique_ptr<SwTableAutoFormat>& prTAFormat ) = 0; |
| 129 | virtual std::shared_ptr<weld::DialogController> getDialogController() = 0; |
| 130 | }; |
| 131 | |
| 132 | class AbstractJavaEditDialog : public VclAbstractDialog |
| 133 | { |
| 134 | protected: |
| 135 | virtual ~AbstractJavaEditDialog() override = default; |
| 136 | public: |
| 137 | virtual OUString GetScriptText() const = 0; |
| 138 | virtual OUString GetScriptType() const = 0; |
| 139 | virtual bool IsUrl() const = 0; |
| 140 | virtual bool IsNew() const = 0; |
| 141 | virtual bool IsUpdate() const = 0; |
| 142 | }; |
| 143 | |
| 144 | class AbstractMailMergeDlg : public VclAbstractDialog |
| 145 | { |
| 146 | protected: |
| 147 | virtual ~AbstractMailMergeDlg() override = default; |
| 148 | public: |
| 149 | virtual DBManagerOptions GetMergeType() = 0; |
| 150 | virtual const OUString& GetSaveFilter() const = 0; |
| 151 | virtual css::uno::Sequence< css::uno::Any > GetSelection() const = 0; |
| 152 | virtual css::uno::Reference< css::sdbc::XResultSet> GetResultSet() const = 0; |
| 153 | virtual bool IsSaveSingleDoc() const = 0; |
| 154 | virtual bool IsGenerateFromDataBase() const = 0; |
| 155 | virtual bool IsFileEncryptedFromDataBase() const = 0; |
| 156 | virtual OUString GetColumnName() const = 0; |
| 157 | virtual OUString GetPasswordColumnName() const = 0; |
| 158 | virtual OUString GetTargetURL() const = 0; |
| 159 | }; |
| 160 | |
| 161 | class AbstractMailMergeCreateFromDlg : public VclAbstractDialog |
| 162 | { |
| 163 | protected: |
| 164 | virtual ~AbstractMailMergeCreateFromDlg() override = default; |
| 165 | public: |
| 166 | virtual bool IsThisDocument() const = 0; |
| 167 | }; |
| 168 | |
| 169 | class AbstractMailMergeFieldConnectionsDlg : public VclAbstractDialog |
| 170 | { |
| 171 | protected: |
| 172 | virtual ~AbstractMailMergeFieldConnectionsDlg() override = default; |
| 173 | public: |
| 174 | virtual bool IsUseExistingConnections() const = 0; |
| 175 | }; |
| 176 | |
| 177 | class AbstractMultiTOXTabDialog : public VclAbstractDialog |
| 178 | { |
| 179 | protected: |
| 180 | virtual ~AbstractMultiTOXTabDialog() override = default; |
| 181 | public: |
| 182 | virtual CurTOXType GetCurrentTOXType() const = 0; |
| 183 | virtual SwTOXDescription& GetTOXDescription(CurTOXType eTOXTypes) = 0; |
| 184 | //from SfxTabDialog |
| 185 | virtual const SfxItemSet* GetOutputItemSet() const = 0; |
| 186 | }; |
| 187 | |
| 188 | class AbstractEditRegionDlg : public VclAbstractDialog |
| 189 | { |
| 190 | protected: |
| 191 | virtual ~AbstractEditRegionDlg() override = default; |
| 192 | public: |
| 193 | virtual void SelectSection(const OUString& rSectionName) = 0; |
| 194 | }; |
| 195 | |
| 196 | class AbstractInsertSectionTabDialog : public VclAbstractDialog |
| 197 | { |
| 198 | protected: |
| 199 | virtual ~AbstractInsertSectionTabDialog() override = default; |
| 200 | public: |
| 201 | virtual void SetSectionData(SwSectionData const& rSect) = 0; |
| 202 | }; |
| 203 | |
| 204 | class AbstractSwWordCountFloatDlg : public VclAbstractDialog |
| 205 | { |
| 206 | protected: |
| 207 | virtual ~AbstractSwWordCountFloatDlg() override = default; |
| 208 | public: |
| 209 | virtual void UpdateCounts() = 0; |
| 210 | virtual void SetCounts(const SwDocStat &rCurrCnt, const SwDocStat &rDocStat) = 0; |
| 211 | virtual std::shared_ptr<SfxDialogController> GetController() = 0; |
| 212 | }; |
| 213 | |
| 214 | class AbstractSwInsertAbstractDlg : public VclAbstractDialog |
| 215 | { |
| 216 | protected: |
| 217 | virtual ~AbstractSwInsertAbstractDlg() override = default; |
| 218 | public: |
| 219 | virtual sal_uInt8 GetLevel() const = 0; |
| 220 | virtual sal_uInt8 GetPara() const = 0; |
| 221 | }; |
| 222 | |
| 223 | class AbstractSwAsciiFilterDlg : public VclAbstractDialog |
| 224 | { |
| 225 | protected: |
| 226 | virtual ~AbstractSwAsciiFilterDlg() override = default; |
| 227 | public: |
| 228 | virtual void FillOptions( SwAsciiOptions& rOptions ) = 0; |
| 229 | |
| 230 | }; |
| 231 | |
| 232 | /// Interface for the insert -> fields -> page number wizard dialog |
| 233 | class AbstractSwPageNumberDlg : public VclAbstractDialog |
| 234 | { |
| 235 | protected: |
| 236 | virtual ~AbstractSwPageNumberDlg() override = default; |
| 237 | public: |
| 238 | virtual int GetPageNumberPosition() const = 0; |
| 239 | virtual int GetPageNumberAlignment() const = 0; |
| 240 | virtual bool GetMirrorOnEvenPages() const = 0; |
| 241 | virtual bool GetIncludePageTotal() const = 0; |
| 242 | virtual bool GetIncludePageRangeTotal() const = 0; |
| 243 | virtual bool GetFitIntoExistingMargins() const = 0; |
| 244 | virtual SvxNumType GetPageNumberType() const = 0; |
| 245 | virtual void SetPageNumberType(SvxNumType nSet) = 0; |
| 246 | }; |
| 247 | |
| 248 | /** |
| 249 | * Interface for the insert -> more breaks -> manual break dialog. It's implemented by |
| 250 | * AbstractSwBreakDlg_Impl, but SwTextShell only knows about this interface and the |
| 251 | * SwAbstractDialogFactory::CreateSwBreakDlg() factory. |
| 252 | */ |
| 253 | class AbstractSwBreakDlg |
| 254 | { |
| 255 | protected: |
| 256 | virtual ~AbstractSwBreakDlg() = default; |
| 257 | public: |
| 258 | virtual OUString GetTemplateName() = 0; |
| 259 | virtual sal_uInt16 GetKind() = 0; |
| 260 | virtual ::std::optional<sal_uInt16> GetPageNumber() = 0; |
| 261 | virtual std::optional<SwLineBreakClear> GetClear() = 0; |
| 262 | |
| 263 | virtual std::shared_ptr<weld::DialogController> getDialogController() = 0; |
| 264 | }; |
| 265 | |
| 266 | class AbstractSplitTableDialog : public VclAbstractDialog // add for |
| 267 | { |
| 268 | protected: |
| 269 | virtual ~AbstractSplitTableDialog() override = default; |
| 270 | public: |
| 271 | virtual SplitTable_HeadlineOption GetSplitMode() = 0; |
| 272 | }; |
| 273 | |
| 274 | class AbstractSwConvertTableDlg : public VclAbstractDialog |
| 275 | { |
| 276 | protected: |
| 277 | virtual ~AbstractSwConvertTableDlg() override = default; |
| 278 | public: |
| 279 | virtual void GetValues( sal_Unicode& rDelim, |
| 280 | SwInsertTableOptions& rInsTableFlags, |
| 281 | SwTableAutoFormat const*& prTAFormat ) = 0; |
| 282 | }; |
| 283 | |
| 284 | class AbstractSwInsertDBColAutoPilot : public VclAbstractDialog |
| 285 | { |
| 286 | protected: |
| 287 | virtual ~AbstractSwInsertDBColAutoPilot() override = default; |
| 288 | public: |
| 289 | virtual void DataToDoc( const css::uno::Sequence< css::uno::Any >& rSelection, |
| 290 | css::uno::Reference< css::sdbc::XDataSource> rxSource, |
| 291 | css::uno::Reference< css::sdbc::XConnection> xConnection, |
| 292 | css::uno::Reference< css::sdbc::XResultSet > xResultSet) = 0; |
| 293 | }; |
| 294 | |
| 295 | class AbstractDropDownFieldDialog : public VclAbstractDialog |
| 296 | { |
| 297 | protected: |
| 298 | virtual ~AbstractDropDownFieldDialog() override = default; |
| 299 | public: |
| 300 | virtual bool PrevButtonPressed() const = 0; |
| 301 | virtual bool NextButtonPressed() const = 0; |
| 302 | }; |
| 303 | |
| 304 | class AbstractSwLabDlg : public SfxAbstractTabDialog |
| 305 | { |
| 306 | protected: |
| 307 | virtual ~AbstractSwLabDlg() override = default; |
| 308 | public: |
| 309 | virtual const OUString& GetBusinessCardStr() const = 0; |
| 310 | virtual Printer *GetPrt() =0; |
| 311 | }; |
| 312 | |
| 313 | class AbstractSwSelGlossaryDlg : public VclAbstractDialog |
| 314 | { |
| 315 | protected: |
| 316 | virtual ~AbstractSwSelGlossaryDlg() override = default; |
| 317 | public: |
| 318 | virtual void InsertGlos(const OUString &rRegion, const OUString &rGlosName) = 0; // inline |
| 319 | virtual sal_Int32 GetSelectedIdx() const = 0; // inline |
| 320 | virtual void SelectEntryPos(sal_Int32 nIdx) = 0; // inline |
| 321 | }; |
| 322 | |
| 323 | class AbstractSwAutoFormatDlg : public VclAbstractDialog |
| 324 | { |
| 325 | protected: |
| 326 | virtual ~AbstractSwAutoFormatDlg() override = default; |
| 327 | public: |
| 328 | virtual std::unique_ptr<SwTableAutoFormat> FillAutoFormatOfIndex() const = 0; |
| 329 | virtual void Apply() = 0; |
| 330 | }; |
| 331 | |
| 332 | class AbstractSwFieldDlg : public SfxAbstractTabDialog |
| 333 | { |
| 334 | protected: |
| 335 | virtual ~AbstractSwFieldDlg() override = default; |
| 336 | public: |
| 337 | virtual void Initialize(SfxChildWinInfo *pInfo) = 0; |
| 338 | virtual void ActivateDatabasePage() = 0; |
| 339 | virtual void ShowReferencePage() = 0; |
| 340 | virtual std::shared_ptr<SfxDialogController> GetController() = 0; |
| 341 | }; |
| 342 | |
| 343 | class AbstractNumBulletDialog : public SfxAbstractTabDialog |
| 344 | { |
| 345 | protected: |
| 346 | virtual ~AbstractNumBulletDialog() override = default; |
| 347 | public: |
| 348 | virtual const SfxItemSet* GetInputItemSet() const = 0; |
| 349 | }; |
| 350 | |
| 351 | /** |
| 352 | * Interface for e.g. the insert -> bookmark -> rename dialog. It's implemented by |
| 353 | * AbstractSwRenameXNamedDlg_Impl, but SwInsertBookmarkDlg only knows about this interface and the |
| 354 | * SwAbstractDialogFactory::CreateSwRenameXNamedDlg() factory. |
| 355 | */ |
| 356 | class AbstractSwRenameXNamedDlg : public VclAbstractDialog |
| 357 | { |
| 358 | protected: |
| 359 | virtual ~AbstractSwRenameXNamedDlg() override = default; |
| 360 | public: |
| 361 | virtual void SetForbiddenChars( const OUString& rSet ) = 0; |
| 362 | }; |
| 363 | |
| 364 | /** |
| 365 | * Interface for copy field value dialog in read only documents. It's implemented by |
| 366 | * AbstractCopyFieldDlg_Impl |
| 367 | */ |
| 368 | class AbstractCopyFieldDlg : public VclAbstractDialog |
| 369 | { |
| 370 | protected: |
| 371 | virtual ~AbstractCopyFieldDlg() override = default; |
| 372 | }; |
| 373 | |
| 374 | /** |
| 375 | * Interface for e.g. the form -> content control -> properties -> add dialog. It's implemented by |
| 376 | * AbstractSwContentControlListItemDlg_Impl, but SwContentControlDlg only knows about this interface |
| 377 | * and the SwAbstractDialogFactory::CreateSwContentControlListItemDlg() factory. |
| 378 | */ |
| 379 | class AbstractSwContentControlListItemDlg : public VclAbstractDialog |
| 380 | { |
| 381 | protected: |
| 382 | virtual ~AbstractSwContentControlListItemDlg() override = default; |
| 383 | public: |
| 384 | }; |
| 385 | |
| 386 | class AbstractSwModalRedlineAcceptDlg : public VclAbstractDialog |
| 387 | { |
| 388 | protected: |
| 389 | virtual ~AbstractSwModalRedlineAcceptDlg() override = default; |
| 390 | }; |
| 391 | |
| 392 | class AbstractMarkFloatDlg : public VclAbstractDialog |
| 393 | { |
| 394 | protected: |
| 395 | virtual ~AbstractMarkFloatDlg() override = default; |
| 396 | public: |
| 397 | virtual void ReInitDlg(SwWrtShell& rWrtShell) = 0; |
| 398 | virtual std::shared_ptr<SfxDialogController> GetController() = 0; |
| 399 | }; |
| 400 | |
| 401 | #define RET_LOAD_DOC 100 |
| 402 | #define RET_TARGET_CREATED 103 |
| 403 | #define RET_REMOVE_TARGET 104 |
| 404 | |
| 405 | class SwMailMergeConfigItem; |
| 406 | |
| 407 | class AbstractMailMergeWizard : public VclAbstractDialog |
| 408 | { |
| 409 | protected: |
| 410 | virtual ~AbstractMailMergeWizard() override = default; |
| 411 | public: |
| 412 | virtual OUString GetReloadDocument() const = 0; |
| 413 | virtual void ShowPage( sal_uInt16 nLevel ) = 0; |
| 414 | virtual sal_uInt16 GetRestartPage() const = 0; |
| 415 | }; |
| 416 | |
| 417 | class SwLanguageListItem; |
| 418 | |
| 419 | class AbstractSwTranslateLangSelectDlg |
| 420 | { |
| 421 | protected: |
| 422 | virtual ~AbstractSwTranslateLangSelectDlg() = default; |
| 423 | public: |
| 424 | virtual std::shared_ptr<weld::DialogController> getDialogController() = 0; |
| 425 | virtual std::optional<SwLanguageListItem> GetSelectedLanguage() = 0; |
| 426 | }; |
| 427 | |
| 428 | class AbstractSwSortDlg : public VclAbstractDialog |
| 429 | { |
| 430 | protected: |
| 431 | virtual ~AbstractSwSortDlg() override = default; |
| 432 | public: |
| 433 | virtual void Apply() = 0; |
| 434 | }; |
| 435 | |
| 436 | class AbstractSwTableWidthDlg : public VclAbstractDialog |
| 437 | { |
| 438 | protected: |
| 439 | virtual ~AbstractSwTableWidthDlg() override = default; |
| 440 | public: |
| 441 | virtual void Apply() = 0; |
| 442 | }; |
| 443 | |
| 444 | class AbstractSwTableHeightDlg : public VclAbstractDialog |
| 445 | { |
| 446 | protected: |
| 447 | virtual ~AbstractSwTableHeightDlg() override = default; |
| 448 | public: |
| 449 | virtual void Apply() = 0; |
| 450 | }; |
| 451 | |
| 452 | class AbstractDropDownFormFieldDialog : public VclAbstractDialog |
| 453 | { |
| 454 | protected: |
| 455 | virtual ~AbstractDropDownFormFieldDialog() override = default; |
| 456 | public: |
| 457 | virtual void Apply() = 0; |
| 458 | }; |
| 459 | |
| 460 | class AbstractChangeDbDialog : public VclAbstractDialog |
| 461 | { |
| 462 | protected: |
| 463 | virtual ~AbstractChangeDbDialog() override = default; |
| 464 | public: |
| 465 | virtual void UpdateFields() = 0; |
| 466 | }; |
| 467 | |
| 468 | class AbstractDateFormFieldDialog : public VclAbstractDialog |
| 469 | { |
| 470 | protected: |
| 471 | virtual ~AbstractDateFormFieldDialog() override = default; |
| 472 | public: |
| 473 | virtual void Apply() = 0; |
| 474 | }; |
| 475 | |
| 476 | class SwAbstractDialogFactory |
| 477 | { |
| 478 | public: |
| 479 | static SwAbstractDialogFactory* Create(); |
| 480 | |
| 481 | virtual VclPtr<SfxAbstractDialog> CreateNumFormatDialog(weld::Widget* pParent, const SfxItemSet& rAttr) = 0; |
| 482 | virtual VclPtr<SfxAbstractDialog> CreateSwDropCapsDialog(weld::Window* pParent, const SfxItemSet& rSet) = 0; |
| 483 | virtual VclPtr<SfxAbstractDialog> CreateSwBackgroundDialog(weld::Window* pParent, const SfxItemSet& rSet) = 0; |
| 484 | |
| 485 | virtual VclPtr<AbstractSwWordCountFloatDlg> CreateSwWordCountDialog(SfxBindings* pBindings, |
| 486 | SfxChildWindow* pChild, weld::Window *pParent, SfxChildWinInfo* pInfo) = 0; |
| 487 | |
| 488 | virtual VclPtr<AbstractSwInsertAbstractDlg> CreateSwInsertAbstractDlg(weld::Window* pParent) = 0; |
| 489 | virtual VclPtr<SfxAbstractDialog> CreateSwAddressAbstractDlg(weld::Window* pParent, const SfxItemSet& rSet) = 0; |
| 490 | virtual VclPtr<AbstractSwAsciiFilterDlg> CreateSwAsciiFilterDlg(weld::Window* pParent, SwDocShell& rDocSh, |
| 491 | SvStream* pStream) = 0; |
| 492 | virtual VclPtr<VclAbstractDialog> CreateSwInsertBookmarkDlg(weld::Window *pParent, SwWrtShell &rSh, OUString const* pSelected) = 0; |
| 493 | virtual VclPtr<VclAbstractDialog> CreateSwContentControlDlg(weld::Window *pParent, SwWrtShell &rSh) = 0; |
| 494 | |
| 495 | virtual VclPtr<AbstractSwContentControlListItemDlg> |
| 496 | CreateSwContentControlListItemDlg(weld::Window* pParent, SwContentControlListItem& rItem) = 0; |
| 497 | |
| 498 | virtual std::shared_ptr<AbstractSwBreakDlg> CreateSwBreakDlg(weld::Window *pParent, SwWrtShell &rSh) = 0; |
| 499 | virtual std::shared_ptr<AbstractSwTranslateLangSelectDlg> CreateSwTranslateLangSelectDlg(weld::Window *pParent, SwWrtShell &rSh) = 0; |
| 500 | virtual VclPtr<AbstractChangeDbDialog> CreateSwChangeDBDlg(SwView& rVw) = 0; |
| 501 | virtual VclPtr<SfxAbstractTabDialog> CreateSwCharDlg(weld::Window* pParent, SwView& rView, const SfxItemSet& rCoreSet, |
| 502 | SwCharDlgMode nDialogMode, const OUString* pFormatStr = nullptr) = 0; |
| 503 | virtual VclPtr<AbstractSwConvertTableDlg> CreateSwConvertTableDlg(SwView& rView, bool bToTable) = 0; |
| 504 | virtual VclPtr<VclAbstractDialog> CreateSwCaptionDialog(weld::Window *pParent, SwView &rV) = 0; |
| 505 | |
| 506 | virtual VclPtr<AbstractSwInsertDBColAutoPilot> CreateSwInsertDBColAutoPilot(SwView& rView, |
| 507 | css::uno::Reference< css::sdbc::XDataSource> rxSource, |
| 508 | css::uno::Reference<css::sdbcx::XColumnsSupplier> xColSupp, |
| 509 | const SwDBData& rData) = 0; |
| 510 | virtual VclPtr<SfxAbstractTabDialog> CreateSwFootNoteOptionDlg(weld::Window *pParent, SwWrtShell &rSh) = 0; |
| 511 | |
| 512 | virtual VclPtr<AbstractDropDownFieldDialog> CreateDropDownFieldDialog(weld::Widget* pParent, SwWrtShell &rSh, |
| 513 | SwField* pField, bool bPrevButton, bool bNextButton) = 0; |
| 514 | virtual VclPtr<AbstractDropDownFormFieldDialog> CreateDropDownFormFieldDialog(weld::Widget* pParent, sw::mark::Fieldmark* pDropDownField) = 0; |
| 515 | |
| 516 | virtual VclPtr<AbstractDateFormFieldDialog> CreateDateFormFieldDialog(weld::Widget* pParent, sw::mark::DateFieldmark* pDateField, SwDoc& rDoc) = 0; |
| 517 | |
| 518 | virtual VclPtr<SfxAbstractTabDialog> CreateSwEnvDlg(weld::Window* pParent, const SfxItemSet& rSet, SwWrtShell* pWrtSh, Printer* pPrt, bool bInsert) = 0; |
| 519 | |
| 520 | virtual VclPtr<AbstractSwLabDlg> CreateSwLabDlg(weld::Window* pParent, const SfxItemSet& rSet, |
| 521 | SwDBManager* pDBManager, bool bLabel) = 0; |
| 522 | |
| 523 | virtual SwLabDlgMethod GetSwLabDlgStaticMethod () =0; |
| 524 | |
| 525 | virtual VclPtr<SfxAbstractTabDialog> CreateSwParaDlg(weld::Window *pParent, |
| 526 | SwView& rVw, |
| 527 | const SfxItemSet& rCoreSet, |
| 528 | bool bDraw, |
| 529 | const OUString& sDefPage = {}) = 0; |
| 530 | |
| 531 | virtual VclPtr<VclAbstractDialog> CreateSwAutoMarkDialog(weld::Window *pParent, SwWrtShell &rSh) = 0; |
| 532 | |
| 533 | virtual VclPtr<AbstractSwSelGlossaryDlg> CreateSwSelGlossaryDlg(weld::Window *pParent, const OUString &rShortName) = 0; |
| 534 | |
| 535 | virtual VclPtr<AbstractSwSortDlg> CreateSwSortingDialog(weld::Window *pParent, SwWrtShell &rSh) = 0; |
| 536 | virtual VclPtr<AbstractSwTableHeightDlg> CreateSwTableHeightDialog(weld::Window *pParent, SwWrtShell &rSh) = 0; |
| 537 | virtual VclPtr<VclAbstractDialog> CreateSwColumnDialog(weld::Window *pParent, SwWrtShell &rSh) = 0; |
| 538 | virtual VclPtr<AbstractSplitTableDialog> CreateSplitTableDialog(weld::Window* pParent, SwWrtShell &rSh) = 0; |
| 539 | |
| 540 | virtual VclPtr<AbstractSwAutoFormatDlg> CreateSwAutoFormatDlg(weld::Window* pParent, SwWrtShell* pShell, |
| 541 | bool bSetAutoFormat = true, |
| 542 | const SwTableAutoFormat* pSelFormat = nullptr ) = 0; |
| 543 | virtual VclPtr<SfxAbstractDialog> CreateSwBorderDlg(weld::Window* pParent, SfxItemSet& rSet, SwBorderModes nType) = 0; |
| 544 | virtual VclPtr<SfxAbstractDialog> CreateSwWrapDlg(weld::Window* pParent, const SfxItemSet& rSet, SwWrtShell* pSh) = 0; |
| 545 | |
| 546 | virtual VclPtr<AbstractSwTableWidthDlg> CreateSwTableWidthDlg(weld::Window *pParent, SwWrtShell *pShell) = 0; |
| 547 | virtual VclPtr<SfxAbstractTabDialog> CreateSwTableTabDlg(weld::Window* pParent, |
| 548 | const SfxItemSet* pItemSet, SwWrtShell* pSh) = 0; |
| 549 | |
| 550 | virtual VclPtr<AbstractSwFieldDlg> CreateSwFieldDlg(SfxBindings* pB, SwChildWinWrapper* pCW, weld::Window *pParent) = 0; |
| 551 | virtual VclPtr<SfxAbstractDialog> CreateSwFieldEditDlg ( SwView& rVw ) = 0; |
| 552 | virtual VclPtr<AbstractSwRenameXNamedDlg> CreateSwRenameXNamedDlg(weld::Widget* pParent, |
| 553 | css::uno::Reference< css::container::XNamed > & xNamed, |
| 554 | css::uno::Reference< css::container::XNameAccess > & xNameAccess) = 0; |
| 555 | |
| 556 | virtual VclPtr<AbstractCopyFieldDlg> CreateCopyFieldDlg(weld::Widget* pParent, const rtl::OUString& rFieldValue ) = 0; |
| 557 | |
| 558 | virtual VclPtr<AbstractSwModalRedlineAcceptDlg> CreateSwModalRedlineAcceptDlg(weld::Window *pParent) = 0; |
| 559 | virtual VclPtr<AbstractSwPageNumberDlg> CreateSwPageNumberDlg(weld::Window* pParent) = 0; |
| 560 | |
| 561 | virtual VclPtr<VclAbstractDialog> CreateTableMergeDialog(weld::Window* pParent, bool& rWithPrev) = 0; |
| 562 | virtual VclPtr<SfxAbstractTabDialog> CreateFrameTabDialog(const OUString &rDialogType, |
| 563 | SfxViewFrame& rFrame, weld::Window *pParent, |
| 564 | const SfxItemSet& rCoreSet, |
| 565 | bool bNewFrame = true, |
| 566 | const OUString& sDefPage = {}) = 0; |
| 567 | /// @param nSlot |
| 568 | /// Identifies optional Slot by which the creation of the Template (Style) dialog is triggered. |
| 569 | /// Currently used, if nRegion == SfxStyleFamily::Page in order to activate certain dialog pane |
| 570 | virtual VclPtr<SfxAbstractApplyTabDialog> CreateTemplateDialog(weld::Window* pParent, |
| 571 | SfxStyleSheetBase& rBase, |
| 572 | SfxStyleFamily nRegion, |
| 573 | const OUString& sPage, |
| 574 | SwWrtShell* pActShell, |
| 575 | bool bNew) = 0; |
| 576 | virtual VclPtr<AbstractGlossaryDlg> CreateGlossaryDlg(SfxViewFrame& rViewFrame, |
| 577 | SwGlossaryHdl* pGlosHdl, |
| 578 | SwWrtShell *pWrtShell) = 0; |
| 579 | virtual VclPtr<AbstractFieldInputDlg> CreateFieldInputDlg(weld::Widget *pParent, |
| 580 | SwWrtShell &rSh, SwField* pField, bool bPrevButton, bool bNextButton) = 0; |
| 581 | virtual VclPtr<AbstractInsFootNoteDlg> CreateInsFootNoteDlg(weld::Window * pParent, |
| 582 | SwWrtShell &rSh, bool bEd = false) = 0; |
| 583 | virtual VclPtr<VclAbstractDialog> CreateTitlePageDlg(weld::Window* pParent) = 0; |
| 584 | virtual VclPtr<VclAbstractDialog> CreateVclSwViewDialog(SwView& rView) = 0; |
| 585 | virtual std::shared_ptr<AbstractInsTableDlg> CreateInsTableDlg(SwView& rView) = 0; |
| 586 | virtual VclPtr<AbstractJavaEditDialog> CreateJavaEditDialog(weld::Window* pParent, |
| 587 | SwWrtShell* pWrtSh) = 0; |
| 588 | virtual VclPtr<AbstractMailMergeDlg> CreateMailMergeDlg( |
| 589 | weld::Window* pParent, SwWrtShell& rSh, |
| 590 | const OUString& rSourceName, |
| 591 | const OUString& rTableName, |
| 592 | sal_Int32 nCommandType, |
| 593 | const css::uno::Reference< css::sdbc::XConnection>& xConnection ) = 0; |
| 594 | virtual VclPtr<AbstractMailMergeCreateFromDlg> CreateMailMergeCreateFromDlg(weld::Window* pParent) = 0; |
| 595 | virtual VclPtr<AbstractMailMergeFieldConnectionsDlg> CreateMailMergeFieldConnectionsDlg(weld::Window* pParent) = 0; |
| 596 | virtual VclPtr<VclAbstractDialog> CreateMultiTOXMarkDlg(weld::Window* pParent, SwTOXMgr &rTOXMgr) = 0; |
| 597 | virtual VclPtr<SfxAbstractTabDialog> CreateOutlineTabDialog(weld::Window* pParent, |
| 598 | const SfxItemSet* pSwItemSet, |
| 599 | SwWrtShell &) = 0; |
| 600 | virtual VclPtr<AbstractNumBulletDialog> CreateSvxNumBulletTabDialog(weld::Window* pParent, |
| 601 | const SfxItemSet& rSwItemSet, |
| 602 | SwWrtShell &) = 0; |
| 603 | virtual VclPtr<AbstractMultiTOXTabDialog> CreateMultiTOXTabDialog( |
| 604 | weld::Widget* pParent, const SfxItemSet& rSet, |
| 605 | SwWrtShell &rShell, |
| 606 | SwTOXBase* pCurTOX, |
| 607 | bool bGlobal) = 0; |
| 608 | virtual VclPtr<AbstractEditRegionDlg> CreateEditRegionDlg(weld::Window* pParent, SwWrtShell& rWrtSh) = 0; |
| 609 | virtual VclPtr<AbstractInsertSectionTabDialog> CreateInsertSectionTabDialog(weld::Window* pParent, |
| 610 | const SfxItemSet& rSet, SwWrtShell& rSh) = 0; |
| 611 | virtual VclPtr<AbstractMarkFloatDlg> CreateIndexMarkFloatDlg( |
| 612 | SfxBindings* pBindings, |
| 613 | SfxChildWindow* pChild, |
| 614 | weld::Window *pParent, |
| 615 | SfxChildWinInfo* pInfo) = 0; |
| 616 | virtual VclPtr<AbstractMarkFloatDlg> CreateAuthMarkFloatDlg( |
| 617 | SfxBindings* pBindings, |
| 618 | SfxChildWindow* pChild, |
| 619 | weld::Window *pParent, |
| 620 | SfxChildWinInfo* pInfo) = 0; |
| 621 | virtual VclPtr<VclAbstractDialog> CreateIndexMarkModalDlg( |
| 622 | weld::Window *pParent, SwWrtShell& rSh, SwTOXMark* pCurTOXMark) = 0; |
| 623 | |
| 624 | virtual VclPtr<AbstractMailMergeWizard> CreateMailMergeWizard(SwView& rView, std::shared_ptr<SwMailMergeConfigItem>& rConfigItem) = 0; |
| 625 | |
| 626 | virtual GlossaryGetCurrGroup GetGlossaryCurrGroupFunc() = 0; |
| 627 | virtual GlossarySetActGroup SetGlossaryActGroupFunc() = 0; |
| 628 | |
| 629 | // for tabpage |
| 630 | virtual CreateTabPage GetTabPageCreatorFunc( sal_uInt16 nId ) = 0; |
| 631 | |
| 632 | virtual void ExecuteMMResultSaveDialog(weld::Window* pParent) = 0; |
| 633 | virtual void ExecuteMMResultPrintDialog(weld::Window* pParent) = 0; |
| 634 | virtual void ExecuteMMResultEmailDialog(weld::Window* pParent) = 0; |
| 635 | |
| 636 | protected: |
| 637 | ~SwAbstractDialogFactory() {} |
| 638 | }; |
| 639 | |
| 640 | #endif |
| 641 | |
| 642 | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |