diff options
author | Susobhan Ghosh <susobhang70@gmail.com> | 2016-08-18 18:51:58 +0530 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2016-08-29 13:18:12 +0000 |
commit | 8393d4642273bfb3eb0cd0b68157e2b8674b70df (patch) | |
tree | e896339cebf19b6479e58d58cced7739cb87889b /include/svx | |
parent | 4ef79854ea1219186296480d69fb10b05d1810c3 (diff) |
tdf#83830: Use samecontentlistbox in Header/Footer Panel
Change-Id: Ib24f6e6ac91859467f105c4db9b094454443ff9d
Reviewed-on: https://gerrit.libreoffice.org/28218
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'include/svx')
-rw-r--r-- | include/svx/dialogs.hrc | 3 | ||||
-rw-r--r-- | include/svx/samecontentlistbox.hxx | 35 |
2 files changed, 37 insertions, 1 deletions
diff --git a/include/svx/dialogs.hrc b/include/svx/dialogs.hrc index c7eb35202f30..68d27d30aad9 100644 --- a/include/svx/dialogs.hrc +++ b/include/svx/dialogs.hrc @@ -1085,9 +1085,10 @@ #define RID_SVXSTRARY_PAPERSIZE_DRAW (RID_SVX_START + 1396) #define RID_SVXSTRARY_PAGE_NUMBERING (RID_SVX_START + 1397) #define RID_SVXSTRARY_SPACING (RID_SVX_START + 1398) +#define RID_SVXSTRARY_SAMECONTENT (RID_SVX_START + 1399) // !!! IMPORTANT: consider and update RID_SVXSTR_NEXTFREE when introducing new RIDs for Strings !!! -#define RID_SVXSTR_NEXTFREE (RID_SVX_START + 1399) +#define RID_SVXSTR_NEXTFREE (RID_SVX_START + 1400) // if we have _a_lot_ time, we should group the resource ids by type, instead // of grouping them by semantics. The reason is that resource ids have to be diff --git a/include/svx/samecontentlistbox.hxx b/include/svx/samecontentlistbox.hxx new file mode 100644 index 000000000000..576ebdfdbd7c --- /dev/null +++ b/include/svx/samecontentlistbox.hxx @@ -0,0 +1,35 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +#ifndef INCLUDED_SVX_SAMECONTENTLISTBOXHELPER_HXX +#define INCLUDED_SVX_SAMECONTENTLISTBOXHELPER_HXX + +#include <svx/svxdllapi.h> +#include <vcl/lstbox.hxx> + +/// Custom Widget ListBox to hold entries for SameContent setting of Header/Footer +class SVX_DLLPUBLIC SameContentListBox : public ListBox +{ +public: + SameContentListBox( vcl::Window* pParent, WinBits nBits = WB_BORDER | WB_DROPDOWN ); + Size GetOptimalSize() const override; +}; + +#endif +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file |