summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorArmin Le Grand <alg@apache.org>2013-04-17 10:51:23 +0000
committerMichael Meeks <michael.meeks@suse.com>2013-05-20 11:33:14 +0100
commitca4a3f26f96843a8b48fdb10df901a102c2c9ca3 (patch)
tree3e0467600755401b4ac69445e04f3188e73820af /include
parent94956686dc4d6ca6b011866bf214c51d3830fcb0 (diff)
Resolves: #i122042# corrected adding default values in LineStyleListBox
(cherry picked from commit 33242bbc8350f2b253fae2d4261561796d848455) Conflicts: svx/inc/svx/dlgctrl.hxx svx/source/dialog/dlgctrl.cxx Change-Id: I4391164c0dbdd99c64fe7eca1bdd10cd92e32128
Diffstat (limited to 'include')
-rw-r--r--include/svx/dlgctrl.hxx18
1 files changed, 13 insertions, 5 deletions
diff --git a/include/svx/dlgctrl.hxx b/include/svx/dlgctrl.hxx
index d24c38f8f354..549b27356d88 100644
--- a/include/svx/dlgctrl.hxx
+++ b/include/svx/dlgctrl.hxx
@@ -307,15 +307,23 @@ public:
class SVX_DLLPUBLIC LineLB : public ListBox
{
+private:
+ /// bitfield
+ /// defines if standard fields (none, solid) are added, default is true
+ bool mbAddStandardFields : 1;
public:
- LineLB( Window* pParent, ResId Id ) : ListBox( pParent, Id ) {}
- LineLB( Window* pParent, WinBits aWB ) : ListBox( pParent, aWB ) {}
+ LineLB(Window* pParent, ResId Id);
+ LineLB(Window* pParent, WinBits aWB);
+ virtual ~LineLB();
- virtual void Fill( const XDashListRef &pList );
+ virtual void Fill(const XDashListRef &pList);
+ bool getAddStandardFields() const { return mbAddStandardFields; }
+ void setAddStandardFields(bool bNew);
- void Append( XDashEntry* pEntry, const Bitmap* pBmp = NULL );
- void Modify( XDashEntry* pEntry, sal_uInt16 nPos, const Bitmap* pBmp = NULL );
+ void Append(XDashEntry* pEntry, const Bitmap* pBmp = 0);
+ void Modify(XDashEntry* pEntry, sal_uInt16 nPos, const Bitmap* pBmp = 0);
+ void SelectEntryByList(const XDashList* pList, const String& rStr, const XDash& rDash, sal_uInt16 nDist = 0);
};
/************************************************************************/