%% %% %CopyrightBegin% %% %% Copyright Ericsson AB 2008-2010. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Public License along with this software. If not, it can be %% retrieved online at http://www.erlang.org/. %% %% Software distributed under the License is distributed on an "AS IS" %% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See %% the License for the specific language governing rights and limitations %% under the License. %% %% %CopyrightEnd% %% This file is generated DO NOT EDIT %% @doc See external documentation: wxPrintDialogData. %% @type wxPrintDialogData(). An object reference, The representation is internal %% and can be changed without notice. It can't be used for comparsion %% stored on disc or distributed for use on other nodes. -module(wxPrintDialogData). -include("wxe.hrl"). -export([destroy/1,enableHelp/2,enablePageNumbers/2,enablePrintToFile/2,enableSelection/2, getAllPages/1,getCollate/1,getFromPage/1,getMaxPage/1,getMinPage/1, getNoCopies/1,getPrintData/1,getPrintToFile/1,getSelection/1,getToPage/1, isOk/1,new/0,new/1,setCollate/2,setFromPage/2,setMaxPage/2,setMinPage/2, setNoCopies/2,setPrintData/2,setPrintToFile/2,setSelection/2,setToPage/2]). %% inherited exports -export([parent_class/1]). %% @hidden parent_class(_Class) -> erlang:error({badtype, ?MODULE}). %% @spec () -> wxPrintDialogData() %% @doc See external documentation. new() -> wxe_util:construct(?wxPrintDialogData_new_0, <<>>). %% @spec (DialogData::wxPrintDialogData() | wxPrintData:wxPrintData()) -> wxPrintDialogData() %% @doc See external documentation. new(#wx_ref{type=DialogDataT,ref=DialogDataRef}) -> DialogDataOP = case ?CLASS_T(DialogDataT,wxPrintDialogData) of true -> ?wxPrintDialogData_new_1_1; _ -> ?CLASS(DialogDataT,wxPrintData), ?wxPrintDialogData_new_1_0 end, wxe_util:construct(DialogDataOP, <>). %% @spec (This::wxPrintDialogData(), Flag::bool()) -> ok %% @doc See external documentation. enableHelp(#wx_ref{type=ThisT,ref=ThisRef},Flag) when is_boolean(Flag) -> ?CLASS(ThisT,wxPrintDialogData), wxe_util:cast(?wxPrintDialogData_EnableHelp, <>). %% @spec (This::wxPrintDialogData(), Flag::bool()) -> ok %% @doc See external documentation. enablePageNumbers(#wx_ref{type=ThisT,ref=ThisRef},Flag) when is_boolean(Flag) -> ?CLASS(ThisT,wxPrintDialogData), wxe_util:cast(?wxPrintDialogData_EnablePageNumbers, <>). %% @spec (This::wxPrintDialogData(), Flag::bool()) -> ok %% @doc See external documentation. enablePrintToFile(#wx_ref{type=ThisT,ref=ThisRef},Flag) when is_boolean(Flag) -> ?CLASS(ThisT,wxPrintDialogData), wxe_util:cast(?wxPrintDialogData_EnablePrintToFile, <>). %% @spec (This::wxPrintDialogData(), Flag::bool()) -> ok %% @doc See external documentation. enableSelection(#wx_ref{type=ThisT,ref=ThisRef},Flag) when is_boolean(Flag) -> ?CLASS(ThisT,wxPrintDialogData), wxe_util:cast(?wxPrintDialogData_EnableSelection, <>). %% @spec (This::wxPrintDialogData()) -> bool() %% @doc See external documentation. getAllPages(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxPrintDialogData), wxe_util:call(?wxPrintDialogData_GetAllPages, <>). %% @spec (This::wxPrintDialogData()) -> bool() %% @doc See external documentation. getCollate(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxPrintDialogData), wxe_util:call(?wxPrintDialogData_GetCollate, <>). %% @spec (This::wxPrintDialogData()) -> integer() %% @doc See external documentation. getFromPage(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxPrintDialogData), wxe_util:call(?wxPrintDialogData_GetFromPage, <>). %% @spec (This::wxPrintDialogData()) -> integer() %% @doc See external documentation. getMaxPage(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxPrintDialogData), wxe_util:call(?wxPrintDialogData_GetMaxPage, <>). %% @spec (This::wxPrintDialogData()) -> integer() %% @doc See external documentation. getMinPage(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxPrintDialogData), wxe_util:call(?wxPrintDialogData_GetMinPage, <>). %% @spec (This::wxPrintDialogData()) -> integer() %% @doc See external documentation. getNoCopies(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxPrintDialogData), wxe_util:call(?wxPrintDialogData_GetNoCopies, <>). %% @spec (This::wxPrintDialogData()) -> wxPrintData:wxPrintData() %% @doc See external documentation. getPrintData(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxPrintDialogData), wxe_util:call(?wxPrintDialogData_GetPrintData, <>). %% @spec (This::wxPrintDialogData()) -> bool() %% @doc See external documentation. getPrintToFile(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxPrintDialogData), wxe_util:call(?wxPrintDialogData_GetPrintToFile, <>). %% @spec (This::wxPrintDialogData()) -> bool() %% @doc See external documentation. getSelection(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxPrintDialogData), wxe_util:call(?wxPrintDialogData_GetSelection, <>). %% @spec (This::wxPrintDialogData()) -> integer() %% @doc See external documentation. getToPage(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxPrintDialogData), wxe_util:call(?wxPrintDialogData_GetToPage, <>). %% @spec (This::wxPrintDialogData()) -> bool() %% @doc See external documentation. isOk(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxPrintDialogData), wxe_util:call(?wxPrintDialogData_IsOk, <>). %% @spec (This::wxPrintDialogData(), Flag::bool()) -> ok %% @doc See external documentation. setCollate(#wx_ref{type=ThisT,ref=ThisRef},Flag) when is_boolean(Flag) -> ?CLASS(ThisT,wxPrintDialogData), wxe_util:cast(?wxPrintDialogData_SetCollate, <>). %% @spec (This::wxPrintDialogData(), V::integer()) -> ok %% @doc See external documentation. setFromPage(#wx_ref{type=ThisT,ref=ThisRef},V) when is_integer(V) -> ?CLASS(ThisT,wxPrintDialogData), wxe_util:cast(?wxPrintDialogData_SetFromPage, <>). %% @spec (This::wxPrintDialogData(), V::integer()) -> ok %% @doc See external documentation. setMaxPage(#wx_ref{type=ThisT,ref=ThisRef},V) when is_integer(V) -> ?CLASS(ThisT,wxPrintDialogData), wxe_util:cast(?wxPrintDialogData_SetMaxPage, <>). %% @spec (This::wxPrintDialogData(), V::integer()) -> ok %% @doc See external documentation. setMinPage(#wx_ref{type=ThisT,ref=ThisRef},V) when is_integer(V) -> ?CLASS(ThisT,wxPrintDialogData), wxe_util:cast(?wxPrintDialogData_SetMinPage, <>). %% @spec (This::wxPrintDialogData(), V::integer()) -> ok %% @doc See external documentation. setNoCopies(#wx_ref{type=ThisT,ref=ThisRef},V) when is_integer(V) -> ?CLASS(ThisT,wxPrintDialogData), wxe_util:cast(?wxPrintDialogData_SetNoCopies, <>). %% @spec (This::wxPrintDialogData(), PrintData::wxPrintData:wxPrintData()) -> ok %% @doc See external documentation. setPrintData(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PrintDataT,ref=PrintDataRef}) -> ?CLASS(ThisT,wxPrintDialogData), ?CLASS(PrintDataT,wxPrintData), wxe_util:cast(?wxPrintDialogData_SetPrintData, <>). %% @spec (This::wxPrintDialogData(), Flag::bool()) -> ok %% @doc See external documentation. setPrintToFile(#wx_ref{type=ThisT,ref=ThisRef},Flag) when is_boolean(Flag) -> ?CLASS(ThisT,wxPrintDialogData), wxe_util:cast(?wxPrintDialogData_SetPrintToFile, <>). %% @spec (This::wxPrintDialogData(), Flag::bool()) -> ok %% @doc See external documentation. setSelection(#wx_ref{type=ThisT,ref=ThisRef},Flag) when is_boolean(Flag) -> ?CLASS(ThisT,wxPrintDialogData), wxe_util:cast(?wxPrintDialogData_SetSelection, <>). %% @spec (This::wxPrintDialogData(), V::integer()) -> ok %% @doc See external documentation. setToPage(#wx_ref{type=ThisT,ref=ThisRef},V) when is_integer(V) -> ?CLASS(ThisT,wxPrintDialogData), wxe_util:cast(?wxPrintDialogData_SetToPage, <>). %% @spec (This::wxPrintDialogData()) -> ok %% @doc Destroys this object, do not use object again destroy(Obj=#wx_ref{type=Type}) -> ?CLASS(Type,wxPrintDialogData), wxe_util:destroy(?DESTROY_OBJECT,Obj), ok.